summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-06-28 09:57:27 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-06-28 18:05:24 (GMT)
commitabe6cabe39f36ee56484ceb224f59bc12c962c99 (patch)
treefd50b6f935a281b4747bb490006f8ac0a8a2bc08
parente4007099c8090c79a87c3277872bf19033781054 (diff)
detailedconsole: fix dialog layout
-rw-r--r--detailedconsole.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/detailedconsole.cpp b/detailedconsole.cpp
index 8369ba3..d2edb04 100644
--- a/detailedconsole.cpp
+++ b/detailedconsole.cpp
@@ -19,10 +19,8 @@
#include <KLocalizedString>
#include <KMessageBox>
-#include <KConfigGroup>
#include <QDialogButtonBox>
#include <QPushButton>
-#include <QVBoxLayout>
KgpgDetailedInfo::KgpgDetailedInfo(QWidget *parent, const QString &boxLabel, const QString &errormessage,
const QStringList &keysList, const QString &caption)
@@ -33,16 +31,11 @@ KgpgDetailedInfo::KgpgDetailedInfo(QWidget *parent, const QString &boxLabel, con
else
setWindowTitle(i18n("Info"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
- QWidget *mainWidget = new QWidget(this);
- QVBoxLayout *mainLayout = new QVBoxLayout(this);
- setLayout(mainLayout);
- mainLayout->addWidget(mainWidget);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::accepted, this, &KgpgDetailedInfo::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &KgpgDetailedInfo::reject);
- mainLayout->addWidget(buttonBox);
okButton->setDefault(true);
setModal(true);
KMessageBox::createKMessageBox(this, buttonBox, QMessageBox::Information, boxLabel, keysList, QString(), Q_NULLPTR, 0, errormessage);