Fixed help handbook in tdelirc. This finally resolves bug 1850.

pull/1/head r14.0.0
Michele Calgaro 10 years ago
parent 802d972484
commit 7a558b2be6

@ -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...

@ -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();

Loading…
Cancel
Save