From 14327767a16efb4f18df6750ad2ffc547045e2ba Mon Sep 17 00:00:00 2001
From: Darrell Anderson <humanreadable@yahoo.com>
Date: Mon, 17 Feb 2014 18:41:32 -0600
Subject: Add KTimer Help button to access help handbook. This resolves bug
 report 1867.

---
 ktimer/ktimer.cpp    |  7 +++++++
 ktimer/ktimer.h      |  1 +
 ktimer/prefwidget.ui | 10 +++++++++-
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/ktimer/ktimer.cpp b/ktimer/ktimer.cpp
index de3eb4f9..5ec2163a 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 0008e027..b3310070 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 1989ba49..dd04060e 100644
--- a/ktimer/prefwidget.ui
+++ b/ktimer/prefwidget.ui
@@ -96,7 +96,15 @@
                 <string>&amp;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>&amp;Help</string>
+            </property>
+        </widget>
+        <spacer row="3" column="1">
             <property name="name">
                 <cstring>Spacer4</cstring>
             </property>
-- 
cgit v1.2.3

