filedialog for qml moved to main.qml
This commit is contained in:
parent
4ab006f065
commit
c166327835
11 changed files with 213 additions and 52 deletions
30
client/ui/controllers/systemController.h
Normal file
30
client/ui/controllers/systemController.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef SYSTEMCONTROLLER_H
|
||||
#define SYSTEMCONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
class SystemController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SystemController(const std::shared_ptr<Settings> &setting, QObject *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void saveFile(QString fileName, const QString &data);
|
||||
QString getFileName();
|
||||
|
||||
void setQmlRoot(QObject *qmlRoot);
|
||||
|
||||
signals:
|
||||
void fileDialogAccepted();
|
||||
void fileDialogRejected();
|
||||
|
||||
private:
|
||||
std::shared_ptr<Settings> m_settings;
|
||||
|
||||
QObject *m_qmlRoot;
|
||||
};
|
||||
|
||||
#endif // SYSTEMCONTROLLER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue