diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-03 23:13:17 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-03 23:13:17 -0500 |
commit | 88a2e255141f97ac65c65fd89b5ef9a30b9138c4 (patch) | |
tree | 15dbaac8e5aaf4f3effed2d01ae9c82aa5f08236 /kcontrol/style | |
parent | 34cc40d9fb8f21485a467c2cfaba6fd0b063719f (diff) | |
download | tdebase-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/style')
-rw-r--r-- | kcontrol/style/kcmstyle.cpp | 12 | ||||
-rw-r--r-- | kcontrol/style/kcmstyle.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp index 2ca50631d..e6f426423 100644 --- a/kcontrol/style/kcmstyle.cpp +++ b/kcontrol/style/kcmstyle.cpp @@ -1138,6 +1138,18 @@ void KCMStyle::addWhatsThis() "or submenu appears.") ); } +TQString KCMStyle::handbookSection() const +{ + int index = tabWidget->currentPageIndex(); + if (index == 0) { + //return "style-intro"; + return TQString::null; + } + else { + return TQString::null; + } +} + #include "kcmstyle.moc" // vim: set noet ts=4: diff --git a/kcontrol/style/kcmstyle.h b/kcontrol/style/kcmstyle.h index aa00b9695..ad9fec498 100644 --- a/kcontrol/style/kcmstyle.h +++ b/kcontrol/style/kcmstyle.h @@ -73,6 +73,8 @@ public: virtual void save(); virtual void defaults(); + virtual TQString handbookSection() const; + protected: bool findStyle( const TQString& str, int& combobox_item ); void switchStyle(const TQString& styleName, bool force = false); |