Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.cpp
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | void SpectacleConfig::setCaptureTransientWindowOnlyChecked(bool enabled) | 114 | void SpectacleConfig::setCaptureTransientWindowOnlyChecked(bool enabled) | ||
115 | { | 115 | { | ||
116 | mGuiConfig.writeEntry(QStringLiteral("transientOnly"), enabled); | 116 | mGuiConfig.writeEntry(QStringLiteral("transientOnly"), enabled); | ||
117 | mGuiConfig.sync(); | 117 | mGuiConfig.sync(); | ||
118 | } | 118 | } | ||
119 | 119 | | |||
120 | // quit after saving, copying, or exporting the image | ||||
121 | | ||||
122 | bool SpectacleConfig::quitAfterSaveOrCopyChecked() const | ||||
123 | { | ||||
124 | return mGuiConfig.readEntry(QStringLiteral("quitAfterSaveCopyExport"), false); | ||||
125 | } | ||||
126 | | ||||
127 | void SpectacleConfig::setQuitAfterSaveOrCopyChecked(bool enabled) | ||||
128 | { | ||||
129 | mGuiConfig.writeEntry(QStringLiteral("quitAfterSaveCopyExport"), enabled); | ||||
130 | mGuiConfig.sync(); | ||||
131 | } | ||||
132 | | ||||
120 | // capture delay | 133 | // capture delay | ||
121 | 134 | | |||
122 | qreal SpectacleConfig::captureDelay() const | 135 | qreal SpectacleConfig::captureDelay() const | ||
123 | { | 136 | { | ||
124 | return mGuiConfig.readEntry(QStringLiteral("captureDelay"), 0.0); | 137 | return mGuiConfig.readEntry(QStringLiteral("captureDelay"), 0.0); | ||
125 | } | 138 | } | ||
126 | 139 | | |||
127 | void SpectacleConfig::setCaptureDelay(qreal delay) | 140 | void SpectacleConfig::setCaptureDelay(qreal delay) | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |