Changeset View
Changeset View
Standalone View
Standalone View
src/sortmodel.h
Show All 20 Lines | |||||
21 | #ifndef JUNGLE_SORTMODEL_H | 21 | #ifndef JUNGLE_SORTMODEL_H | ||
22 | #define JUNGLE_SORTMODEL_H | 22 | #define JUNGLE_SORTMODEL_H | ||
23 | 23 | | |||
24 | #include <QSortFilterProxyModel> | 24 | #include <QSortFilterProxyModel> | ||
25 | #include <QItemSelectionModel> | 25 | #include <QItemSelectionModel> | ||
26 | #include <QSize> | 26 | #include <QSize> | ||
27 | #include <kdirmodel.h> | 27 | #include <kdirmodel.h> | ||
28 | #include <QVariant> | 28 | #include <QVariant> | ||
29 | #include <QJsonArray> | ||||
29 | #include <kimagecache.h> | 30 | #include <kimagecache.h> | ||
30 | #include <kshareddatacache.h> | 31 | #include <kshareddatacache.h> | ||
31 | 32 | | |||
32 | namespace Jungle { | 33 | namespace Jungle { | ||
33 | 34 | | |||
34 | class SortModel : public QSortFilterProxyModel | 35 | class SortModel : public QSortFilterProxyModel | ||
35 | { | 36 | { | ||
36 | Q_OBJECT | 37 | Q_OBJECT | ||
Show All 17 Lines | 41 | public: | |||
54 | 55 | | |||
55 | Q_INVOKABLE void setSelected( int indexValue); | 56 | Q_INVOKABLE void setSelected( int indexValue); | ||
56 | Q_INVOKABLE void toggleSelected( int indexValue); | 57 | Q_INVOKABLE void toggleSelected( int indexValue); | ||
57 | Q_INVOKABLE void clearSelections(); | 58 | Q_INVOKABLE void clearSelections(); | ||
58 | Q_INVOKABLE void selectAll(); | 59 | Q_INVOKABLE void selectAll(); | ||
59 | Q_INVOKABLE void deleteSelection(); | 60 | Q_INVOKABLE void deleteSelection(); | ||
60 | Q_INVOKABLE int proxyIndex(const int &indexValue); | 61 | Q_INVOKABLE int proxyIndex(const int &indexValue); | ||
61 | Q_INVOKABLE int sourceIndex(const int &indexValue); | 62 | Q_INVOKABLE int sourceIndex(const int &indexValue); | ||
63 | Q_INVOKABLE QJsonArray selectedImages(); | ||||
62 | 64 | | |||
63 | protected Q_SLOTS: | 65 | protected Q_SLOTS: | ||
64 | void setContainImages(bool); | 66 | void setContainImages(bool); | ||
65 | void showPreview(const KFileItem &item, const QPixmap &preview); | 67 | void showPreview(const KFileItem &item, const QPixmap &preview); | ||
66 | void previewFailed(const KFileItem &item); | 68 | void previewFailed(const KFileItem &item); | ||
67 | void delayedPreview(); | 69 | void delayedPreview(); | ||
68 | 70 | | |||
69 | signals: | 71 | signals: | ||
Show All 17 Lines |