diff options
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(); |