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/input/mouse.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'kcontrol/input/mouse.cpp') diff --git a/kcontrol/input/mouse.cpp b/kcontrol/input/mouse.cpp index 4ec79c24c..0d07e782e 100644 --- a/kcontrol/input/mouse.cpp +++ b/kcontrol/input/mouse.cpp @@ -890,4 +890,28 @@ void MouseConfig::slotScrollPolarityChanged() settings->m_handedNeedsApply = true; } +TQString MouseConfig::handbookSection() const +{ + int index = tabwidget->currentPageIndex(); + if (index == 0) { + //return "mouse-general"; + return TQString::null; + } + else if (index == 1) { + return "cursor-theme"; + } + else if (index == 2) { + return "mouse-advanced"; + } + else if (index == 3) { + return "mouse-navigation"; + } + else if (index >= 4) { + return "logitech-mouse"; + } + else { + return TQString::null; + } +} + #include "mouse.moc" -- cgit v1.2.3