Skip to content

Commit

Permalink
fix: [extension] display issue
Browse files Browse the repository at this point in the history
Log:
Change-Id: Iff2a6137d0da5396eb290965d9f7b9e480ddd89a
  • Loading branch information
deepin-mozart committed Apr 3, 2024
1 parent 02c05fb commit 3819f17
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/core/gui/plugindetailsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void DetailsView::showCfgWidget()
void DetailsView::setupUi()
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setSpacing(0);
mainLayout->setSpacing(2);
mainLayout->setMargin(0);
DFrame *detailFrame = new DFrame(this);
auto detailLayout = new QHBoxLayout(detailFrame);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/core/gui/pluginitemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <QPainter>
#include <QPainterPath>

inline constexpr int kRectRadius = { 0 }; // do not show rounded corners.
inline constexpr int kRectRadius = { 5 }; // do not show rounded corners.
inline constexpr int kIconWidth = { 30 };
inline constexpr int kIconHeight = { 30 };
inline constexpr int kIconLeftMargin = { 10 };
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/core/gui/pluginlistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DPF_USE_NAMESPACE
DWIDGET_USE_NAMESPACE

PluginListView::PluginListView(QWidget *parent)
: QListView(parent)
: DListView(parent)
, model(new QStandardItemModel(this))
{
setEditTriggers(QAbstractItemView::NoEditTriggers);
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/core/gui/pluginlistview.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#include "framework/lifecycle/pluginmetaobject.h"

#include <QListView>
#include <DListView>

class QStandardItemModel;
class PluginListView : public QListView
class PluginListView : public DTK_WIDGET_NAMESPACE::DListView
{
Q_OBJECT
public:
Expand Down
1 change: 0 additions & 1 deletion src/plugins/core/gui/pluginstorewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ void PluginStoreWidget::initializeUi()
setLayout(vLayout);
vLayout->addWidget(inputEdit);
vLayout->addWidget(pluginListView);
vLayout->setContentsMargins(0, 5, 0, 5);
}

0 comments on commit 3819f17

Please sign in to comment.