Changeset View
Changeset View
Standalone View
Standalone View
src/kstandardaction.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 159 | case Forward: | |||
---|---|---|---|---|---|
161 | if (QApplication::isRightToLeft()) { | 161 | if (QApplication::isRightToLeft()) { | ||
162 | iconName = QStringLiteral("go-previous"); | 162 | iconName = QStringLiteral("go-previous"); | ||
163 | } | 163 | } | ||
164 | break; | 164 | break; | ||
165 | 165 | | |||
166 | case Home: | 166 | case Home: | ||
167 | sLabel = i18nc("home page", "&Home"); | 167 | sLabel = i18nc("home page", "&Home"); | ||
168 | break; | 168 | break; | ||
169 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 23) | ||||
169 | case Help: | 170 | case Help: | ||
170 | sLabel = i18nc("show help", "&Help"); | 171 | sLabel = i18nc("show help", "&Help"); | ||
171 | break; | 172 | break; | ||
173 | #endif | ||||
172 | case Preferences: | 174 | case Preferences: | ||
173 | case AboutApp: | 175 | case AboutApp: | ||
174 | case HelpContents: { | 176 | case HelpContents: { | ||
175 | QString appDisplayName = QGuiApplication::applicationDisplayName(); | 177 | QString appDisplayName = QGuiApplication::applicationDisplayName(); | ||
176 | if (appDisplayName.isEmpty()) { | 178 | if (appDisplayName.isEmpty()) { | ||
177 | appDisplayName = QCoreApplication::applicationName(); | 179 | appDisplayName = QCoreApplication::applicationName(); | ||
178 | } | 180 | } | ||
179 | sLabel = i18n(pInfo->psLabel, appDisplayName); | 181 | sLabel = i18n(pInfo->psLabel, appDisplayName); | ||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 234 | case ShowStatusbar: | |||
234 | pAction->setWhatsThis(i18n("Show Statusbar<p>" | 236 | pAction->setWhatsThis(i18n("Show Statusbar<p>" | ||
235 | "Shows the statusbar, which is the bar at the bottom of the window used for status information.</p>")); | 237 | "Shows the statusbar, which is the bar at the bottom of the window used for status information.</p>")); | ||
236 | pAction->setChecked(true); | 238 | pAction->setChecked(true); | ||
237 | break; | 239 | break; | ||
238 | case FullScreen: | 240 | case FullScreen: | ||
239 | pAction = new KToggleFullScreenAction(parent); | 241 | pAction = new KToggleFullScreenAction(parent); | ||
240 | pAction->setCheckable(true); | 242 | pAction->setCheckable(true); | ||
241 | break; | 243 | break; | ||
242 | #if !defined(KDE_NO_DEPRECATED) && defined(QT_DBUS_LIB) | 244 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 39) && defined(QT_DBUS_LIB) | ||
243 | case PasteText: | 245 | case PasteText: | ||
244 | pAction = new KPasteTextAction(parent); | 246 | pAction = new KPasteTextAction(parent); | ||
245 | break; | 247 | break; | ||
246 | #endif | 248 | #endif | ||
247 | // Same as default, but with the app icon | 249 | // Same as default, but with the app icon | ||
248 | case AboutApp: | 250 | case AboutApp: | ||
249 | { | 251 | { | ||
250 | pAction = new QAction(parent); | 252 | pAction = new QAction(parent); | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 406 | { | |||
405 | return KStandardAction::create(Copy, recvr, slot, parent); | 407 | return KStandardAction::create(Copy, recvr, slot, parent); | ||
406 | } | 408 | } | ||
407 | 409 | | |||
408 | QAction *paste(const QObject *recvr, const char *slot, QObject *parent) | 410 | QAction *paste(const QObject *recvr, const char *slot, QObject *parent) | ||
409 | { | 411 | { | ||
410 | return KStandardAction::create(Paste, recvr, slot, parent); | 412 | return KStandardAction::create(Paste, recvr, slot, parent); | ||
411 | } | 413 | } | ||
412 | 414 | | |||
413 | #ifndef KDE_NO_DEPRECATED | 415 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 39) | ||
414 | QAction *pasteText(const QObject *recvr, const char *slot, QObject *parent) | 416 | QAction *pasteText(const QObject *recvr, const char *slot, QObject *parent) | ||
415 | { | 417 | { | ||
416 | return KStandardAction::create(PasteText, recvr, slot, parent); | 418 | return KStandardAction::create(PasteText, recvr, slot, parent); | ||
417 | } | 419 | } | ||
418 | #endif | 420 | #endif | ||
419 | 421 | | |||
420 | QAction *clear(const QObject *recvr, const char *slot, QObject *parent) | 422 | QAction *clear(const QObject *recvr, const char *slot, QObject *parent) | ||
421 | { | 423 | { | ||
▲ Show 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | |||||
641 | { | 643 | { | ||
642 | KToggleFullScreenAction *ret; | 644 | KToggleFullScreenAction *ret; | ||
643 | ret = static_cast< KToggleFullScreenAction * >(KStandardAction::create(FullScreen, recvr, slot, parent)); | 645 | ret = static_cast< KToggleFullScreenAction * >(KStandardAction::create(FullScreen, recvr, slot, parent)); | ||
644 | ret->setWindow(window); | 646 | ret->setWindow(window); | ||
645 | 647 | | |||
646 | return ret; | 648 | return ret; | ||
647 | } | 649 | } | ||
648 | 650 | | |||
649 | #ifndef KDE_NO_DEPRECATED | 651 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 38) | ||
650 | QAction *saveOptions(const QObject *recvr, const char *slot, QObject *parent) | 652 | QAction *saveOptions(const QObject *recvr, const char *slot, QObject *parent) | ||
651 | { | 653 | { | ||
652 | return KStandardAction::create(SaveOptions, recvr, slot, parent); | 654 | return KStandardAction::create(SaveOptions, recvr, slot, parent); | ||
653 | } | 655 | } | ||
654 | #endif | 656 | #endif | ||
655 | 657 | | |||
656 | QAction *keyBindings(const QObject *recvr, const char *slot, QObject *parent) | 658 | QAction *keyBindings(const QObject *recvr, const char *slot, QObject *parent) | ||
657 | { | 659 | { | ||
Show All 10 Lines | 669 | { | |||
668 | return KStandardAction::create(ConfigureToolbars, recvr, slot, parent); | 670 | return KStandardAction::create(ConfigureToolbars, recvr, slot, parent); | ||
669 | } | 671 | } | ||
670 | 672 | | |||
671 | QAction *configureNotifications(const QObject *recvr, const char *slot, QObject *parent) | 673 | QAction *configureNotifications(const QObject *recvr, const char *slot, QObject *parent) | ||
672 | { | 674 | { | ||
673 | return KStandardAction::create(ConfigureNotifications, recvr, slot, parent); | 675 | return KStandardAction::create(ConfigureNotifications, recvr, slot, parent); | ||
674 | } | 676 | } | ||
675 | 677 | | |||
676 | #ifndef KDE_NO_DEPRECATED | 678 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 38) | ||
677 | QAction *help(const QObject *recvr, const char *slot, QObject *parent) | 679 | QAction *help(const QObject *recvr, const char *slot, QObject *parent) | ||
678 | { | 680 | { | ||
679 | return KStandardAction::create(Help, recvr, slot, parent); | 681 | return KStandardAction::create(Help, recvr, slot, parent); | ||
680 | } | 682 | } | ||
681 | #endif | 683 | #endif | ||
682 | 684 | | |||
683 | QAction *helpContents(const QObject *recvr, const char *slot, QObject *parent) | 685 | QAction *helpContents(const QObject *recvr, const char *slot, QObject *parent) | ||
684 | { | 686 | { | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |