Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailview/thumbnailview.h
Show All 27 Lines | |||||
28 | // KDE | 28 | // KDE | ||
29 | #include <QUrl> | 29 | #include <QUrl> | ||
30 | 30 | | |||
31 | class KFileItem; | 31 | class KFileItem; | ||
32 | class QDragEnterEvent; | 32 | class QDragEnterEvent; | ||
33 | class QDragMoveEvent; | 33 | class QDragMoveEvent; | ||
34 | class QDropEvent; | 34 | class QDropEvent; | ||
35 | class QPixmap; | 35 | class QPixmap; | ||
36 | class QGestureEvent; | ||||
37 | class QTapGesture; | ||||
38 | class QPinchGesture; | ||||
39 | class QGesture; | ||||
36 | 40 | | |||
37 | namespace Gwenview | 41 | namespace Gwenview | ||
38 | { | 42 | { | ||
39 | 43 | | |||
40 | class AbstractDocumentInfoProvider; | 44 | class AbstractDocumentInfoProvider; | ||
41 | class AbstractThumbnailViewHelper; | 45 | class AbstractThumbnailViewHelper; | ||
42 | class ThumbnailProvider; | 46 | class ThumbnailProvider; | ||
43 | 47 | | |||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | |||||
181 | protected Q_SLOTS: | 185 | protected Q_SLOTS: | ||
182 | void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) override; | 186 | void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) override; | ||
183 | void rowsInserted(const QModelIndex& parent, int start, int end) override; | 187 | void rowsInserted(const QModelIndex& parent, int start, int end) override; | ||
184 | void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) override; | 188 | void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) override; | ||
185 | void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, | 189 | void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, | ||
186 | const QVector<int> &roles = QVector<int>()) override; | 190 | const QVector<int> &roles = QVector<int>()) override; | ||
187 | 191 | | |||
188 | private Q_SLOTS: | 192 | private Q_SLOTS: | ||
193 | void startDragFromTouch(const QPoint& pos); | ||||
194 | void tapGesture(const QPoint& pos); | ||||
195 | void setZoomParameter(); | ||||
196 | void zoomGesture(qreal newZoom, const QPoint& pos); | ||||
189 | void showContextMenu(); | 197 | void showContextMenu(); | ||
190 | void emitIndexActivatedIfNoModifiers(const QModelIndex&); | 198 | void emitIndexActivatedIfNoModifiers(const QModelIndex&); | ||
191 | void setThumbnail(const KFileItem&, const QPixmap&, const QSize&, qulonglong fileSize); | 199 | void setThumbnail(const KFileItem&, const QPixmap&, const QSize&, qulonglong fileSize); | ||
192 | void setBrokenThumbnail(const KFileItem&); | 200 | void setBrokenThumbnail(const KFileItem&); | ||
193 | 201 | | |||
194 | /** | 202 | /** | ||
195 | * Generate thumbnail for url. | 203 | * Generate thumbnail for url. | ||
196 | */ | 204 | */ | ||
Show All 22 Lines |