GUI: Fix warning from About-dialog layout.

This commit is contained in:
Kimmo Varis 2009-06-05 12:29:02 +03:00
parent 337721f740
commit 8470cdafc0
1 changed files with 5 additions and 4 deletions

View File

@ -28,13 +28,13 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent)
{ {
setWindowTitle(tr("About cppcheck")); setWindowTitle(tr("About cppcheck"));
// Left icon area and right text area // Left icon area and right text area
QHBoxLayout *iconLayout = new QHBoxLayout(this); QHBoxLayout *iconLayout = new QHBoxLayout();
// Keep icon at the top of the dialog // Keep icon at the top of the dialog
QVBoxLayout *iconVLayout = new QVBoxLayout(this); QVBoxLayout *iconVLayout = new QVBoxLayout();
// Texts // Texts
QVBoxLayout *mainLayout = new QVBoxLayout(this); QVBoxLayout *mainLayout = new QVBoxLayout();
// Keep close button in right // Keep close button in right
QHBoxLayout *btnLayout = new QHBoxLayout(this); QHBoxLayout *btnLayout = new QHBoxLayout();
QIcon *icon = new QIcon(":icon.png"); QIcon *icon = new QIcon(":icon.png");
QLabel *iconLabel = new QLabel(); QLabel *iconLabel = new QLabel();
@ -63,6 +63,7 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent)
btnLayout->addStretch(); btnLayout->addStretch();
btnLayout->addWidget(quit); btnLayout->addWidget(quit);
setLayout(iconLayout);
connect(quit, SIGNAL(clicked()), this, SLOT(close())); connect(quit, SIGNAL(clicked()), this, SLOT(close()));
} }