kDB: Knowledge DataBase
Loading...
Searching...
No Matches
AbstractQueryResultModel.h
1#include <QAbstractListModel>
2#include <kDB/Forward.h>
3
4namespace kDB::Repository
5{
6 class AbstractQueryResultModel : public QAbstractListModel
7 {
8 Q_OBJECT
9 Q_PROPERTY(QStringList roleNames READ roleNames_ NOTIFY roleNamesChanged)
10 public:
11 explicit AbstractQueryResultModel(QObject* parent = 0);
13 signals:
14 void roleNamesChanged();
15 protected:
20 Q_INVOKABLE int roleIndex(const QString& _role) const;
21 virtual QStringList roleNames_() const = 0;
22 private:
23 struct Private;
24 Private* const d;
25 };
26}
Definition AbstractQueryResultModel.h:7
Q_INVOKABLE int roleIndex(const QString &_role) const
Definition AbstractQueryResultModel.cpp:22
Definition AbstractQueryResultModel.cpp:9