Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_frames_view.cpp
Context not available. | |||||
29 | #include <QDropEvent> | 29 | #include <QDropEvent> | ||
---|---|---|---|---|---|
30 | #include <QMenu> | 30 | #include <QMenu> | ||
31 | #include <QScrollBar> | 31 | #include <QScrollBar> | ||
32 | #include <QScroller> | ||||
32 | #include <QDrag> | 33 | #include <QDrag> | ||
33 | #include <QInputDialog> | 34 | #include <QInputDialog> | ||
34 | #include <QClipboard> | 35 | #include <QClipboard> | ||
35 | #include <QMimeData> | 36 | #include <QMimeData> | ||
36 | 37 | | |||
37 | #include "KSharedConfig" | 38 | #include "KSharedConfig" | ||
39 | #include "KisKineticScroller.h" | ||||
38 | 40 | | |||
39 | #include "kis_zoom_button.h" | 41 | #include "kis_zoom_button.h" | ||
40 | #include "kis_icon_utils.h" | 42 | #include "kis_icon_utils.h" | ||
Context not available. | |||||
270 | setFramesPerSecond(12); | 272 | setFramesPerSecond(12); | ||
271 | setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); | 273 | setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); | ||
272 | 274 | | |||
275 | { | ||||
276 | QScroller *scroller = KisKineticScroller::createPreconfiguredScroller(this); | ||||
277 | if( scroller ) { | ||||
278 | connect(scroller, SIGNAL(stateChanged(QScroller::State)), | ||||
279 | this, SLOT(slotScrollerStateChanged(QScroller::State))); | ||||
280 | } | ||||
281 | } | ||||
282 | | ||||
273 | connect(&m_d->selectionChangedCompressor, SIGNAL(timeout()), | 283 | connect(&m_d->selectionChangedCompressor, SIGNAL(timeout()), | ||
274 | SLOT(slotSelectionChanged())); | 284 | SLOT(slotSelectionChanged())); | ||
275 | connect(&m_d->selectionChangedCompressor, SIGNAL(timeout()), | 285 | connect(&m_d->selectionChangedCompressor, SIGNAL(timeout()), | ||
Context not available. | |||||
552 | m_d->model->setLastVisibleFrame(calculatedIndex); | 562 | m_d->model->setLastVisibleFrame(calculatedIndex); | ||
553 | } | 563 | } | ||
554 | 564 | | |||
565 | void TimelineFramesView::slotScrollerStateChanged( QScroller::State state ) { | ||||
566 | KisKineticScroller::updateCursor(this, state); | ||||
567 | } | ||||
568 | | ||||
555 | void TimelineFramesView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) | 569 | void TimelineFramesView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) | ||
556 | { | 570 | { | ||
557 | QTableView::currentChanged(current, previous); | 571 | QTableView::currentChanged(current, previous); | ||
Context not available. |