Initial UI
This commit is contained in:
1 parent
4d52c8cc60
commit
3c0037cfc9
29 files changed
+1367
-2
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef APPSTATE_H
|
||||
#define APPSTATE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class AppState : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString lastFilePath READ lastFilePath NOTIFY lastFilePathChanged)
|
||||
|
||||
public:
|
||||
explicit AppState(QObject *parent = nullptr);
|
||||
|
||||
QString lastFilePath() const;
|
||||
|
||||
Q_INVOKABLE void save();
|
||||
Q_INVOKABLE void restore();
|
||||
|
||||
signals:
|
||||
void lastFilePathChanged();
|
||||
|
||||
private:
|
||||
QString m_lastFilePath;
|
||||
};
|
||||
|
||||
#endif // APPSTATE_H
|
||||
Reference in new issue
Block a user