diff options
author | Elvis Angelaccio <elvis.angelaccio@kdemail.net> | 2016-07-02 11:01:47 +0200 |
---|---|---|
committer | Elvis Angelaccio <elvis.angelaccio@kdemail.net> | 2016-07-02 11:01:47 +0200 |
commit | b566ff96512b6ead8b11a20e23cc87bc80d72e75 (patch) | |
tree | fc8d9f0e942f8af025467e8f3be80c9c643e5330 /src/core/kauthorized.cpp | |
parent | 06d544efc88d64b4ba4a40ab5c358ababc15dada (diff) | |
download | kconfig-b566ff96512b6ead8b11a20e23cc87bc80d72e75.tar.gz kconfig-b566ff96512b6ead8b11a20e23cc87bc80d72e75.tar.bz2 |
Deprecate authorizeKAction() in favor of authorizeAction()
REVIEW: 128023
Diffstat (limited to 'src/core/kauthorized.cpp')
-rw-r--r-- | src/core/kauthorized.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp index 993a5e86..9c8b1175 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -216,7 +216,7 @@ bool KAuthorized::authorize(const QString &genericAction) return cg.readEntry(genericAction, true); } -bool KAuthorized::authorizeKAction(const QString &action) +bool KAuthorized::authorizeAction(const QString &action) { MY_D if (d->blockEverything) { @@ -229,6 +229,13 @@ bool KAuthorized::authorizeKAction(const QString &action) return authorize(QLatin1String("action/") + action); } +#ifndef KDE_NO_DEPRECATED +bool KAuthorized::authorizeKAction(const QString &action) +{ + return authorizeAction(action); +} +#endif + bool KAuthorized::authorizeControlModule(const QString &menuId) { if (menuId.isEmpty() || kde_kiosk_exception) { |