summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-05 13:40:42 +0100
committerLaurent Montel <[email protected]>2018-01-05 13:40:42 +0100
commit6fbc558b86754d17b9adcdb11483f11f31f61ff7 (patch)
treeed1261a77c779ea438f30e511a5f2b99c73a6b26
parent2a2b30072b7ee4046dc4eb21ef74491a9d729618 (diff)
Fix layout
-rw-r--r--src/customdebugsettingspage.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/customdebugsettingspage.cpp b/src/customdebugsettingspage.cpp
index 2a5f016..6ebedbc 100644
--- a/src/customdebugsettingspage.cpp
+++ b/src/customdebugsettingspage.cpp
@@ -34,15 +34,18 @@
CustomDebugSettingsPage::CustomDebugSettingsPage(QWidget *parent)
: QWidget(parent)
{
- QHBoxLayout *mainLayout = new QHBoxLayout(this);
-
- QVBoxLayout *vbox = new QVBoxLayout;
- mainLayout->addLayout(vbox);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
QLabel *lab = new QLabel(i18n("Rules:"), this);
lab->setObjectName(QStringLiteral("custom_label"));
- vbox->addWidget(lab);
+ mainLayout->addWidget(lab);
+ QHBoxLayout *horizontalLayout = new QHBoxLayout;
+ horizontalLayout->setMargin(0);
+ mainLayout->addLayout(horizontalLayout);
+
+ QVBoxLayout *vbox = new QVBoxLayout;
+ horizontalLayout->addLayout(vbox);
mListWidget = new QListWidget(this);
mListWidget->setObjectName(QStringLiteral("custom_listwidget"));
@@ -56,7 +59,7 @@ CustomDebugSettingsPage::CustomDebugSettingsPage(QWidget *parent)
vbox->addWidget(mListWidget);
QVBoxLayout *buttonLayout = new QVBoxLayout;
- mainLayout->addLayout(buttonLayout);
+ horizontalLayout->addLayout(buttonLayout);
mAddRule = new QPushButton(i18n("Add..."), this);
mAddRule->setObjectName(QStringLiteral("add_rule"));