Changeset View
Changeset View
Standalone View
Standalone View
kstyle/animations/breezescrollbardata.cpp
Show All 34 Lines | 29 | { | |||
---|---|---|---|---|---|
35 | { | 35 | { | ||
36 | 36 | | |||
37 | target->installEventFilter( this ); | 37 | target->installEventFilter( this ); | ||
38 | 38 | | |||
39 | _addLineData._animation = new Animation( duration, this ); | 39 | _addLineData._animation = new Animation( duration, this ); | ||
40 | _subLineData._animation = new Animation( duration, this ); | 40 | _subLineData._animation = new Animation( duration, this ); | ||
41 | _grooveData._animation = new Animation( duration, this ); | 41 | _grooveData._animation = new Animation( duration, this ); | ||
42 | 42 | | |||
43 | connect( addLineAnimation().data(), SIGNAL(finished()), SLOT(clearAddLineRect()) ); | 43 | connect( addLineAnimation().data(), &QAbstractAnimation::finished, this, &ScrollBarData::clearAddLineRect ); | ||
44 | connect( subLineAnimation().data(), SIGNAL(finished()), SLOT(clearSubLineRect()) ); | 44 | connect( subLineAnimation().data(), &QAbstractAnimation::finished, this, &ScrollBarData::clearSubLineRect ); | ||
45 | 45 | | |||
46 | // setup animation | 46 | // setup animation | ||
47 | setupAnimation( addLineAnimation(), "addLineOpacity" ); | 47 | setupAnimation( addLineAnimation(), "addLineOpacity" ); | ||
48 | setupAnimation( subLineAnimation(), "subLineOpacity" ); | 48 | setupAnimation( subLineAnimation(), "subLineOpacity" ); | ||
49 | setupAnimation( grooveAnimation(), "grooveOpacity" ); | 49 | setupAnimation( grooveAnimation(), "grooveOpacity" ); | ||
50 | 50 | | |||
51 | } | 51 | } | ||
52 | 52 | | |||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |