Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.cpp
Show All 36 Lines | 35 | { | |||
---|---|---|---|---|---|
37 | KWayland::Server::Display *display = effects->waylandDisplay(); | 37 | KWayland::Server::Display *display = effects->waylandDisplay(); | ||
38 | if (display) { | 38 | if (display) { | ||
39 | display->createSlideManager(this)->create(); | 39 | display->createSlideManager(this)->create(); | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | mSlideLength = QFontMetrics(qApp->font()).height() * 8; | 42 | mSlideLength = QFontMetrics(qApp->font()).height() * 8; | ||
43 | 43 | | |||
44 | mAtom = effects->announceSupportProperty("_KDE_SLIDE", this); | 44 | mAtom = effects->announceSupportProperty("_KDE_SLIDE", this); | ||
45 | connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); | 45 | connect(effects, &EffectsHandler::windowAdded, this, &SlidingPopupsEffect::slotWindowAdded); | ||
46 | connect(effects, &EffectsHandler::windowClosed, this, &SlidingPopupsEffect::slideOut); | 46 | connect(effects, &EffectsHandler::windowClosed, this, &SlidingPopupsEffect::slideOut); | ||
47 | connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); | 47 | connect(effects, &EffectsHandler::windowDeleted, this, &SlidingPopupsEffect::slotWindowDeleted); | ||
48 | connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); | 48 | connect(effects, &EffectsHandler::propertyNotify, this, &SlidingPopupsEffect::slotPropertyNotify); | ||
49 | connect(effects, &EffectsHandler::windowShown, this, &SlidingPopupsEffect::slideIn); | 49 | connect(effects, &EffectsHandler::windowShown, this, &SlidingPopupsEffect::slideIn); | ||
50 | connect(effects, &EffectsHandler::windowHidden, this, &SlidingPopupsEffect::slideOut); | 50 | connect(effects, &EffectsHandler::windowHidden, this, &SlidingPopupsEffect::slideOut); | ||
51 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | 51 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | ||
52 | [this] { | 52 | [this] { | ||
53 | mAtom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_SLIDE"), this); | 53 | mAtom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_SLIDE"), this); | ||
54 | } | 54 | } | ||
55 | ); | 55 | ); | ||
56 | reconfigure(ReconfigureAll); | 56 | reconfigure(ReconfigureAll); | ||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |