summaryrefslogtreecommitdiffstats
path: root/examples/PkExample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/PkExample.cpp')
-rw-r--r--examples/PkExample.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/PkExample.cpp b/examples/PkExample.cpp
index 99c0e641f..9223082b3 100644
--- a/examples/PkExample.cpp
+++ b/examples/PkExample.cpp
@@ -338,7 +338,7 @@ void PkExample::actionActivated()
// will run as root (setuid is not needed, see DBus docs).
// In the helper application you will issue checkAuthorizationSync,
// passing the action id and the caller pid (which DBus will tell you).
- tqDebug("Pretending to be the mechanism for action " + action->actionId());
+ tqDebug(TQString("Pretending to be the mechanism for action %1").arg(action->actionId()));
Authority::Result result;
UnixProcessSubject subject(static_cast<uint>(getpid()));
@@ -350,13 +350,13 @@ void PkExample::actionActivated()
if (result == Authority::Yes)
{
// in the helper you will do the action
- tqDebug("caller is authorized to do: " + action->actionId());
+ tqDebug(TQString("caller is authorized to do: %1").arg(action->actionId()));
item->setPixmap(1, TQPixmap("/usr/share/apps/polkit-tqt/icons/custom-yes.png"));
}
else
{
// or return false to notify the caller that the action is not authorized.
- tqDebug("caller is NOT authorized to do: " + action->actionId());
+ tqDebug(TQString("caller is NOT authorized to do: %1").arg(action->actionId()));
item->setPixmap(1, TQPixmap("/usr/share/apps/polkit-tqt/icons/custom-no.png"));
}
actionList->insertItem(item);