ui: Refactored windows to QtWindow base class

* renamed QtSettingsWindow to QtWindow
* moved functionality from QtProjectWizzardWindow to QtWindow
* use common createWindow method in QtMainWindow
This commit is contained in:
Eberhard Graether
2016-03-01 17:53:58 +01:00
parent eb831376ce
commit f3534ac6a8
38 changed files with 587 additions and 695 deletions
+8 -15
View File
@@ -12,8 +12,10 @@
#include "isTrial.h"
QtAboutLicense::QtAboutLicense(QWidget *parent)
: QtSettingsWindow(parent)
: QtWindow(parent)
{
setScrollAble(true);
raise();
}
@@ -22,15 +24,6 @@ QSize QtAboutLicense::sizeHint() const
return QSize(600,600);
}
void QtAboutLicense::setup()
{
setupForm();
updateTitle("3rd Party Licenses");
updateDoneButton("Ok");
hideCancelButton(true);
}
void QtAboutLicense::populateWindow(QWidget* widget)
{
QVBoxLayout* layout = new QVBoxLayout(widget);
@@ -63,11 +56,11 @@ void QtAboutLicense::populateWindow(QWidget* widget)
widget->setLayout(layout);
}
void QtAboutLicense::handleCancelButtonPress()
void QtAboutLicense::windowReady()
{
}
updateTitle("3rd Party Licenses");
updateCloseButton("Close");
void QtAboutLicense::handleUpdateButtonPress()
{
emit finished();
setNextVisible(false);
setPreviousVisible(false);
}