diff options
author | Michele Calgaro <[email protected]> | 2021-12-09 23:27:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-12-09 23:27:00 +0900 |
commit | 416bed9bc124e24cc1351c7d8e5810ca7570a023 (patch) | |
tree | fbb25a82365c24f80874fe0d7190533b27a4df3b /examples | |
parent | 855818127b02c367fb187e67b9bb9b229b916304 (diff) | |
download | polkit-tqt-416bed9bc124e24cc1351c7d8e5810ca7570a023.tar.gz polkit-tqt-416bed9bc124e24cc1351c7d8e5810ca7570a023.zip |
Updated documentation and clean up.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PkExample.cpp | 6 | ||||
-rw-r--r-- | examples/mainHelper.cpp | 1 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.policy | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/examples/PkExample.cpp b/examples/PkExample.cpp index da2405ef5..4491dadd3 100644 --- a/examples/PkExample.cpp +++ b/examples/PkExample.cpp @@ -177,15 +177,15 @@ PkExample::PkExample() : TQMainWindow(0, "Polkit tqt example application", WDest bt->setText("Play!"); bt->setVisible(true, (Action::States)(Action::No | Action::Auth | Action::Yes)); bt->setEnabled(true, (Action::States)(Action::No | Action::Auth | Action::Yes)); - // here we set the behavior of PolKitResul = No + // here we set the behavior of PolKitResult = No bt->setText("Can't play!", Action::No); bt->setIconSet(TQPixmap("/usr/share/apps/polkit-tqt/icons/custom-no.png"), Action::No); bt->setToolTip("If your admin wasn't annoying, you could do this", Action::No); - // here we set the behavior of PolKitResul = Auth + // here we set the behavior of PolKitResult = Auth bt->setText("Play?", Action::Auth); bt->setIconSet(TQPixmap("/usr/share/apps/polkit-tqt/icons/action-locked-default.png"), Action::Auth); bt->setToolTip("Only card carrying tweakers can do this!", Action::Auth); - // here we set the behavior of PolKitResul = Yes + // here we set the behavior of PolKitResult = Yes bt->setText("Play!", Action::Yes); bt->setIconSet(TQPixmap("/usr/share/apps/polkit-tqt/icons/custom-yes.png"), Action::Yes); bt->setToolTip("Go ahead, play!", Action::Yes); diff --git a/examples/mainHelper.cpp b/examples/mainHelper.cpp index 21e7d61fd..78610cd79 100644 --- a/examples/mainHelper.cpp +++ b/examples/mainHelper.cpp @@ -21,7 +21,6 @@ #include "PkExampleHelper.h" - int main(int argc, char *argv[]) { PkExampleHelper example(argc, argv); diff --git a/examples/org.tqt.policykit.examples.policy b/examples/org.tqt.policykit.examples.policy index 070feedd3..fed45f2d5 100644 --- a/examples/org.tqt.policykit.examples.policy +++ b/examples/org.tqt.policykit.examples.policy @@ -3,8 +3,8 @@ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> <policyconfig> - <vendor>KDE</vendor> - <vendor_url>http://www.kde.org</vendor_url> + <vendor>TDE</vendor> + <vendor_url>https://www.trinitydesktop.org</vendor_url> <action id="org.tqt.policykit.examples.kick"> <description>Kick</description> |