blob: 77a262a31e1962cb20466501de17c3b5a8b5cc8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/****************************************************************************
KHotKeys
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#define _GENERAL_SETTINGS_TAB_CPP_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "general_settings_tab.h"
#include <qcheckbox.h>
#include "kcmkhotkeys.h"
namespace KHotKeys
{
General_settings_tab::General_settings_tab( QWidget* parent_P, const char* name_P )
: General_settings_tab_ui( parent_P, name_P )
{
// KHotKeys::Module::changed()
connect( disable_daemon_checkbox, SIGNAL( clicked()),
module, SLOT( changed()));
}
void General_settings_tab::import_clicked()
{
module->import();
}
void General_settings_tab::write_data() const
{
module->set_daemon_disabled( disable_daemon_checkbox->isChecked());
}
void General_settings_tab::read_data()
{
disable_daemon_checkbox->setChecked( module->daemon_disabled());
}
void General_settings_tab::clear_data()
{
// "global" tab, not action specific, do nothing
}
} // namespace KHotKeys
#include "general_settings_tab.moc"
|