status-desktop/ui/include/StatusDesktop/Monitoring/ContextPropertiesModel.h
Michał Cieślak 1481790183 chore(general): move cpp files of monitoring tool from DOtherSide to ui dir
Additionally bumps DOtherSide cmake min version to 3.19

Closes: #9472
2023-02-09 14:27:53 +01:00

23 lines
554 B
C++

#pragma once
#include <QObject>
#include <QAbstractListModel>
class ContextPropertiesModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit ContextPropertiesModel(QObject* parent = nullptr);
static constexpr int NameRole = Qt::UserRole + 1;
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
QHash<int, QByteArray> roleNames() const override;
void addContextProperty(const QString &property);
private:
QStringList m_contextProperties;
};