From 8470cdafc08d85b36725a8d6d6d12f8c2cd9fd8a Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Fri, 5 Jun 2009 12:29:02 +0300 Subject: [PATCH] GUI: Fix warning from About-dialog layout. --- gui/aboutdialog.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp index 85f01e5a7..981153d1b 100644 --- a/gui/aboutdialog.cpp +++ b/gui/aboutdialog.cpp @@ -28,13 +28,13 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent) { setWindowTitle(tr("About cppcheck")); // Left icon area and right text area - QHBoxLayout *iconLayout = new QHBoxLayout(this); + QHBoxLayout *iconLayout = new QHBoxLayout(); // Keep icon at the top of the dialog - QVBoxLayout *iconVLayout = new QVBoxLayout(this); + QVBoxLayout *iconVLayout = new QVBoxLayout(); // Texts - QVBoxLayout *mainLayout = new QVBoxLayout(this); + QVBoxLayout *mainLayout = new QVBoxLayout(); // Keep close button in right - QHBoxLayout *btnLayout = new QHBoxLayout(this); + QHBoxLayout *btnLayout = new QHBoxLayout(); QIcon *icon = new QIcon(":icon.png"); QLabel *iconLabel = new QLabel(); @@ -63,6 +63,7 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent) btnLayout->addStretch(); btnLayout->addWidget(quit); + setLayout(iconLayout); connect(quit, SIGNAL(clicked()), this, SLOT(close())); }