From 8858fc1159edf35efa400315c11c095008536802 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 14 Nov 2014 22:29:12 +0900 Subject: Fixed help handbook sections for Regional & Accessibility. This relates to bug 1850. --- kxkb/kcmlayout.cpp | 14 ++++++++++++++ kxkb/kcmlayout.h | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'kxkb') diff --git a/kxkb/kcmlayout.cpp b/kxkb/kcmlayout.cpp index 2c601856f..1cb011270 100644 --- a/kxkb/kcmlayout.cpp +++ b/kxkb/kcmlayout.cpp @@ -329,6 +329,20 @@ void LayoutConfig::save() } +TQString LayoutConfig::handbookSection() const +{ + int index = widget->tabWidget->currentPageIndex(); + if (index == 0) + return "layout-config"; + else if (index == 1) + return "switching-config"; + else if (index == 2) + return "xkboptions-config"; + else + return TQString::null; +} + + void LayoutConfig::updateStickyLimit() { int layoutsCnt = widget->listLayoutsDst->childCount(); diff --git a/kxkb/kcmlayout.h b/kxkb/kcmlayout.h index 769b08048..a9b375db6 100644 --- a/kxkb/kcmlayout.h +++ b/kxkb/kcmlayout.h @@ -26,7 +26,8 @@ public: void save(); void defaults(); void initUI(); - + virtual TQString handbookSection() const; + protected: TQString createOptionString(); void updateIndicator(TQListViewItem* selLayout); -- cgit v1.2.1