summaryrefslogtreecommitdiffstats
path: root/khotkeys/kcontrol/main_buttons_widget.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /khotkeys/kcontrol/main_buttons_widget.cpp
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/kcontrol/main_buttons_widget.cpp')
-rw-r--r--khotkeys/kcontrol/main_buttons_widget.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/khotkeys/kcontrol/main_buttons_widget.cpp b/khotkeys/kcontrol/main_buttons_widget.cpp
new file mode 100644
index 000000000..fb8718a1c
--- /dev/null
+++ b/khotkeys/kcontrol/main_buttons_widget.cpp
@@ -0,0 +1,51 @@
+/****************************************************************************
+
+ KHotKeys
+
+ Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
+
+ Distributed under the terms of the GNU General Public License version 2.
+
+****************************************************************************/
+
+#define MAIN_BUTTONS_WIDGET_CPP
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "main_buttons_widget.h"
+
+#include <qpushbutton.h>
+
+#include "kcmkhotkeys.h"
+
+namespace KHotKeys
+{
+
+Main_buttons_widget::Main_buttons_widget( QWidget* parent_P, const char* name_P )
+ : Main_buttons_widget_ui( parent_P, name_P )
+ {
+ connect( new_action_button, SIGNAL( clicked()), SIGNAL( new_action_pressed()));
+ connect( new_action_group_button, SIGNAL( clicked()), SIGNAL( new_action_group_pressed()));
+ connect( delete_action_button, SIGNAL( clicked()), SIGNAL( delete_action_pressed()));
+ connect( global_settings_button, SIGNAL( clicked()), SIGNAL( global_settings_pressed()));
+ enable_delete( false );
+ // KHotKeys::Module::changed()
+ connect( new_action_button, SIGNAL( clicked()),
+ module, SLOT( changed()));
+ connect( new_action_group_button, SIGNAL( clicked()),
+ module, SLOT( changed()));
+ connect( delete_action_button, SIGNAL( clicked()),
+ module, SLOT( changed()));
+ setMaximumHeight( sizeHint().height()); // it gets too high and I have no idea why
+ }
+
+void Main_buttons_widget::enable_delete( bool enable_P )
+ {
+ delete_action_button->setEnabled( enable_P );
+ }
+
+} // namespace KHotKeys
+
+#include "main_buttons_widget.moc"