Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | m_slideLength = QFontMetrics(qApp->font()).height() * 8; | 48 | m_slideLength = QFontMetrics(qApp->font()).height() * 8; | ||
49 | 49 | | |||
50 | m_atom = effects->announceSupportProperty("_KDE_SLIDE", this); | 50 | m_atom = effects->announceSupportProperty("_KDE_SLIDE", this); | ||
51 | connect(effects, &EffectsHandler::windowAdded, this, &SlidingPopupsEffect::slotWindowAdded); | 51 | connect(effects, &EffectsHandler::windowAdded, this, &SlidingPopupsEffect::slotWindowAdded); | ||
52 | connect(effects, &EffectsHandler::windowClosed, this, &SlidingPopupsEffect::slideOut); | 52 | connect(effects, &EffectsHandler::windowClosed, this, &SlidingPopupsEffect::slideOut); | ||
53 | connect(effects, &EffectsHandler::windowDeleted, this, &SlidingPopupsEffect::slotWindowDeleted); | 53 | connect(effects, &EffectsHandler::windowDeleted, this, &SlidingPopupsEffect::slotWindowDeleted); | ||
54 | connect(effects, &EffectsHandler::propertyNotify, this, &SlidingPopupsEffect::slotPropertyNotify); | 54 | connect(effects, &EffectsHandler::propertyNotify, this, &SlidingPopupsEffect::slotPropertyNotify); | ||
55 | connect(effects, &EffectsHandler::windowShown, this, &SlidingPopupsEffect::slideIn); | | |||
56 | connect(effects, &EffectsHandler::windowHidden, this, &SlidingPopupsEffect::slideOut); | | |||
57 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | 55 | connect(effects, &EffectsHandler::xcbConnectionChanged, this, | ||
58 | [this] { | 56 | [this] { | ||
59 | m_atom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_SLIDE"), this); | 57 | m_atom = effects->announceSupportProperty(QByteArrayLiteral("_KDE_SLIDE"), this); | ||
60 | } | 58 | } | ||
61 | ); | 59 | ); | ||
62 | connect(effects, qOverload<int, int, EffectWindow *>(&EffectsHandler::desktopChanged), | 60 | connect(effects, qOverload<int, int, EffectWindow *>(&EffectsHandler::desktopChanged), | ||
63 | this, &SlidingPopupsEffect::stopAnimations); | 61 | this, &SlidingPopupsEffect::stopAnimations); | ||
64 | connect(effects, &EffectsHandler::activeFullScreenEffectChanged, | 62 | connect(effects, &EffectsHandler::activeFullScreenEffectChanged, | ||
▲ Show 20 Lines • Show All 480 Lines • Show Last 20 Lines |