From 1bd907fe3d97323c96d7b4a385207dfd8f7a8931 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 24 Nov 2014 18:52:20 +0900 Subject: Fixed help handbook sections for System Administration. This relates to bug 1850. --- kcontrol/tdm/main.cpp | 19 +++++++++++++++++++ kcontrol/tdm/main.h | 1 + kcontrol/tdm/tdm.desktop | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) (limited to 'kcontrol/tdm') diff --git a/kcontrol/tdm/main.cpp b/kcontrol/tdm/main.cpp index 4a2c8e3ec..2a5f72895 100644 --- a/kcontrol/tdm/main.cpp +++ b/kcontrol/tdm/main.cpp @@ -274,6 +274,25 @@ void TDModule::defaults() } } +TQString TDModule::handbookSection() const +{ + int index = tab->currentPageIndex(); + if (index == 0) + return "tdmconfig-appearance"; + else if (index == 1) + return "tdmconfig-font"; + else if (index == 2) + return "tdmconfig-background"; + else if (index == 3) + return "tdmconfig-shutdown"; + else if (index == 4) + return "tdmconfig-users"; + else if (index == 5) + return "tdmconfig-convenience"; + else + return TQString::null; +} + void TDModule::propagateUsers() { groupmap.clear(); diff --git a/kcontrol/tdm/main.h b/kcontrol/tdm/main.h index 144d1db20..48cfa5b22 100644 --- a/kcontrol/tdm/main.h +++ b/kcontrol/tdm/main.h @@ -48,6 +48,7 @@ public: void load(); void save(); void defaults(); + virtual TQString handbookSection() const; public slots: diff --git a/kcontrol/tdm/tdm.desktop b/kcontrol/tdm/tdm.desktop index 349ec8709..de9039385 100644 --- a/kcontrol/tdm/tdm.desktop +++ b/kcontrol/tdm/tdm.desktop @@ -2,7 +2,7 @@ Exec=tdecmshell tdm Icon=tdmconfig Type=Application -X-DocPath=tdm/index.html +X-DocPath=tdm/configuring-tdm.html X-TDE-SubstituteUID=true -- cgit v1.2.1