Diffstat (limited to 'pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp b/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp index b7944c3..1804e88 100644 --- a/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp +++ b/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.cpp | |||
@@ -1,69 +1,71 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of PwManager/Pi | 2 | This file is part of PwManager/Pi |
3 | Copyright (c) 2004 Ulf Schenk | 3 | Copyright (c) 2004 Ulf Schenk |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | //Added by qt3to4: | ||
26 | #include <Q3VBoxLayout> | ||
25 | 27 | ||
26 | #include <kdebug.h> | 28 | #include <kdebug.h> |
27 | 29 | ||
28 | #include "pwmconfigwidget.h" | 30 | #include "pwmconfigwidget.h" |
29 | 31 | ||
30 | #include "kcmpwmconfig.h" | 32 | #include "kcmpwmconfig.h" |
31 | 33 | ||
32 | #include "pwmprefs.h" | 34 | #include "pwmprefs.h" |
33 | #include "kprefs.h" | 35 | #include "kprefs.h" |
34 | 36 | ||
35 | extern "C" | 37 | extern "C" |
36 | { | 38 | { |
37 | KCModule *create_pwmconfig(QWidget *parent, const char * ) { | 39 | KCModule *create_pwmconfig(QWidget *parent, const char * ) { |
38 | return new KCMPwmConfig(parent, "kcmpwmconfig" ); | 40 | return new KCMPwmConfig(parent, "kcmpwmconfig" ); |
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||
42 | KCMPwmConfig::KCMPwmConfig(QWidget *parent, const char *name ) | 44 | KCMPwmConfig::KCMPwmConfig(QWidget *parent, const char *name ) |
43 | : KCModule( PWMPrefs::instance(), parent, name ) | 45 | : KCModule( PWMPrefs::instance(), parent, name ) |
44 | { | 46 | { |
45 | QVBoxLayout *layout = new QVBoxLayout( this ); | 47 | Q3VBoxLayout *layout = new Q3VBoxLayout( this ); |
46 | mConfigWidget = new PWMConfigWidget( (PWMPrefs*)getPreferences(), this, "mConfigWidget" ); | 48 | mConfigWidget = new PWMConfigWidget( (PWMPrefs*)getPreferences(), this, "mConfigWidget" ); |
47 | layout->addWidget( mConfigWidget ); | 49 | layout->addWidget( mConfigWidget ); |
48 | layout->setSpacing( 0 ); | 50 | layout->setSpacing( 0 ); |
49 | layout->setMargin( 0 ); | 51 | layout->setMargin( 0 ); |
50 | 52 | ||
51 | connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); | 53 | connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); |
52 | } | 54 | } |
53 | 55 | ||
54 | void KCMPwmConfig::load() | 56 | void KCMPwmConfig::load() |
55 | { | 57 | { |
56 | mConfigWidget->readConfig(); | 58 | mConfigWidget->readConfig(); |
57 | } | 59 | } |
58 | 60 | ||
59 | void KCMPwmConfig::save() | 61 | void KCMPwmConfig::save() |
60 | { | 62 | { |
61 | mConfigWidget->writeConfig(); | 63 | mConfigWidget->writeConfig(); |
62 | } | 64 | } |
63 | 65 | ||
64 | void KCMPwmConfig::defaults() | 66 | void KCMPwmConfig::defaults() |
65 | { | 67 | { |
66 | mConfigWidget->setDefaults(); | 68 | mConfigWidget->setDefaults(); |
67 | } | 69 | } |
68 | 70 | ||
69 | 71 | ||