summaryrefslogtreecommitdiffstats
path: root/tdelirc/kcmlirc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2014-12-03 14:02:25 +0900
committerMichele Calgaro <[email protected]>2014-12-03 14:02:25 +0900
commit7a558b2be677407d644b0b3db8150cd042bf9337 (patch)
tree44eb60c3b23b31826dd51c4cd164930abbe87382 /tdelirc/kcmlirc
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/kcmlirc')
-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();