Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | |||||
123 | } | 123 | } | ||
124 | 124 | | |||
125 | void SpectacleConfig::setQuitAfterSaveOrCopyChecked(bool enabled) | 125 | void SpectacleConfig::setQuitAfterSaveOrCopyChecked(bool enabled) | ||
126 | { | 126 | { | ||
127 | mGuiConfig.writeEntry(QStringLiteral("quitAfterSaveCopyExport"), enabled); | 127 | mGuiConfig.writeEntry(QStringLiteral("quitAfterSaveCopyExport"), enabled); | ||
128 | mGuiConfig.sync(); | 128 | mGuiConfig.sync(); | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | // show magnifier | ||||
132 | | ||||
133 | bool SpectacleConfig::showMagnifierChecked() const | ||||
134 | { | ||||
135 | return mGuiConfig.readEntry(QStringLiteral("showMagnifier"), false); | ||||
136 | } | ||||
137 | | ||||
138 | void SpectacleConfig::setShowMagnifierChecked(bool enabled) | ||||
139 | { | ||||
140 | mGuiConfig.writeEntry(QStringLiteral("showMagnifier"), enabled); | ||||
141 | mGuiConfig.sync(); | ||||
142 | } | ||||
143 | | ||||
131 | // capture delay | 144 | // capture delay | ||
132 | 145 | | |||
133 | qreal SpectacleConfig::captureDelay() const | 146 | qreal SpectacleConfig::captureDelay() const | ||
134 | { | 147 | { | ||
135 | return mGuiConfig.readEntry(QStringLiteral("captureDelay"), 0.0); | 148 | return mGuiConfig.readEntry(QStringLiteral("captureDelay"), 0.0); | ||
136 | } | 149 | } | ||
137 | 150 | | |||
138 | void SpectacleConfig::setCaptureDelay(qreal delay) | 151 | void SpectacleConfig::setCaptureDelay(qreal delay) | ||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |