summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ktimer/ktimer.cpp7
-rw-r--r--ktimer/ktimer.h1
-rw-r--r--ktimer/prefwidget.ui10
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>&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>