summaryrefslogtreecommitdiffabout
path: root/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
Unidiff
Diffstat (limited to 'libkdepim/kcmconfigs/kcmkdepimconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kcmconfigs/kcmkdepimconfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
index 77a294a..830d5d2 100644
--- a/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
+++ b/libkdepim/kcmconfigs/kcmkdepimconfig.cpp
@@ -19,56 +19,56 @@
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/* 24/*
25Enhanced Version of the file for platform independent KDE tools. 25Enhanced Version of the file for platform independent KDE tools.
26Copyright (c) 2004 Ulf Schenk 26Copyright (c) 2004 Ulf Schenk
27 27
28$Id$ 28$Id$
29*/ 29*/
30 30
31 31
32#include <qlayout.h> 32#include <qlayout.h>
33 33
34#include <kdebug.h> 34#include <kdebug.h>
35//#include <klocale.h> 35//#include <klocale.h>
36//#include <stdlib.h> 36//#include <stdlib.h>
37 37
38#include "kdepimconfigwidget.h" 38#include "kdepimconfigwidget.h"
39 39
40#include "kcmkdepimconfig.h" 40#include "kcmkdepimconfig.h"
41#include "kprefs.h" 41#include "kprefs.h"
42#include "kpimprefs.h" 42#include "kpimprefs.h"
43 43#ifndef _WIN32_
44extern "C" 44extern "C"
45{ 45{
46 KCModule *create_kabconfig( QWidget *parent, const char * ) { 46 KCModule *create_kabconfig( QWidget *parent, const char * ) {
47 return new KCMKdePimConfig( parent, "kcmkdepimconfig" ); 47 return new KCMKdePimConfig( parent, "kcmkdepimconfig" );
48 } 48 }
49} 49}
50 50#endif
51KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name ) 51KCMKdePimConfig::KCMKdePimConfig( QWidget *parent, const char *name )
52 : KCModule( parent, name ) 52 : KCModule( parent, name )
53{ 53{
54 //abort(); 54 //abort();
55 QVBoxLayout *layout = new QVBoxLayout( this ); 55 QVBoxLayout *layout = new QVBoxLayout( this );
56 mConfigWidget = new KDEPIMConfigWidget( this, "mConfigWidget" ); 56 mConfigWidget = new KDEPIMConfigWidget( this, "mConfigWidget" );
57 layout->addWidget( mConfigWidget ); 57 layout->addWidget( mConfigWidget );
58 layout->setSpacing( 0 ); 58 layout->setSpacing( 0 );
59 layout->setMargin( 0 ); 59 layout->setMargin( 0 );
60 60
61 connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) ); 61 connect( mConfigWidget, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) );
62} 62}
63 63
64void KCMKdePimConfig::load(KPrefs* prefs) 64void KCMKdePimConfig::load(KPrefs* prefs)
65{ 65{
66 mConfigWidget->restoreSettings((KPimPrefs*)prefs); 66 mConfigWidget->restoreSettings((KPimPrefs*)prefs);
67} 67}
68 68
69void KCMKdePimConfig::save(KPrefs* prefs) 69void KCMKdePimConfig::save(KPrefs* prefs)
70{ 70{
71 mConfigWidget->saveSettings((KPimPrefs*)prefs); 71 mConfigWidget->saveSettings((KPimPrefs*)prefs);
72} 72}
73 73
74void KCMKdePimConfig::defaults(KPrefs* prefs) 74void KCMKdePimConfig::defaults(KPrefs* prefs)