Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / khotkeys / kcontrol / main_buttons_widget.cpp
blob9c406b659904e6a8cdb9b2a7d67b5136d9f2e6bf
1 /****************************************************************************
3 KHotKeys
5 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
11 #define MAIN_BUTTONS_WIDGET_CPP
15 #include "main_buttons_widget.h"
17 #include <QPushButton>
19 #include "kcmkhotkeys.h"
21 namespace KHotKeys
24 Main_buttons_widget::Main_buttons_widget( QWidget* parent_P, const char* name_P )
25 : Main_buttons_widget_ui( parent_P )
27 setObjectName(name_P);
28 connect( new_action_button, SIGNAL( clicked()), SIGNAL( new_action_pressed()));
29 connect( new_action_group_button, SIGNAL( clicked()), SIGNAL( new_action_group_pressed()));
30 connect( delete_action_button, SIGNAL( clicked()), SIGNAL( delete_action_pressed()));
31 connect( global_settings_button, SIGNAL( clicked()), SIGNAL( global_settings_pressed()));
32 enable_delete( false );
33 // KHotKeys::Module::changed()
34 connect( new_action_button, SIGNAL( clicked()),
35 module, SLOT( changed()));
36 connect( new_action_group_button, SIGNAL( clicked()),
37 module, SLOT( changed()));
38 connect( delete_action_button, SIGNAL( clicked()),
39 module, SLOT( changed()));
40 layout()->setMargin(0);
41 setMaximumHeight( sizeHint().height()); // it gets too high and I have no idea why
44 void Main_buttons_widget::enable_delete( bool enable_P )
46 delete_action_button->setEnabled( enable_P );
49 } // namespace KHotKeys
51 #include "main_buttons_widget.moc"