Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / khotkeys / kcontrol / general_settings_tab.cpp
blob009aec2de6e66d488bd91519cac33943e14a81a9
1 /****************************************************************************
3 KHotKeys
5 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
11 #define _GENERAL_SETTINGS_TAB_CPP_
15 #include "general_settings_tab.h"
17 #include <QCheckBox>
19 #include "kcmkhotkeys.h"
21 namespace KHotKeys
24 General_settings_tab::General_settings_tab( QWidget* parent_P, const char* name_P )
25 : General_settings_tab_ui( parent_P )
27 setObjectName(name_P);
28 // KHotKeys::Module::changed()
29 connect( disable_daemon_checkbox, SIGNAL( clicked()),
30 module, SLOT( changed()));
31 connect( import_button,SIGNAL(clicked()),this,SLOT(import_clicked()));
35 void General_settings_tab::import_clicked()
37 module->import();
40 void General_settings_tab::write_data() const
42 module->set_daemon_disabled( disable_daemon_checkbox->isChecked());
45 void General_settings_tab::read_data()
47 disable_daemon_checkbox->setChecked( module->daemon_disabled());
50 void General_settings_tab::clear_data()
52 // "global" tab, not action specific, do nothing
55 } // namespace KHotKeys
57 #include "general_settings_tab.moc"