Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/slidemodel.h
1 | #ifndef SLIDEMODEL_H | 1 | #ifndef SLIDEMODEL_H | ||
---|---|---|---|---|---|
2 | #define SLIDEMODEL_H | 2 | #define SLIDEMODEL_H | ||
3 | 3 | | |||
4 | #include "backgroundlistmodel.h" | 4 | #include "backgroundlistmodel.h" | ||
5 | 5 | | |||
6 | class SlideModel : public BackgroundListModel | 6 | class SlideModel : public BackgroundListModel | ||
7 | { | 7 | { | ||
8 | Q_OBJECT | 8 | Q_OBJECT | ||
9 | public: | 9 | public: | ||
10 | using BackgroundListModel::BackgroundListModel; | 10 | using BackgroundListModel::BackgroundListModel; | ||
11 | void reload(const QStringList &selected); | 11 | void reload(const QStringList &selected); | ||
12 | void addDirs(const QStringList &selected); | 12 | void addDirs(const QStringList &selected); | ||
13 | void removeDir(const QString &selected); | 13 | void removeDir(const QString &selected); | ||
14 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||||
15 | QHash<int, QByteArray> roleNames() const override; | ||||
14 | private Q_SLOTS: | 16 | private Q_SLOTS: | ||
15 | void removeBackgrounds(const QStringList &paths, const QString &token); | 17 | void removeBackgrounds(const QStringList &paths, const QString &token); | ||
16 | void backgroundsFound(const QStringList &paths, const QString &token); | 18 | void backgroundsFound(const QStringList &paths, const QString &token); | ||
17 | }; | 19 | }; | ||
18 | 20 | | |||
19 | #endif | 21 | #endif |