Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleCore.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 73 | #endif | |||
---|---|---|---|---|---|
79 | setGrabMode(grabMode); | 79 | setGrabMode(grabMode); | ||
80 | mImageGrabber->setCapturePointer(guiConfig.readEntry("includePointer", true)); | 80 | mImageGrabber->setCapturePointer(guiConfig.readEntry("includePointer", true)); | ||
81 | mImageGrabber->setCaptureDecorations(guiConfig.readEntry("includeDecorations", true)); | 81 | mImageGrabber->setCaptureDecorations(guiConfig.readEntry("includeDecorations", true)); | ||
82 | 82 | | |||
83 | if ((!(mImageGrabber->onClickGrabSupported())) && (delayMsec < 0)) { | 83 | if ((!(mImageGrabber->onClickGrabSupported())) && (delayMsec < 0)) { | ||
84 | delayMsec = 0; | 84 | delayMsec = 0; | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | //Reset last region if it should not be remembered across restarts | ||||
88 | SpectacleConfig* cfg = SpectacleConfig::instance(); | ||||
89 | if(!cfg->alwaysRememberRegion()) { | ||||
90 | cfg->setCropRegion(QRect()); | ||||
91 | } | ||||
92 | | ||||
87 | connect(mExportManager, &ExportManager::errorMessage, this, &SpectacleCore::showErrorMessage); | 93 | connect(mExportManager, &ExportManager::errorMessage, this, &SpectacleCore::showErrorMessage); | ||
88 | connect(this, &SpectacleCore::errorMessage, this, &SpectacleCore::showErrorMessage); | 94 | connect(this, &SpectacleCore::errorMessage, this, &SpectacleCore::showErrorMessage); | ||
89 | connect(mImageGrabber, &ImageGrabber::pixmapChanged, this, &SpectacleCore::screenshotUpdated); | 95 | connect(mImageGrabber, &ImageGrabber::pixmapChanged, this, &SpectacleCore::screenshotUpdated); | ||
90 | connect(mImageGrabber, &ImageGrabber::windowTitleChanged, mExportManager, &ExportManager::setWindowTitle); | 96 | connect(mImageGrabber, &ImageGrabber::windowTitleChanged, mExportManager, &ExportManager::setWindowTitle); | ||
91 | connect(mImageGrabber, &ImageGrabber::imageGrabFailed, this, &SpectacleCore::screenshotFailed); | 97 | connect(mImageGrabber, &ImageGrabber::imageGrabFailed, this, &SpectacleCore::screenshotFailed); | ||
92 | connect(mExportManager, &ExportManager::imageSaved, this, &SpectacleCore::doCopyPath); | 98 | connect(mExportManager, &ExportManager::imageSaved, this, &SpectacleCore::doCopyPath); | ||
93 | connect(mExportManager, &ExportManager::forceNotify, this, &SpectacleCore::doNotify); | 99 | connect(mExportManager, &ExportManager::forceNotify, this, &SpectacleCore::doNotify); | ||
94 | 100 | | |||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |