Changeset View
Changeset View
Standalone View
Standalone View
src/ShortcutActions.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 56 | { | |||
---|---|---|---|---|---|
58 | action->setObjectName(QStringLiteral("ActiveWindowScreenShot")); | 58 | action->setObjectName(QStringLiteral("ActiveWindowScreenShot")); | ||
59 | mActions.addAction(action->objectName(), action); | 59 | mActions.addAction(action->objectName(), action); | ||
60 | } | 60 | } | ||
61 | { | 61 | { | ||
62 | QAction *action = new QAction(i18n("Capture Rectangular Region")); | 62 | QAction *action = new QAction(i18n("Capture Rectangular Region")); | ||
63 | action->setObjectName(QStringLiteral("RectangularRegionScreenShot")); | 63 | action->setObjectName(QStringLiteral("RectangularRegionScreenShot")); | ||
64 | mActions.addAction(action->objectName(), action); | 64 | mActions.addAction(action->objectName(), action); | ||
65 | } | 65 | } | ||
66 | { | ||||
67 | QAction *action = new QAction(i18n("Capture Rectangular Region to Clipboard")); | ||||
68 | action->setObjectName(QStringLiteral("RectangularRegionClipboardScreenShot")); | ||||
69 | mActions.addAction(action->objectName(), action); | ||||
70 | } | ||||
71 | | ||||
66 | } | 72 | } | ||
67 | 73 | | |||
68 | KActionCollection* ShortcutActions::shortcutActions() | 74 | KActionCollection* ShortcutActions::shortcutActions() | ||
69 | { | 75 | { | ||
70 | return &mActions; | 76 | return &mActions; | ||
71 | } | 77 | } | ||
72 | 78 | | |||
73 | QString ShortcutActions::componentName() const | 79 | QString ShortcutActions::componentName() const | ||
Show All 20 Lines | |||||
94 | { | 100 | { | ||
95 | return mActions.action(3); | 101 | return mActions.action(3); | ||
96 | } | 102 | } | ||
97 | 103 | | |||
98 | QAction* ShortcutActions::regionAction() const | 104 | QAction* ShortcutActions::regionAction() const | ||
99 | { | 105 | { | ||
100 | return mActions.action(4); | 106 | return mActions.action(4); | ||
101 | } | 107 | } | ||
108 | | ||||
109 | QAction* ShortcutActions::regionClipboardAction() const | ||||
110 | { | ||||
111 | return mActions.action(5); | ||||
112 | } |