Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.cpp
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Line(s) | |||||
210 | } | 210 | } | ||
211 | 211 | | |||
212 | void SpectacleConfig::setRememberLastRectangularRegion(bool enabled) | 212 | void SpectacleConfig::setRememberLastRectangularRegion(bool enabled) | ||
213 | { | 213 | { | ||
214 | mGuiConfig.writeEntry(QStringLiteral("rememberLastRectangularRegion"), enabled); | 214 | mGuiConfig.writeEntry(QStringLiteral("rememberLastRectangularRegion"), enabled); | ||
215 | mGuiConfig.sync(); | 215 | mGuiConfig.sync(); | ||
216 | } | 216 | } | ||
217 | 217 | | |||
218 | bool SpectacleConfig::alwaysRememberRegion() const | ||||
219 | { | ||||
220 | // Default Value is for compatibility reasons as the old behavior was always to remember across restarts | ||||
221 | return mGuiConfig.readEntry(QStringLiteral("alwaysRememberRegion"), rememberLastRectangularRegion()); | ||||
222 | } | ||||
223 | | ||||
224 | void SpectacleConfig::setAlwaysRememberRegion (bool enabled) | ||||
225 | { | ||||
226 | mGuiConfig.writeEntry(QStringLiteral("alwaysRememberRegion"), enabled); | ||||
227 | mGuiConfig.sync(); | ||||
228 | } | ||||
229 | | ||||
218 | // use light region mask colour | 230 | // use light region mask colour | ||
219 | 231 | | |||
220 | bool SpectacleConfig::useLightRegionMaskColour() const | 232 | bool SpectacleConfig::useLightRegionMaskColour() const | ||
221 | { | 233 | { | ||
222 | return mGuiConfig.readEntry(QStringLiteral("useLightMaskColour"), false); | 234 | return mGuiConfig.readEntry(QStringLiteral("useLightMaskColour"), false); | ||
223 | } | 235 | } | ||
224 | 236 | | |||
225 | void SpectacleConfig::setUseLightRegionMaskColour(bool enabled) | 237 | void SpectacleConfig::setUseLightRegionMaskColour(bool enabled) | ||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |