diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-02-17 18:41:32 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2014-02-17 18:41:32 -0600 |
commit | 14327767a16efb4f18df6750ad2ffc547045e2ba (patch) | |
tree | f35adddcca5f29f385682f8605a707b7906776c9 | |
parent | d569aa22af3da48356f80698e93ba86222174d49 (diff) | |
download | tdeutils-14327767a16efb4f18df6750ad2ffc547045e2ba.tar.gz tdeutils-14327767a16efb4f18df6750ad2ffc547045e2ba.zip |
Add KTimer Help button to access help handbook.
This resolves bug report 1867.
-rw-r--r-- | ktimer/ktimer.cpp | 7 | ||||
-rw-r--r-- | ktimer/ktimer.h | 1 | ||||
-rw-r--r-- | ktimer/prefwidget.ui | 10 |
3 files changed, 17 insertions, 1 deletions
diff --git a/ktimer/ktimer.cpp b/ktimer/ktimer.cpp index de3eb4f..5ec2163 100644 --- a/ktimer/ktimer.cpp +++ b/ktimer/ktimer.cpp @@ -117,6 +117,7 @@ KTimerPref::KTimerPref( TQWidget *parent, const char *name ) // connect connect( m_add, TQT_SIGNAL(clicked()), TQT_SLOT(add()) ); connect( m_remove, TQT_SIGNAL(clicked()), TQT_SLOT(remove()) ); + connect( m_help, TQT_SIGNAL(clicked()), TQT_SLOT(help()) ); connect( m_list, TQT_SIGNAL(currentChanged(TQListViewItem*)), TQT_SLOT(currentChanged(TQListViewItem*)) ); loadJobs( kapp->config() ); @@ -166,6 +167,12 @@ void KTimerPref::remove() } +void KTimerPref::help() +{ + kapp->invokeHelp(); +} + + void KTimerPref::currentChanged( TQListViewItem *i ) { KTimerJobItem *item = static_cast<KTimerJobItem*>(i); diff --git a/ktimer/ktimer.h b/ktimer/ktimer.h index 0008e02..b331007 100644 --- a/ktimer/ktimer.h +++ b/ktimer/ktimer.h @@ -99,6 +99,7 @@ class KTimerPref : public PrefWidget protected slots: void add(); void remove(); + void help(); void currentChanged( TQListViewItem * ); void saveJobs( TDEConfig *cfg ); diff --git a/ktimer/prefwidget.ui b/ktimer/prefwidget.ui index 1989ba4..dd04060 100644 --- a/ktimer/prefwidget.ui +++ b/ktimer/prefwidget.ui @@ -96,7 +96,15 @@ <string>&Remove</string> </property> </widget> - <spacer row="2" column="1"> + <widget class="TQPushButton" row="2" column="1"> + <property name="name"> + <cstring>m_help</cstring> + </property> + <property name="text"> + <string>&Help</string> + </property> + </widget> + <spacer row="3" column="1"> <property name="name"> <cstring>Spacer4</cstring> </property> |