diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-12-03 14:02:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-12-03 14:02:25 +0900 |
commit | 7a558b2be677407d644b0b3db8150cd042bf9337 (patch) | |
tree | 44eb60c3b23b31826dd51c4cd164930abbe87382 | |
parent | 802d972484023b0e1cbca59dbe1274f491f3d757 (diff) | |
download | tdeutils-7a558b2be677407d644b0b3db8150cd042bf9337.tar.gz tdeutils-7a558b2be677407d644b0b3db8150cd042bf9337.zip |
Fixed help handbook in tdelirc. This finally resolves bug 1850.r14.0.0
-rw-r--r-- | tdelirc/kcmlirc/kcmlirc.cpp | 12 | ||||
-rw-r--r-- | tdelirc/kcmlirc/kcmlirc.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tdelirc/kcmlirc/kcmlirc.cpp b/tdelirc/kcmlirc/kcmlirc.cpp index bf18895..e1f35e3 100644 --- a/tdelirc/kcmlirc/kcmlirc.cpp +++ b/tdelirc/kcmlirc/kcmlirc.cpp @@ -16,6 +16,7 @@ #include <tqcombobox.h> #include <tqevent.h> #include <tqlistview.h> +#include <tqtabwidget.h> #include <kpushbutton.h> #include <tdeapplication.h> @@ -525,6 +526,17 @@ void KCMLirc::save() emit changed(true); } +TQString KCMLirc::handbookDocPath() const +{ + int index = theKCMLircBase->tabWidget2->currentPageIndex(); + if (index == 0) + return "kcmlirc/usage.html"; + else if (index == 1) + return "kcmlirc/extensions.html"; + else + return TQString::null; +} + void KCMLirc::configChanged() { // insert your saving code here... diff --git a/tdelirc/kcmlirc/kcmlirc.h b/tdelirc/kcmlirc/kcmlirc.h index 207c995..c187642 100644 --- a/tdelirc/kcmlirc/kcmlirc.h +++ b/tdelirc/kcmlirc/kcmlirc.h @@ -77,6 +77,7 @@ public: virtual void save(); virtual void defaults(); virtual void configChanged(); + virtual TQString handbookDocPath() const; KCMLirc(TQWidget *parent = 0, const char *name = 0, TQStringList args = TQStringList()); ~KCMLirc(); |