mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
1481790183
Additionally bumps DOtherSide cmake min version to 3.19 Closes: #9472
23 lines
554 B
C++
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;
|
|
};
|