[qet] [4553] AboutQET Widget : add button to close the dialog box |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4553
Author: scorpio810
Date: 2016-06-13 00:42:24 +0200 (Mon, 13 Jun 2016)
Log Message:
-----------
AboutQET Widget : add button to close the dialog box
Modified Paths:
--------------
trunk/sources/aboutqet.cpp
Modified: trunk/sources/aboutqet.cpp
===================================================================
--- trunk/sources/aboutqet.cpp 2016-06-12 13:44:49 UTC (rev 4552)
+++ trunk/sources/aboutqet.cpp 2016-06-12 22:42:24 UTC (rev 4553)
@@ -45,10 +45,7 @@
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,7 +57,18 @@
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);
+
+
+
}
/**