summaryrefslogtreecommitdiffstats
path: root/kcontrol/performance
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-03 23:13:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-03 23:13:17 -0500
commit88a2e255141f97ac65c65fd89b5ef9a30b9138c4 (patch)
tree15dbaac8e5aaf4f3effed2d01ae9c82aa5f08236 /kcontrol/performance
parent34cc40d9fb8f21485a467c2cfaba6fd0b063719f (diff)
downloadtdebase-88a2e255141f97ac65c65fd89b5ef9a30b9138c4.tar.gz
tdebase-88a2e255141f97ac65c65fd89b5ef9a30b9138c4.zip
Add mechanism by which sections of relevant docbooks may be opened automatically based on active tab in TDECModule
Fix up several tabbed TDEControl modules to use this mechanism Fix a couple of docbooks with missing section IDs This relates to Bug 1850
Diffstat (limited to 'kcontrol/performance')
-rw-r--r--kcontrol/performance/kcmperformance.cpp17
-rw-r--r--kcontrol/performance/kcmperformance.h2
2 files changed, 18 insertions, 1 deletions
diff --git a/kcontrol/performance/kcmperformance.cpp b/kcontrol/performance/kcmperformance.cpp
index 93c5019a6..84959e34d 100644
--- a/kcontrol/performance/kcmperformance.cpp
+++ b/kcontrol/performance/kcmperformance.cpp
@@ -49,7 +49,7 @@ Config::Config( TQWidget* parent_P, const char* )
" You can configure settings that improve TDE performance here." ));
TQVBoxLayout *topLayout = new TQVBoxLayout( this );
- TQTabWidget* tabs = new TQTabWidget( this );
+ tabs = new TQTabWidget( this );
konqueror_widget = new Konqueror( tabs );
konqueror_widget->layout()->setMargin( KDialog::marginHint() );
connect( konqueror_widget, TQT_SIGNAL( changed()), TQT_SLOT( changed()));
@@ -85,6 +85,21 @@ void Config::defaults()
load( true );
}
+TQString Config::handbookSection() const
+ {
+ int index = tabs->currentPageIndex();
+ if (index == 0) {
+ //return "konqueror-performance";
+ return TQString::null;
+ }
+ else if (index == 1) {
+ return "system-performance";
+ }
+ else {
+ return TQString::null;
+ }
+ }
+
KonquerorConfig::KonquerorConfig( TQWidget* parent_P, const char* )
: TDECModule( parent_P, "kcmperformance" )
{
diff --git a/kcontrol/performance/kcmperformance.h b/kcontrol/performance/kcmperformance.h
index a9963e18a..7e0660c60 100644
--- a/kcontrol/performance/kcmperformance.h
+++ b/kcontrol/performance/kcmperformance.h
@@ -37,9 +37,11 @@ class Config
virtual void load( bool useDefaults );
virtual void save();
virtual void defaults();
+ virtual TQString handbookSection() const;
private:
Konqueror* konqueror_widget;
SystemWidget* system_widget;
+ TQTabWidget* tabs;
};
class KonquerorConfig