Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KoResourceItemChooser.h
Show All 21 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
22 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
23 | * Boston, MA 02110-1301, USA. | 23 | * Boston, MA 02110-1301, USA. | ||
24 | */ | 24 | */ | ||
25 | 25 | | |||
26 | #ifndef KO_RESOURCE_ITEM_CHOOSER | 26 | #ifndef KO_RESOURCE_ITEM_CHOOSER | ||
27 | #define KO_RESOURCE_ITEM_CHOOSER | 27 | #define KO_RESOURCE_ITEM_CHOOSER | ||
28 | 28 | | |||
29 | #include <QWidget> | 29 | #include <QWidget> | ||
30 | #include <QScroller> | ||||
30 | 31 | | |||
31 | #include "kritawidgets_export.h" | 32 | #include "kritawidgets_export.h" | ||
32 | 33 | | |||
33 | class QModelIndex; | 34 | class QModelIndex; | ||
34 | class QAbstractProxyModel; | 35 | class QAbstractProxyModel; | ||
35 | class QAbstractItemDelegate; | 36 | class QAbstractItemDelegate; | ||
36 | class QAbstractButton; | 37 | class QAbstractButton; | ||
37 | class QToolButton; | 38 | class QToolButton; | ||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
105 | 106 | | |||
106 | void setViewModeButtonVisible(bool visible); | 107 | void setViewModeButtonVisible(bool visible); | ||
107 | QToolButton *viewModeButton() const; | 108 | QToolButton *viewModeButton() const; | ||
108 | 109 | | |||
109 | void setSynced(bool sync); | 110 | void setSynced(bool sync); | ||
110 | 111 | | |||
111 | bool eventFilter(QObject *object, QEvent *event) override; | 112 | bool eventFilter(QObject *object, QEvent *event) override; | ||
112 | 113 | | |||
114 | /// sets up this chooser for kinetic (drag triggered) scrolling | ||||
115 | void configureKineticScrolling(int gesture, int sensitivity, bool scrollbar); | ||||
116 | | ||||
113 | Q_SIGNALS: | 117 | Q_SIGNALS: | ||
114 | /// Emitted when a resource was selected | 118 | /// Emitted when a resource was selected | ||
115 | void resourceSelected(KoResource *resource); | 119 | void resourceSelected(KoResource *resource); | ||
116 | /// Emitted when an *already selected* resource is clicked | 120 | /// Emitted when an *already selected* resource is clicked | ||
117 | /// again | 121 | /// again | ||
118 | void resourceClicked(KoResource *resource); | 122 | void resourceClicked(KoResource *resource); | ||
119 | void splitterMoved(); | 123 | void splitterMoved(); | ||
120 | public Q_SLOTS: | 124 | public Q_SLOTS: | ||
Show All 33 Lines |