From 88a2e255141f97ac65c65fd89b5ef9a30b9138c4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 3 Oct 2014 23:13:17 -0500 Subject: 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 --- kcontrol/style/kcmstyle.cpp | 12 ++++++++++++ kcontrol/style/kcmstyle.h | 2 ++ 2 files changed, 14 insertions(+) (limited to 'kcontrol/style') 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); -- cgit v1.2.1