Changeset View
Changeset View
Standalone View
Standalone View
src/core/itemsmodel.h
Show All 33 Lines | |||||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | public: | 36 | public: | ||
37 | explicit ItemsModel(Engine *engine, QObject *parent = nullptr); | 37 | explicit ItemsModel(Engine *engine, QObject *parent = nullptr); | ||
38 | ~ItemsModel() override; | 38 | ~ItemsModel() override; | ||
39 | 39 | | |||
40 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 40 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
41 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | 41 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||
42 | /** | ||||
43 | * The row of the entry passed to the function, or -1 if the entry is not contained | ||||
44 | * within the model. | ||||
45 | * @since 5.63 | ||||
46 | */ | ||||
47 | int row(const EntryInternal &entry) const; | ||||
42 | 48 | | |||
43 | void addEntry(const EntryInternal &entry); | 49 | void addEntry(const EntryInternal &entry); | ||
44 | void removeEntry(const EntryInternal &entry); | 50 | void removeEntry(const EntryInternal &entry); | ||
45 | 51 | | |||
46 | bool hasPreviewImages() const; | 52 | bool hasPreviewImages() const; | ||
47 | bool hasWebService() const; | 53 | bool hasWebService() const; | ||
48 | 54 | | |||
49 | Q_SIGNALS: | 55 | Q_SIGNALS: | ||
Show All 20 Lines |