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