diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-07 15:03:13 +0200 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-07 15:40:01 +0200 |
commit | 54249d9c37ce3994b03123ee6367c7f5519d3b40 (patch) | |
tree | cb9657620cda008edaf87299b4b3878e757c097b /src/RWAHostModel.h | |
parent | 3b2c865566aea43ab21afadcd34f58db0a5d5ab8 (diff) | |
download | RWA.Support.DesktopApp-54249d9c37ce3994b03123ee6367c7f5519d3b40.tar.gz RWA.Support.DesktopApp-54249d9c37ce3994b03123ee6367c7f5519d3b40.tar.bz2 RWA.Support.DesktopApp-54249d9c37ce3994b03123ee6367c7f5519d3b40.zip |
Introduce RWAHostModel. RWAHost's are now loaded on start.
Scene_remote_{view, control} are no longer available if no host is selected.
Diffstat (limited to 'src/RWAHostModel.h')
-rw-r--r-- | src/RWAHostModel.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/RWAHostModel.h b/src/RWAHostModel.h new file mode 100644 index 0000000..8697df2 --- /dev/null +++ b/src/RWAHostModel.h @@ -0,0 +1,23 @@ +#ifndef RWAHOSTMODEL_H +#define RWAHOSTMODEL_H + +#include <QObject> +#include <QAbstractListModel> + +#include "RWAHost.h" + +class RWAHostModel : public QAbstractListModel { + Q_OBJECT + +public: + explicit RWAHostModel(QObject * parent = nullptr); + int rowCount(const QModelIndex& parent = QModelIndex()) const; + int columnCount(const QModelIndex& parent = QModelIndex()) const; + QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const; + void populate(); + +private: + QStringList mDatas; +}; + +#endif // RWAHOSTMODEL_H |