Diffstat (limited to 'libkdepim/kcmconfigs/kcmkdepimconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/kcmconfigs/kcmkdepimconfig.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp index 830d5d2..f26efe0 100644 --- a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp +++ b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp | |||
@@ -39,17 +39,19 @@ $Id$ | |||
39 | 39 | ||
40 | #include "kcmkdepimconfig.h" | 40 | #include "kcmkdepimconfig.h" |
41 | #include "kprefs.h" | 41 | #include "kprefs.h" |
42 | #include "kpimprefs.h" | 42 | #include "kpimglobalprefs.h" |
43 | |||
43 | #ifndef _WIN32_ | 44 | #ifndef _WIN32_ |
44 | extern "C" | 45 | extern "C" |
45 | { | 46 | { |
46 | KCModule *create_kabconfig( QWidget *parent, const char * ) { | 47 | KCModule *create_kabconfig( KPimGlobalPrefs* prefs, QWidget *parent, const char * ) { |
47 | return new KCMKdePimConfig( parent, "kcmkdepimconfig" ); | 48 | return new KCMKdePimConfig( prefs, parent, "kcmkdepimconfig" ); |
48 | } | 49 | } |
49 | } | 50 | } |
50 | #endif | 51 | #endif |
51 | KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name ) | 52 | |
52 | : KCModule( parent, name ) | 53 | KCMKdePimConfig::KCMKdePimConfig( KPimGlobalPrefs* prefs, QWidget *parent, const char *name ) |
54 | : KCModule( prefs, parent, name ) | ||
53 | { | 55 | { |
54 | //abort(); | 56 | //abort(); |
55 | QVBoxLayout *layout = new QVBoxLayout( this ); | 57 | QVBoxLayout *layout = new QVBoxLayout( this ); |
@@ -61,17 +63,17 @@ KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name ) | |||
61 | connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); | 63 | connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); |
62 | } | 64 | } |
63 | 65 | ||
64 | void KCMKdePimConfig::load(KPrefs* prefs) | 66 | void KCMKdePimConfig::load() |
65 | { | 67 | { |
66 | mConfigWidget->restoreSettings((KPimPrefs*)prefs); | 68 | mConfigWidget->restoreSettings((KPimGlobalPrefs*)getPreferences()); |
67 | } | 69 | } |
68 | 70 | ||
69 | void KCMKdePimConfig::save(KPrefs* prefs) | 71 | void KCMKdePimConfig::save() |
70 | { | 72 | { |
71 | mConfigWidget->saveSettings((KPimPrefs*)prefs); | 73 | mConfigWidget->saveSettings((KPimGlobalPrefs*)getPreferences()); |
72 | } | 74 | } |
73 | 75 | ||
74 | void KCMKdePimConfig::defaults(KPrefs* prefs) | 76 | void KCMKdePimConfig::defaults() |
75 | { | 77 | { |
76 | mConfigWidget->defaults((KPimPrefs*)prefs); | 78 | mConfigWidget->defaults((KPimGlobalPrefs*)getPreferences()); |
77 | } | 79 | } |