author | zautrix <zautrix> | 2004-10-13 02:34:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-13 02:34:50 (UTC) |
commit | e7833b80c28e38bfe6316ee5fce150635cdebe03 (patch) (unidiff) | |
tree | bc52de370428ef240e370da516077e883283d398 /kaddressbook/kabprefs.cpp | |
parent | d56ca1073ce493afdeb54e33425638f7147d4bca (diff) | |
download | kdepimpi-e7833b80c28e38bfe6316ee5fce150635cdebe03.zip kdepimpi-e7833b80c28e38bfe6316ee5fce150635cdebe03.tar.gz kdepimpi-e7833b80c28e38bfe6316ee5fce150635cdebe03.tar.bz2 |
added font setting in KA
-rw-r--r-- | kaddressbook/kabprefs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index dded2bf..9270a7d 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp | |||
@@ -26,44 +26,46 @@ | |||
26 | //#endif //KAB_EMBEDDED | 26 | //#endif //KAB_EMBEDDED |
27 | 27 | ||
28 | 28 | ||
29 | #include <kconfig.h> | 29 | #include <kconfig.h> |
30 | #include <klocale.h> | 30 | #include <klocale.h> |
31 | #include <kstaticdeleter.h> | 31 | #include <kstaticdeleter.h> |
32 | //US#include <kdebug.h> // defines kdDebug() | 32 | //US#include <kdebug.h> // defines kdDebug() |
33 | 33 | ||
34 | #include "kabprefs.h" | 34 | #include "kabprefs.h" |
35 | 35 | ||
36 | KABPrefs *KABPrefs::sInstance = 0; | 36 | KABPrefs *KABPrefs::sInstance = 0; |
37 | static KStaticDeleter<KABPrefs> staticDeleter; | 37 | static KStaticDeleter<KABPrefs> staticDeleter; |
38 | 38 | ||
39 | KABPrefs::KABPrefs() | 39 | KABPrefs::KABPrefs() |
40 | : KPimPrefs("kaddressbookrc") | 40 | : KPimPrefs("kaddressbookrc") |
41 | { | 41 | { |
42 | mDetailsFont = QFont("helvetica",12); | ||
42 | KPrefs::setCurrentGroup( "Views" ); | 43 | KPrefs::setCurrentGroup( "Views" ); |
43 | addItemBool( "HonorSingleClick", &mHonorSingleClick, false ); | 44 | addItemBool( "HonorSingleClick", &mHonorSingleClick, false ); |
44 | 45 | ||
45 | KPrefs::setCurrentGroup( "General" ); | 46 | KPrefs::setCurrentGroup( "General" ); |
46 | addItemBool( "AutomaticNameParsing", &mAutomaticNameParsing, true ); | 47 | addItemBool( "AutomaticNameParsing", &mAutomaticNameParsing, true ); |
47 | addItemInt( "CurrentIncSearchField", &mCurrentIncSearchField, 0 ); | 48 | addItemInt( "CurrentIncSearchField", &mCurrentIncSearchField, 0 ); |
48 | 49 | ||
49 | #ifdef KAB_EMBEDDED | 50 | #ifdef KAB_EMBEDDED |
50 | addItemBool("AskForQuit",&mAskForQuit,true); | 51 | addItemBool("AskForQuit",&mAskForQuit,true); |
51 | addItemBool("ToolBarHor",&mToolBarHor, true ); | 52 | addItemBool("ToolBarHor",&mToolBarHor, true ); |
52 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 53 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
53 | addItemBool("SearchWithReturn",&mSearchWithReturn, true ); | 54 | addItemBool("SearchWithReturn",&mSearchWithReturn, true ); |
55 | addItemFont("DetailsFont",&mDetailsFont); | ||
54 | 56 | ||
55 | 57 | ||
56 | #endif //KAB_EMBEDDED | 58 | #endif //KAB_EMBEDDED |
57 | 59 | ||
58 | KPrefs::setCurrentGroup( "MainWindow" ); | 60 | KPrefs::setCurrentGroup( "MainWindow" ); |
59 | addItemBool( "JumpButtonBarVisible", &mJumpButtonBarVisible, false ); | 61 | addItemBool( "JumpButtonBarVisible", &mJumpButtonBarVisible, false ); |
60 | addItemBool( "DetailsPageVisible", &mDetailsPageVisible, true ); | 62 | addItemBool( "DetailsPageVisible", &mDetailsPageVisible, true ); |
61 | addItemIntList( "ExtensionsSplitter", &mExtensionsSplitter ); | 63 | addItemIntList( "ExtensionsSplitter", &mExtensionsSplitter ); |
62 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); | 64 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); |
63 | addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); | 65 | addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); |
64 | 66 | ||
65 | 67 | ||
66 | KPrefs::setCurrentGroup( "Extensions_General" ); | 68 | KPrefs::setCurrentGroup( "Extensions_General" ); |
67 | QStringList defaultExtensions; | 69 | QStringList defaultExtensions; |
68 | defaultExtensions << "merge"; | 70 | defaultExtensions << "merge"; |
69 | defaultExtensions << "distribution_list_editor"; | 71 | defaultExtensions << "distribution_list_editor"; |