diff --git a/sources/aboutqet.cpp b/sources/aboutqet.cpp index ba81a58d3..3ddfab905 100644 --- a/sources/aboutqet.cpp +++ b/sources/aboutqet.cpp @@ -45,10 +45,7 @@ AboutQET::AboutQET(QWidget *parent) : QDialog(parent) { tabs -> addTab(titleTab(), tr("&Version", "tab title")); tabs -> addTab(licenseTab(), tr("&Accord de licence", "tab title")); - // A button to close the dialog box - QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Close); - connect(buttons, SIGNAL(accepted()), this, SLOT(accept())); - connect(buttons, SIGNAL(rejected()), this, SLOT(accept())); + // All in a vertical arrangement QVBoxLayout *vlayout = new QVBoxLayout(); @@ -60,6 +57,17 @@ AboutQET::AboutQET(QWidget *parent) : QDialog(parent) { scrollArea->setFixedSize (690, 610); scrollArea->setWidget(tabs); + // A button to close the dialog box + QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Close); + connect(buttons, SIGNAL(accepted()), this, SLOT(accept())); + connect(buttons, SIGNAL(rejected()), this, SLOT(accept())); + + QHBoxLayout *hlayout = new QHBoxLayout(); + vlayout -> addStretch(); + vlayout -> addWidget(buttons); + setLayout(hlayout); + + }