Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KoToolDocker.cpp
Context not available. | |||||
33 | #include <QGridLayout> | 33 | #include <QGridLayout> | ||
---|---|---|---|---|---|
34 | #include <QScrollArea> | 34 | #include <QScrollArea> | ||
35 | #include <QScrollBar> | 35 | #include <QScrollBar> | ||
36 | #include <QScroller> | ||||
36 | #include <QLabel> | 37 | #include <QLabel> | ||
37 | #include <QSet> | 38 | #include <QSet> | ||
38 | #include <QAction> | 39 | #include <QAction> | ||
39 | #include <QStyleOptionFrame> | 40 | #include <QStyleOptionFrame> | ||
40 | #include <QToolButton> | 41 | #include <QToolButton> | ||
42 | #include <KisKineticScroller.h> | ||||
41 | 43 | | |||
42 | #include <WidgetsDebug.h> | 44 | #include <WidgetsDebug.h> | ||
43 | #include <kis_debug.h> | 45 | #include <kis_debug.h> | ||
Context not available. | |||||
182 | d->scrollArea->setWidgetResizable(true); | 184 | d->scrollArea->setWidgetResizable(true); | ||
183 | d->scrollArea->setFocusPolicy(Qt::NoFocus); | 185 | d->scrollArea->setFocusPolicy(Qt::NoFocus); | ||
184 | 186 | | |||
187 | QScroller *scroller = KisKineticScroller::createPreconfiguredScroller(d->scrollArea); | ||||
188 | if( scroller ) { | ||||
189 | connect(scroller, SIGNAL(stateChanged(QScroller::State)), this, SLOT(slotScrollerStateChange(QScroller::State))); | ||||
190 | } | ||||
191 | | ||||
185 | setWidget(d->scrollArea); | 192 | setWidget(d->scrollArea); | ||
186 | } | 193 | } | ||
187 | 194 | | |||
Context not available. | |||||
200 | d->recreateLayout(optionWidgetList); | 207 | d->recreateLayout(optionWidgetList); | ||
201 | } | 208 | } | ||
202 | 209 | | |||
210 | void KoToolDocker::slotScrollerStateChange(QScroller::State state) | ||||
211 | { | ||||
212 | KisKineticScroller::updateCursor(d->scrollArea, state); | ||||
213 | } | ||||
214 | | ||||
203 | void KoToolDocker::resetWidgets() | 215 | void KoToolDocker::resetWidgets() | ||
204 | { | 216 | { | ||
205 | d->resetWidgets(); | 217 | d->resetWidgets(); | ||
Context not available. |