summaryrefslogtreecommitdiffabout
path: root/korganizer/koprefs.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koprefs.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koprefs.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index 576c265..5bfe2a1 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -36,6 +36,7 @@
#include <stdlib.h>
#include <kglobal.h>
+#include <kglobalsettings.h>
#include <kconfig.h>
#include <klocale.h>
#include <kdebug.h>
@@ -62,6 +63,7 @@ KOPrefs::KOPrefs() :
QColor defaultTodoDueTodayColor = QColor(255,220,100);
QColor defaultTodoOverdueColor = QColor(255,153,125);
+ /*
mTimeBarFont = QFont("helvetica",10);//,QFont::Bold);
mDefaultViewFont = QFont("helvetica",10);
mDefaultMonthViewFont = QFont("helvetica",8);
@@ -69,6 +71,8 @@ KOPrefs::KOPrefs() :
mDateNavigatorFont= QFont("helvetica",10, QFont::Bold);
mEditBoxFont = QFont("helvetica",12);
mJornalViewFont = QFont("helvetica",12);
+ */
+
KPrefs::setCurrentGroup("General");
@@ -156,18 +160,18 @@ KOPrefs::KOPrefs() :
KPrefs::setCurrentGroup("Fonts");
// qDebug(" KPrefs::setCurrentGroup(Fonts); ");
- addItemFont("TimeBar Font",&mTimeBarFont);
- addItemFont("MonthView Font",&mMonthViewFont);
- addItemFont("AgendaView Font",&mAgendaViewFont);
- addItemFont("MarcusBains Font",&mMarcusBainsFont);
- addItemFont("TimeLabels Font",&mTimeLabelsFont);
- addItemFont("TodoView Font",&mTodoViewFont);
- addItemFont("ListView Font",&mListViewFont);
- addItemFont("DateNavigator Font",&mDateNavigatorFont);
- addItemFont("EditBox Font",&mEditBoxFont);
- addItemFont("JournalView Font",&mJornalViewFont);
- addItemFont("WhatsNextView Font",&mWhatsNextFont);
- addItemFont("EventView Font",&mEventViewFont);
+ addItemFont("TimeBar Font",&mTimeBarFont,KGlobalSettings::generalFont() );
+ addItemFont("MonthView Font",&mMonthViewFont,KGlobalSettings::generalFont());
+ addItemFont("AgendaView Font",&mAgendaViewFont,KGlobalSettings::generalFont());
+ addItemFont("MarcusBains Font",&mMarcusBainsFont,KGlobalSettings::generalFont());
+ addItemFont("TimeLabels Font",&mTimeLabelsFont,KGlobalSettings::generalFont());
+ addItemFont("TodoView Font",&mTodoViewFont,KGlobalSettings::generalFont());
+ addItemFont("ListView Font",&mListViewFont,KGlobalSettings::generalFont());
+ addItemFont("DateNavigator Font",&mDateNavigatorFont,KGlobalSettings::generalFont());
+ addItemFont("EditBox Font",&mEditBoxFont,KGlobalSettings::generalFont());
+ addItemFont("JournalView Font",&mJornalViewFont,KGlobalSettings::generalFont());
+ addItemFont("WhatsNextView Font",&mWhatsNextFont,KGlobalSettings::generalFont());
+ addItemFont("EventView Font",&mEventViewFont,KGlobalSettings::generalFont());
KPrefs::setCurrentGroup("RemoteSyncing");
addItemString("ActiveSyncPort",&mActiveSyncPort,"9197" );