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:
@@ -0,0 +1,32 @@
|
||||
#ifndef QT_WINDOW_STACK
|
||||
#define QT_WINDOW_STACK
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QtWindowStack
|
||||
: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
void empty();
|
||||
void pop();
|
||||
void push();
|
||||
|
||||
public:
|
||||
QtWindowStack(QObject* parent = nullptr);
|
||||
|
||||
QWidget* getTopWindow();
|
||||
|
||||
public slots:
|
||||
void pushWindow(QWidget* window);
|
||||
void popWindow();
|
||||
void clearWindows();
|
||||
|
||||
private:
|
||||
std::vector<QWidget*> m_stack;
|
||||
};
|
||||
|
||||
#endif // QT_WINDOW_STACK
|
||||
Reference in New Issue
Block a user