summaryrefslogtreecommitdiffstats
path: root/tdelirc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-12-03 14:02:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-12-03 14:02:25 +0900
commit7a558b2be677407d644b0b3db8150cd042bf9337 (patch)
tree44eb60c3b23b31826dd51c4cd164930abbe87382 /tdelirc
parent802d972484023b0e1cbca59dbe1274f491f3d757 (diff)
downloadtdeutils-7a558b2be677407d644b0b3db8150cd042bf9337.tar.gz
tdeutils-7a558b2be677407d644b0b3db8150cd042bf9337.zip
Fixed help handbook in tdelirc. This finally resolves bug 1850.r14.0.0
Diffstat (limited to 'tdelirc')
-rw-r--r--tdelirc/kcmlirc/kcmlirc.cpp12
-rw-r--r--tdelirc/kcmlirc/kcmlirc.h1
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();