summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/waiting_widget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2022-08-24 20:55:24 +0900
committerMichele Calgaro <[email protected]>2022-08-25 18:25:48 +0900
commit7fed9587e9673983fe4128557baa33b23b71076f (patch)
tree8604505e8b463b97522e5a5ac68bf4dda018bbdf /khotkeys/kcontrol/waiting_widget.cpp
parent5e4ca4df9bb34e10a897e32e7e0ca8645b97f293 (diff)
downloadtdebase-7fed9587e9673983fe4128557baa33b23b71076f.tar.gz
tdebase-7fed9587e9673983fe4128557baa33b23b71076f.zip
khotkeys: added 'waiting' action to the list of available choices.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'khotkeys/kcontrol/waiting_widget.cpp')
-rw-r--r--khotkeys/kcontrol/waiting_widget.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/khotkeys/kcontrol/waiting_widget.cpp b/khotkeys/kcontrol/waiting_widget.cpp
new file mode 100644
index 000000000..6f1c0c657
--- /dev/null
+++ b/khotkeys/kcontrol/waiting_widget.cpp
@@ -0,0 +1,56 @@
+/****************************************************************************
+
+ KHotKeys
+
+ Copyright (C) 1999-2001 Lubos Lunak <[email protected]>
+
+ Distributed under the terms of the GNU General Public License version 2.
+
+****************************************************************************/
+
+#define _WAITING_WIDGET_CPP_
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "waiting_widget.h"
+
+#include <knuminput.h>
+
+#include <kdebug.h>
+
+#include <actions.h>
+#include <action_data.h>
+
+#include "windowdef_list_widget.h"
+#include "kcmkhotkeys.h"
+
+namespace KHotKeys
+{
+
+Waiting_widget::Waiting_widget( TQWidget* parent_P, const char* name_P )
+ : Waiting_widget_ui( parent_P, name_P )
+ {
+ // KHotKeys::Module::changed()
+ connect(waiting_spinbox, TQT_SIGNAL(valueChanged(int)),
+ module, TQT_SLOT(changed()));
+ }
+
+void Waiting_widget::set_data( const Waiting_action* data_P )
+ {
+ if( data_P == NULL )
+ {
+ return;
+ }
+ waiting_spinbox->setValue(data_P->_waiting_time);
+ }
+
+Waiting_action* Waiting_widget::get_data( Action_data* data_P ) const
+ {
+ return new Waiting_action( data_P, waiting_spinbox->value());
+ }
+
+} // namespace KHotKeys
+
+#include "waiting_widget.moc"