summaryrefslogtreecommitdiffabout
path: root/microkde
authorzautrix <zautrix>2005-04-09 20:54:29 (UTC)
committer zautrix <zautrix>2005-04-09 20:54:29 (UTC)
commitae58b2fe29fcd8b3690dcbb6d64976674f6294e0 (patch) (unidiff)
tree7a321b610fa1f7cab980370a44bf78fea88bf481 /microkde
parent9e43ebbe5867b2da957bb17c35bd357715424cba (diff)
downloadkdepimpi-ae58b2fe29fcd8b3690dcbb6d64976674f6294e0.zip
kdepimpi-ae58b2fe29fcd8b3690dcbb6d64976674f6294e0.tar.gz
kdepimpi-ae58b2fe29fcd8b3690dcbb6d64976674f6294e0.tar.bz2
cool
Diffstat (limited to 'microkde') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kglobalsettings.cpp10
-rw-r--r--microkde/kglobalsettings.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp
index b837b23..e54b0d9 100644
--- a/microkde/kglobalsettings.cpp
+++ b/microkde/kglobalsettings.cpp
@@ -32,16 +32,26 @@ QFont KGlobalSettings::generalMaxFont()
32 if (QApplication::desktop()->width() >= 480 && QApplication::desktop()->width() <= 640 ) 32 if (QApplication::desktop()->width() >= 480 && QApplication::desktop()->width() <= 640 )
33 size = 18; 33 size = 18;
34#endif 34#endif
35 QFont f = QApplication::font(); 35 QFont f = QApplication::font();
36 if ( f.pointSize() > size ) 36 if ( f.pointSize() > size )
37 f.setPointSize( size ); 37 f.setPointSize( size );
38 return f; 38 return f;
39} 39}
40
41QString KGlobalSettings::timeTrackerDir()
42{
43 static QString dir;
44 if ( dir.isEmpty() ) {
45 dir = locateLocal( "data", "timetracker" );
46 }
47 return dir;
48}
49
40QFont KGlobalSettings::toolBarFont() 50QFont KGlobalSettings::toolBarFont()
41{ 51{
42 return QApplication::font(); 52 return QApplication::font();
43} 53}
44 54
45QColor KGlobalSettings::toolBarHighlightColor() 55QColor KGlobalSettings::toolBarHighlightColor()
46{ 56{
47 return QColor( "black" ); 57 return QColor( "black" );
diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h
index 075bb1c..3eeda35 100644
--- a/microkde/kglobalsettings.h
+++ b/microkde/kglobalsettings.h
@@ -12,16 +12,17 @@ class KGlobalSettings
12{ 12{
13 public: 13 public:
14 static QFont generalFont(); 14 static QFont generalFont();
15 static QFont generalMaxFont(); 15 static QFont generalMaxFont();
16 static QFont toolBarFont(); 16 static QFont toolBarFont();
17 17
18 static QColor toolBarHighlightColor(); 18 static QColor toolBarHighlightColor();
19 static QRect desktopGeometry( QWidget * ); 19 static QRect desktopGeometry( QWidget * );
20 static QString timeTrackerDir();
20 21
21 /** 22 /**
22 * Returns whether KDE runs in single (default) or double click 23 * Returns whether KDE runs in single (default) or double click
23 * mode. 24 * mode.
24 * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html 25 * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html
25 * @return true if single click mode, or false if double click mode. 26 * @return true if single click mode, or false if double click mode.
26 **/ 27 **/
27 static bool singleClick(); 28 static bool singleClick();