diff options
author | Timothy Pearson <[email protected]> | 2014-10-10 14:57:12 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-10-10 14:57:12 -0500 |
commit | 2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff (patch) | |
tree | b35f0616271a50f425343acbd02962dc9272db73 /krfb | |
parent | fa1a997a1fb5dd3be69fc2e31c098247d512465a (diff) | |
download | tdenetwork-2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff.tar.gz tdenetwork-2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff.zip |
Add handbookSection support to tabbed "Internet & Network" TDEControl modules
This relates to Bug 1850
Diffstat (limited to 'krfb')
-rw-r--r-- | krfb/kcm_krfb/kcm_krfb.cpp | 19 | ||||
-rw-r--r-- | krfb/kcm_krfb/kcm_krfb.h | 2 |
2 files changed, 20 insertions, 1 deletions
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 <tqradiobutton.h> #include <tqlineedit.h> #include <tqbuttongroup.h> +#include <tqtabwidget.h> #include <tqcstring.h> #include <tqdatastream.h> #include <tdeapplication.h> @@ -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(); |