Changeset View
Changeset View
Standalone View
Standalone View
effects/coverswitch/coverswitch.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
62 | captionFont.setBold(true); | 62 | captionFont.setBold(true); | ||
63 | captionFont.setPointSize(captionFont.pointSize() * 2); | 63 | captionFont.setPointSize(captionFont.pointSize() * 2); | ||
64 | 64 | | |||
65 | if (effects->compositingType() == OpenGL2Compositing) { | 65 | if (effects->compositingType() == OpenGL2Compositing) { | ||
66 | m_reflectionShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("coverswitch-reflection.glsl")); | 66 | m_reflectionShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("coverswitch-reflection.glsl")); | ||
67 | } else { | 67 | } else { | ||
68 | m_reflectionShader = NULL; | 68 | m_reflectionShader = NULL; | ||
69 | } | 69 | } | ||
70 | connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*))); | 70 | connect(effects, &EffectsHandler::windowClosed, this, &CoverSwitchEffect::slotWindowClosed); | ||
71 | connect(effects, SIGNAL(tabBoxAdded(int)), this, SLOT(slotTabBoxAdded(int))); | 71 | connect(effects, &EffectsHandler::tabBoxAdded, this, &CoverSwitchEffect::slotTabBoxAdded); | ||
72 | connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed())); | 72 | connect(effects, &EffectsHandler::tabBoxClosed, this, &CoverSwitchEffect::slotTabBoxClosed); | ||
73 | connect(effects, SIGNAL(tabBoxUpdated()), this, SLOT(slotTabBoxUpdated())); | 73 | connect(effects, &EffectsHandler::tabBoxUpdated, this, &CoverSwitchEffect::slotTabBoxUpdated); | ||
74 | connect(effects, SIGNAL(tabBoxKeyEvent(QKeyEvent*)), this, SLOT(slotTabBoxKeyEvent(QKeyEvent*))); | 74 | connect(effects, &EffectsHandler::tabBoxKeyEvent, this, &CoverSwitchEffect::slotTabBoxKeyEvent); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | CoverSwitchEffect::~CoverSwitchEffect() | 77 | CoverSwitchEffect::~CoverSwitchEffect() | ||
78 | { | 78 | { | ||
79 | delete captionFrame; | 79 | delete captionFrame; | ||
80 | delete m_reflectionShader; | 80 | delete m_reflectionShader; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
▲ Show 20 Lines • Show All 923 Lines • Show Last 20 Lines |