Changeset View
Changeset View
Standalone View
Standalone View
documentation/manpage/manpagemodel.h
Show All 31 Lines | |||||
32 | // id and name for man section | 32 | // id and name for man section | ||
33 | typedef QPair<QString, QString> ManSection; | 33 | typedef QPair<QString, QString> ManSection; | ||
34 | 34 | | |||
35 | class ManPageModel : public QAbstractItemModel | 35 | class ManPageModel : public QAbstractItemModel | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | 38 | | |||
39 | public: | 39 | public: | ||
40 | ManPageModel(QObject* parent = nullptr); | 40 | explicit ManPageModel(QObject* parent = nullptr); | ||
41 | ~ManPageModel() override; | 41 | ~ManPageModel() override; | ||
42 | 42 | | |||
43 | /** | 43 | /** | ||
44 | * You can use @p DeclarationRole to get the Declaration for a given index. | 44 | * You can use @p DeclarationRole to get the Declaration for a given index. | ||
45 | * NOTE: If you use that, don't forget to lock the DUChain if you access the declaration! | 45 | * NOTE: If you use that, don't forget to lock the DUChain if you access the declaration! | ||
46 | */ | 46 | */ | ||
47 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 47 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
48 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 48 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |