From 2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 10 Oct 2014 14:57:12 -0500 Subject: Add handbookSection support to tabbed "Internet & Network" TDEControl modules This relates to Bug 1850 --- krfb/kcm_krfb/kcm_krfb.cpp | 19 ++++++++++++++++++- krfb/kcm_krfb/kcm_krfb.h | 2 ++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'krfb') diff --git a/krfb/kcm_krfb/kcm_krfb.cpp b/krfb/kcm_krfb/kcm_krfb.cpp index 6d6861ab..0c51ea4a 100644 --- a/krfb/kcm_krfb/kcm_krfb.cpp +++ b/krfb/kcm_krfb/kcm_krfb.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -177,4 +178,20 @@ TQString KcmKRfb::quickHelp() const " the TDE desktop sharing."); } - +TQString KcmKRfb::handbookSection() const +{ + int index = m_confWidget->TabWidget2->currentPageIndex(); + if (index == 0) { + //return "rfb-access"; + return TQString::null; + } + else if (index == 1) { + return "rfb-session"; + } + else if (index == 2) { + return "rfb-network"; + } + else { + return TQString::null; + } +} diff --git a/krfb/kcm_krfb/kcm_krfb.h b/krfb/kcm_krfb/kcm_krfb.h index 1f9d6aa0..996379c6 100644 --- a/krfb/kcm_krfb/kcm_krfb.h +++ b/krfb/kcm_krfb/kcm_krfb.h @@ -39,6 +39,8 @@ public: void save(); void defaults(); TQString quickHelp() const; + + virtual TQString handbookSection() const; private slots: void setInvitationNum(int num); void configChanged(); -- cgit v1.2.1