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/konq | |
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/konq')
-rw-r--r-- | kcontrol/konq/desktopbehavior_impl.cpp | 18 | ||||
-rw-r--r-- | kcontrol/konq/desktopbehavior_impl.h | 4 |
2 files changed, 21 insertions, 1 deletions
diff --git a/kcontrol/konq/desktopbehavior_impl.cpp b/kcontrol/konq/desktopbehavior_impl.cpp index 68bbb160c..17fc2f364 100644 --- a/kcontrol/konq/desktopbehavior_impl.cpp +++ b/kcontrol/konq/desktopbehavior_impl.cpp @@ -485,4 +485,22 @@ TQString DesktopBehavior::quickHelp() const "Use the \"What's This?\" (Shift+F1) to get help on specific options."); } +TQString DesktopBehavior::handbookSection() const +{ + int index = behaviorTab->currentPageIndex(); + if (index == 0) { + //return "desktop-desktop"; + return TQString::null; + } + else if (index == 1) { + return "desktop-behavior-file-icons"; + } + else if (index == 2) { + return "desktop-behavior-device-icons"; + } + else { + return TQString::null; + } +} + #include "desktopbehavior_impl.moc" diff --git a/kcontrol/konq/desktopbehavior_impl.h b/kcontrol/konq/desktopbehavior_impl.h index d04d82136..bc5965750 100644 --- a/kcontrol/konq/desktopbehavior_impl.h +++ b/kcontrol/konq/desktopbehavior_impl.h @@ -36,8 +36,9 @@ public: virtual void save(); virtual void defaults(); virtual TQString quickHelp() const; + virtual TQString handbookSection() const; friend class DesktopBehaviorPreviewItem; - friend class DesktopBehaviorMediaItem; + friend class DesktopBehaviorMediaItem; signals: void changed(); @@ -71,6 +72,7 @@ public: virtual void load() { m_behavior->load(); emit TDECModule::changed( false ); } virtual void save() { m_behavior->save(); emit TDECModule::changed( false ); } virtual void defaults() { m_behavior->defaults(); emit TDECModule::changed( true ); } + virtual TQString handbookSection() const { return m_behavior->handbookSection(); }; private slots: void changed(); |