summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-03 20:04:02 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-03 20:04:02 (GMT)
commit176a79cf93e53914bcb774c242fae158fa509375 (patch)
tree5f9f41fca280db1595fdc4e0d9401b8f4383ca1b
parent4aa370f57c57a70c062b25bb3af8acd9105342cb (diff)
Fix dialog layout
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
index 8b45c11..fa01cfe 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
@@ -64,15 +64,16 @@ ViewerPluginExternalScriptInfo ViewerPluginExternalScriptItem::scriptInfo() cons
ViewerPluginExternalConfigureWidget::ViewerPluginExternalConfigureWidget(QWidget *parent)
: QWidget(parent)
{
- QHBoxLayout *mainLayout = new QHBoxLayout(this);
+ QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("layout"));
mainLayout->setMargin(0);
- QVBoxLayout *listLayout = new QVBoxLayout;
- mainLayout->addLayout(listLayout);
QLabel *lab = new QLabel(i18n("External Script:"), this);
lab->setObjectName(QStringLiteral("lab"));
- listLayout->addWidget(lab);
+ mainLayout->addWidget(lab);
+
+ QHBoxLayout *listLayout = new QHBoxLayout;
+ mainLayout->addLayout(listLayout);
mListExternal = new QListWidget(this);
mListExternal->setObjectName(QStringLiteral("listexternal"));
@@ -82,7 +83,7 @@ ViewerPluginExternalConfigureWidget::ViewerPluginExternalConfigureWidget(QWidget
connect(mListExternal, &QListWidget::itemDoubleClicked, this, &ViewerPluginExternalConfigureWidget::slotDoubleClicked);
QVBoxLayout *buttonLayout = new QVBoxLayout;
- mainLayout->addLayout(buttonLayout);
+ listLayout->addLayout(buttonLayout);
mAddScript = new QPushButton(i18n("Add Script..."), this);
connect(mAddScript, &QPushButton::clicked, this, &ViewerPluginExternalConfigureWidget::slotAddScript);