summaryrefslogtreecommitdiffstats
path: root/kcontrol/displayconfig
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-11-24 18:52:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-11-24 18:52:20 +0900
commit1bd907fe3d97323c96d7b4a385207dfd8f7a8931 (patch)
tree56dc6e4fcd0cfd7254add597e9dc2ea9054547b5 /kcontrol/displayconfig
parentf1baae5fff89ee638864f7d9b82f88b9dfa59796 (diff)
downloadtdebase-1bd907fe3d97323c96d7b4a385207dfd8f7a8931.tar.gz
tdebase-1bd907fe3d97323c96d7b4a385207dfd8f7a8931.zip
Fixed help handbook sections for System Administration. This relates to bug 1850.
Diffstat (limited to 'kcontrol/displayconfig')
-rw-r--r--kcontrol/displayconfig/displayconfig.cpp17
-rw-r--r--kcontrol/displayconfig/displayconfig.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/kcontrol/displayconfig/displayconfig.cpp b/kcontrol/displayconfig/displayconfig.cpp
index 835b2598b..dacb5cc88 100644
--- a/kcontrol/displayconfig/displayconfig.cpp
+++ b/kcontrol/displayconfig/displayconfig.cpp
@@ -2034,6 +2034,23 @@ void KDisplayConfig::defaults()
load( true );
}
+TQString KDisplayConfig::handbookSection() const
+{
+ int index = base->mainTabContainerWidget->currentPageIndex();
+ if (index == 0)
+ return "displayconfig-global";
+ else if (index == 1)
+ return "displayconfig-resolution";
+ else if (index == 2)
+ return "displayconfig-brightness";
+ else if (index == 3)
+ return "displayconfig-power";
+ else if (index == 4)
+ return "displayconfig-colors";
+ else
+ return TQString::null;
+}
+
TQString KDisplayConfig::quickHelp() const
{
return i18n("<h1>Monitor & Display Configuration</h1> This module allows you to configure monitors attached to your"
diff --git a/kcontrol/displayconfig/displayconfig.h b/kcontrol/displayconfig/displayconfig.h
index 92fa1f421..dce061003 100644
--- a/kcontrol/displayconfig/displayconfig.h
+++ b/kcontrol/displayconfig/displayconfig.h
@@ -67,6 +67,7 @@ public:
void load( bool useDefaults);
void save();
void defaults();
+ virtual TQString handbookSection() const;
TQString quickHelp() const;