ui: Rewrote project setup to wizzard

* QtProjectWizzard handles window managment logic of project setup
* QtProjectWizzardWindow is used in every step and displays QtProjectWizzardContent
* QtProjectWizzardContent is the base class for all differnt content types
* Removed Singleton from ProjectSettings
* ProjectSettings are created by wizzard and QtProjectWizzardContent can access and load
* added project type selection at start of wizzard
* added summary at end of wizzard
* show global search paths in setup and summary
* fixed layout problems after font switch
* fixed scrolling and resizing of QtDirectoryListBox
* separated QtLocationPicker to own class
This commit is contained in:
Eberhard Graether
2016-02-14 15:42:30 +01:00
parent 50a94bf108
commit 2d48f0a663
38 changed files with 1784 additions and 716 deletions
+7 -4
View File
@@ -1,7 +1,7 @@
#include "qt/window/QtAboutLicense.h"
#include <QComboBox>
#include <QFormLayout>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QLabel>
#include <QTextBrowser>
@@ -31,9 +31,11 @@ void QtAboutLicense::setup()
hideCancelButton(true);
}
void QtAboutLicense::populateForm(QFormLayout* layout)
void QtAboutLicense::populateWindow(QWidget* widget)
{
for(ThirdPartyLicense license : licenses3rdParties)
QVBoxLayout* layout = new QVBoxLayout(widget);
for (ThirdPartyLicense license : licenses3rdParties)
{
if( !(isTrial() && license.isNotInTrial) )
{
@@ -56,8 +58,9 @@ void QtAboutLicense::populateForm(QFormLayout* layout)
licenseText->setText(QString::fromLatin1(license.license));
layout->addWidget(licenseText);
}
}
widget->setLayout(layout);
}
void QtAboutLicense::handleCancelButtonPress()