Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom.cpp
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
137 | reconfigure(ReconfigureAll); | 137 | reconfigure(ReconfigureAll); | ||
138 | } | 138 | } | ||
139 | 139 | | |||
140 | ZoomEffect::~ZoomEffect() | 140 | ZoomEffect::~ZoomEffect() | ||
141 | { | 141 | { | ||
142 | // switch off and free resources | 142 | // switch off and free resources | ||
143 | showCursor(); | 143 | showCursor(); | ||
144 | // Save the zoom value. | 144 | // Save the zoom value. | ||
145 | KConfigGroup conf = EffectsHandler::effectConfig(QStringLiteral("Zoom")); | 145 | ZoomConfig::setInitialZoom(target_zoom); | ||
146 | conf.writeEntry("InitialZoom", target_zoom); | 146 | ZoomConfig::self()->save(); | ||
147 | conf.sync(); | | |||
148 | } | 147 | } | ||
149 | 148 | | |||
150 | void ZoomEffect::showCursor() | 149 | void ZoomEffect::showCursor() | ||
151 | { | 150 | { | ||
152 | if (isMouseHidden) { | 151 | if (isMouseHidden) { | ||
153 | disconnect(effects, &EffectsHandler::cursorShapeChanged, this, &ZoomEffect::recreateTexture); | 152 | disconnect(effects, &EffectsHandler::cursorShapeChanged, this, &ZoomEffect::recreateTexture); | ||
154 | // show the previously hidden mouse-pointer again and free the loaded texture/picture. | 153 | // show the previously hidden mouse-pointer again and free the loaded texture/picture. | ||
155 | effects->showCursor(); | 154 | effects->showCursor(); | ||
▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines |