Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/kis_animation_curve_docker.cpp
Context not available. | |||||
19 | #include <QTreeView> | 19 | #include <QTreeView> | ||
---|---|---|---|---|---|
20 | #include <QSplitter> | 20 | #include <QSplitter> | ||
21 | #include <QToolBar> | 21 | #include <QToolBar> | ||
22 | #include <QScroller> | ||||
22 | 23 | | |||
23 | #include "kis_animation_curve_docker.h" | 24 | #include "kis_animation_curve_docker.h" | ||
24 | #include "kis_animation_curves_model.h" | 25 | #include "kis_animation_curves_model.h" | ||
Context not available. | |||||
77 | m_d->curvesWidget.splitter->setStretchFactor(0, 1); | 78 | m_d->curvesWidget.splitter->setStretchFactor(0, 1); | ||
78 | m_d->curvesWidget.splitter->setStretchFactor(1, 4); | 79 | m_d->curvesWidget.splitter->setStretchFactor(1, 4); | ||
79 | 80 | | |||
81 | QScroller *scroller = KisKineticScroller::createPreconfiguredScroller(channelListView); | ||||
82 | if (scroller){ | ||||
83 | connect(scroller, SIGNAL(stateChanged(QScroller::State)), | ||||
84 | this, SLOT(slotScrollerStateChanged(QScroller::State))); | ||||
85 | } | ||||
86 | | ||||
80 | connect(m_d->channelListModel, &KisAnimationCurveChannelListModel::rowsInserted, | 87 | connect(m_d->channelListModel, &KisAnimationCurveChannelListModel::rowsInserted, | ||
81 | this, &KisAnimationCurveDocker::slotListRowsInserted); | 88 | this, &KisAnimationCurveDocker::slotListRowsInserted); | ||
82 | 89 | | |||
Context not available. | |||||
144 | slotUpdateIcons(); | 151 | slotUpdateIcons(); | ||
145 | } | 152 | } | ||
146 | 153 | | |||
154 | void KisAnimationCurveDocker::slotScrollerStateChanged(QScroller::State state) | ||||
155 | { | ||||
156 | KisKineticScroller::updateCursor(m_d->curvesWidget.channelListView, state); | ||||
157 | } | ||||
158 | | ||||
147 | void KisAnimationCurveDocker::slotUpdateIcons() | 159 | void KisAnimationCurveDocker::slotUpdateIcons() | ||
148 | { | 160 | { | ||
149 | m_d->curvesWidget.btnConstantInterpolation->setIcon(KisIconUtils::loadIcon("interpolation_constant")); | 161 | m_d->curvesWidget.btnConstantInterpolation->setIcon(KisIconUtils::loadIcon("interpolation_constant")); | ||
Context not available. |