author | zautrix <zautrix> | 2005-04-20 10:43:07 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-20 10:43:07 (UTC) |
commit | f23afbb9c09b4ee0f00af8f04ee4458181792cd0 (patch) (unidiff) | |
tree | 807bcaf329d257ec2a0c5c6e3a6afc7ab53a6078 /microkde/kglobalsettings.cpp | |
parent | 03f7f26ad34f50dd86f335c7c5a25a292d642793 (diff) | |
download | kdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.zip kdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.tar.gz kdepimpi-f23afbb9c09b4ee0f00af8f04ee4458181792cd0.tar.bz2 |
fixes
Diffstat (limited to 'microkde/kglobalsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kglobalsettings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index 5976aae..3f8a630 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp | |||
@@ -41,32 +41,41 @@ QFont KGlobalSettings::generalMaxFont() | |||
41 | #endif | 41 | #endif |
42 | QFont f = QApplication::font(); | 42 | QFont f = QApplication::font(); |
43 | if ( f.pointSize() > size ) | 43 | if ( f.pointSize() > size ) |
44 | f.setPointSize( size ); | 44 | f.setPointSize( size ); |
45 | return f; | 45 | return f; |
46 | } | 46 | } |
47 | 47 | ||
48 | QString KGlobalSettings::timeTrackerDir() | 48 | QString KGlobalSettings::timeTrackerDir() |
49 | { | 49 | { |
50 | static QString dir; | 50 | static QString dir; |
51 | if ( dir.isEmpty() ) { | 51 | if ( dir.isEmpty() ) { |
52 | dir = locateLocal( "data", "timetrackerdir/d.ttl" ); | 52 | dir = locateLocal( "data", "timetrackerdir/d.ttl" ); |
53 | dir = dir.left ( dir.length() - 5); | 53 | dir = dir.left ( dir.length() - 5); |
54 | } | 54 | } |
55 | return dir; | 55 | return dir; |
56 | } | 56 | } |
57 | QString KGlobalSettings::backupDataDir() | ||
58 | { | ||
59 | static QString dir; | ||
60 | if ( dir.isEmpty() ) { | ||
61 | dir = locateLocal( "data", "backupdir/d.ttl" ); | ||
62 | dir = dir.left ( dir.length() - 5); | ||
63 | } | ||
64 | return dir; | ||
65 | } | ||
57 | 66 | ||
58 | QFont KGlobalSettings::toolBarFont() | 67 | QFont KGlobalSettings::toolBarFont() |
59 | { | 68 | { |
60 | return QApplication::font(); | 69 | return QApplication::font(); |
61 | } | 70 | } |
62 | 71 | ||
63 | QColor KGlobalSettings::toolBarHighlightColor() | 72 | QColor KGlobalSettings::toolBarHighlightColor() |
64 | { | 73 | { |
65 | return QColor( "black" ); | 74 | return QColor( "black" ); |
66 | } | 75 | } |
67 | 76 | ||
68 | QColor KGlobalSettings::alternateBackgroundColor() | 77 | QColor KGlobalSettings::alternateBackgroundColor() |
69 | { | 78 | { |
70 | return mAlternate; | 79 | return mAlternate; |
71 | 80 | ||
72 | } | 81 | } |