Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 29 | { | |||
---|---|---|---|---|---|
54 | { | 54 | { | ||
55 | QAction *action = new QAction(i18n("Capture Current Monitor")); | 55 | QAction *action = new QAction(i18n("Capture Current Monitor")); | ||
56 | action->setObjectName(QStringLiteral("CurrentMonitorScreenShot")); | 56 | action->setObjectName(QStringLiteral("CurrentMonitorScreenShot")); | ||
57 | shortCutActions->addAction(action->objectName(), action); | 57 | shortCutActions->addAction(action->objectName(), action); | ||
58 | } | 58 | } | ||
59 | { | 59 | { | ||
60 | QAction *action = new QAction(i18n("Capture Active Window")); | 60 | QAction *action = new QAction(i18n("Capture Active Window")); | ||
61 | action->setObjectName(QStringLiteral("ActiveWindowScreenShot")); | 61 | action->setObjectName(QStringLiteral("ActiveWindowScreenShot")); | ||
62 | shortCutActions->addAction(action->objectName(), action); | 62 | shortCutActions->addAction(action->objectName(), action); | ||
davidre: This also adds this to the shortcut editor which is completetly unrelated and untested if… | |||||
63 | } | 63 | } | ||
64 | { | 64 | { | ||
65 | QAction *action = new QAction(i18n("Window Under Cursor")); | ||||
66 | action->setObjectName(QStringLiteral("WindowUnderCursorScreenShot")); | ||||
67 | shortCutActions->addAction(action->objectName(), action); | ||||
68 | } | ||||
69 | { | ||||
65 | QAction *action = new QAction(i18n("Capture Rectangular Region")); | 70 | QAction *action = new QAction(i18n("Capture Rectangular Region")); | ||
66 | action->setObjectName(QStringLiteral("RectangularRegionScreenShot")); | 71 | action->setObjectName(QStringLiteral("RectangularRegionScreenShot")); | ||
67 | shortCutActions->addAction(action->objectName(), action); | 72 | shortCutActions->addAction(action->objectName(), action); | ||
68 | } | 73 | } | ||
69 | } | 74 | } | ||
70 | 75 | | |||
71 | SpectacleConfig::~SpectacleConfig() | 76 | SpectacleConfig::~SpectacleConfig() | ||
72 | {} | 77 | {} | ||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |
This also adds this to the shortcut editor which is completetly unrelated and untested if shortcut + window under cursor works.