Changeset View
Changeset View
Standalone View
Standalone View
effects/fallapart/fallapart.cpp
Show All 30 Lines | |||||
31 | { | 31 | { | ||
32 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | 32 | return effects->isOpenGLCompositing() && effects->animationsSupported(); | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | FallApartEffect::FallApartEffect() | 35 | FallApartEffect::FallApartEffect() | ||
36 | { | 36 | { | ||
37 | initConfig<FallApartConfig>(); | 37 | initConfig<FallApartConfig>(); | ||
38 | reconfigure(ReconfigureAll); | 38 | reconfigure(ReconfigureAll); | ||
39 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | 39 | connect(effects, &EffectsHandler::windowClosed, this, &FallApartEffect::slotWindowClosed); | ||
40 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 40 | connect(effects, &EffectsHandler::windowDeleted, this, &FallApartEffect::slotWindowDeleted); | ||
41 | connect(effects, SIGNAL(windowDataChanged(KWin::EffectWindow*,int)), this, SLOT(slotWindowDataChanged(KWin::EffectWindow*,int))); | 41 | connect(effects, &EffectsHandler::windowDataChanged, this, &FallApartEffect::slotWindowDataChanged); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | void FallApartEffect::reconfigure(ReconfigureFlags) | 44 | void FallApartEffect::reconfigure(ReconfigureFlags) | ||
45 | { | 45 | { | ||
46 | FallApartConfig::self()->read(); | 46 | FallApartConfig::self()->read(); | ||
47 | blockSize = FallApartConfig::blockSize(); | 47 | blockSize = FallApartConfig::blockSize(); | ||
48 | } | 48 | } | ||
49 | 49 | | |||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |