Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailview/thumbnailview.h
Show All 21 Lines | |||||
22 | 22 | | |||
23 | #include <lib/gwenviewlib_export.h> | 23 | #include <lib/gwenviewlib_export.h> | ||
24 | 24 | | |||
25 | // Qt | 25 | // Qt | ||
26 | #include <QListView> | 26 | #include <QListView> | ||
27 | 27 | | |||
28 | // KDE | 28 | // KDE | ||
29 | #include <QUrl> | 29 | #include <QUrl> | ||
30 | #include <QGesture> | ||||
30 | 31 | | |||
31 | class KFileItem; | 32 | class KFileItem; | ||
32 | class QDragEnterEvent; | 33 | class QDragEnterEvent; | ||
33 | class QDragMoveEvent; | 34 | class QDragMoveEvent; | ||
34 | class QDropEvent; | 35 | class QDropEvent; | ||
35 | class QPixmap; | 36 | class QPixmap; | ||
36 | 37 | | |||
37 | namespace Gwenview | 38 | namespace Gwenview | ||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 146 | public Q_SLOTS: | |||
153 | */ | 154 | */ | ||
154 | void setThumbnailAspectRatio(qreal ratio); | 155 | void setThumbnailAspectRatio(qreal ratio); | ||
155 | 156 | | |||
156 | void scrollToSelectedIndex(); | 157 | void scrollToSelectedIndex(); | ||
157 | 158 | | |||
158 | void generateThumbnailsForItems(); | 159 | void generateThumbnailsForItems(); | ||
159 | 160 | | |||
160 | protected: | 161 | protected: | ||
162 | bool gestureEvent( QGestureEvent*); | ||||
163 | | ||||
164 | bool viewportEvent(QEvent*) Q_DECL_OVERRIDE; | ||||
165 | | ||||
161 | void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE; | 166 | void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE; | ||
162 | 167 | | |||
163 | void dragMoveEvent(QDragMoveEvent*) Q_DECL_OVERRIDE; | 168 | void dragMoveEvent(QDragMoveEvent*) Q_DECL_OVERRIDE; | ||
164 | 169 | | |||
165 | void dropEvent(QDropEvent*) Q_DECL_OVERRIDE; | 170 | void dropEvent(QDropEvent*) Q_DECL_OVERRIDE; | ||
166 | 171 | | |||
167 | void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE; | 172 | void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE; | ||
168 | 173 | | |||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |