30 lines
753 B
C++
30 lines
753 B
C++
#ifndef SETTINGSPAGEMODEL_H
|
|
#define SETTINGSPAGEMODEL_H
|
|
|
|
#include<QObject>
|
|
#include<QQmlEngine>
|
|
|
|
class SettingsPageModel : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(QString projectPath READ projectPath WRITE setProjectPath FINAL)
|
|
Q_PROPERTY(QString remoteAddressUri READ remoteAddressUri WRITE setRemoteAddressUri FINAL)
|
|
QML_ELEMENT
|
|
|
|
public:
|
|
explicit SettingsPageModel(QObject *parent = nullptr);
|
|
~SettingsPageModel() override;
|
|
QString projectPath() const;
|
|
void setProjectPath(const QString &projectPath);
|
|
|
|
QString remoteAddressUri() const;
|
|
void setRemoteAddressUri(const QString &projectPath);
|
|
|
|
private:
|
|
QString m_projectPath = "";
|
|
QString m_remoteAddressUri = "";
|
|
signals:
|
|
};
|
|
|
|
#endif // SETTINGSPAGEMODEL_H
|