-rw-r--r-- | korganizer/koprefsdialog.cpp | 14 | ||||
-rw-r--r-- | korganizer/koprefsdialog.h | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 1c30faa..7dafcd8 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp @@ -69,2 +69,3 @@ #include "koprefsdialog.h" +#include "kpimglobalprefs.h" @@ -80,2 +81,3 @@ KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : + setupGlobalTab(); setupMainTab(); @@ -99,3 +101,11 @@ KOPrefsDialog::~KOPrefsDialog() } - +void KOPrefsDialog::setupGlobalTab() +{ + QFrame *topFrame = addPage(i18n("Global"),0,0); + kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); + QVBoxLayout *topLayout = new QVBoxLayout(topFrame); + topLayout->addWidget( kdelibcfg ); + + +} void KOPrefsDialog::setupLocaleDateTab() @@ -1323,2 +1333,3 @@ void KOPrefsDialog::usrReadConfig() { + kdelibcfg->readConfig(); mNameEdit->setText(KOPrefs::instance()->fullName()); @@ -1372,2 +1383,3 @@ void KOPrefsDialog::usrWriteConfig() + kdelibcfg->writeConfig(); // KOPrefs::instance()->mRemoteIP = mRemoteIPEdit->text(); diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index 83dc1eb..e20969a 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h @@ -34,2 +34,3 @@ #include <libkdepim/kdateedit.h> +#include <kcmconfigs/kdepimconfigwidget.h> @@ -81,2 +82,3 @@ class KOPrefsDialog : public KPrefsDialog void usrWriteConfig(); + void setupGlobalTab(); @@ -101,2 +103,3 @@ class KOPrefsDialog : public KPrefsDialog private: + KDEPIMConfigWidget* kdelibcfg; KPrefsDialogWidBool *mEnableGroupScheduling; |