Changeset View
Changeset View
Standalone View
Standalone View
src/imagefoldermodel.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
51 | ImageFolderModel(QObject* parent=0); | 51 | ImageFolderModel(QObject* parent=0); | ||
52 | virtual ~ImageFolderModel(); | 52 | virtual ~ImageFolderModel(); | ||
53 | 53 | | |||
54 | QHash<int, QByteArray> roleNames() const override; | 54 | QHash<int, QByteArray> roleNames() const override; | ||
55 | 55 | | |||
56 | void setUrl(QString& url); | 56 | void setUrl(QString& url); | ||
57 | QString url() const; | 57 | QString url() const; | ||
58 | 58 | | |||
59 | QVariant data(const QModelIndex &index, int role) const; | 59 | QVariant data(const QModelIndex &index, int role) const override; | ||
60 | int count() const {return rowCount();} | 60 | int count() const {return rowCount();} | ||
61 | 61 | | |||
62 | Q_INVOKABLE int indexForUrl(const QString &url) const; | 62 | Q_INVOKABLE int indexForUrl(const QString &url) const; | ||
63 | 63 | | |||
64 | Q_INVOKABLE QVariantMap get(int index) const; | 64 | Q_INVOKABLE QVariantMap get(int index) const; | ||
65 | 65 | | |||
66 | /** | 66 | /** | ||
67 | * Helper method to empty the trash | 67 | * Helper method to empty the trash | ||
Show All 13 Lines |