author | zautrix <zautrix> | 2005-02-08 16:24:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-08 16:24:18 (UTC) |
commit | 78c70cfbbe79243d8b0ec40f8f6438c99046e12b (patch) (unidiff) | |
tree | 382bc11ad3b56f72b8f84414e1da5e5ea871204b /microkde/kglobalsettings.cpp | |
parent | 584ed7893497b2adad5ba6c3e914d90b76973b92 (diff) | |
download | kdepimpi-78c70cfbbe79243d8b0ec40f8f6438c99046e12b.zip kdepimpi-78c70cfbbe79243d8b0ec40f8f6438c99046e12b.tar.gz kdepimpi-78c70cfbbe79243d8b0ec40f8f6438c99046e12b.tar.bz2 |
fix
Diffstat (limited to 'microkde/kglobalsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kglobalsettings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index 30e793f..fbbf814 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp | |||
@@ -1,43 +1,44 @@ | |||
1 | #include "kglobalsettings.h" | 1 | #include "kglobalsettings.h" |
2 | #include "kconfig.h" | 2 | #include "kconfig.h" |
3 | #include "kglobal.h" | 3 | #include "kglobal.h" |
4 | #include "kconfigbase.h" | 4 | #include "kconfigbase.h" |
5 | 5 | ||
6 | #include <qapplication.h> | 6 | #include <qapplication.h> |
7 | 7 | ||
8 | QFont KGlobalSettings::generalFont() | 8 | QFont KGlobalSettings::generalFont() |
9 | { | 9 | { |
10 | int size = 12; | 10 | int size = 12; |
11 | if (QApplication::desktop()->width() < 480 ) | 11 | if (QApplication::desktop()->width() < 480 ) |
12 | size = 10; | 12 | size = 10; |
13 | QFont f = QApplication::font(); | 13 | QFont f = QApplication::font(); |
14 | //qDebug("pointsize %d ", f.pointSize()); | ||
14 | f.setPointSize( size ); | 15 | f.setPointSize( size ); |
15 | return f; | 16 | return f; |
16 | } | 17 | } |
17 | QFont KGlobalSettings::toolBarFont() | 18 | QFont KGlobalSettings::toolBarFont() |
18 | { | 19 | { |
19 | return QApplication::font(); | 20 | return QApplication::font(); |
20 | } | 21 | } |
21 | 22 | ||
22 | QColor KGlobalSettings::toolBarHighlightColor() | 23 | QColor KGlobalSettings::toolBarHighlightColor() |
23 | { | 24 | { |
24 | return QColor( "black" ); | 25 | return QColor( "black" ); |
25 | } | 26 | } |
26 | 27 | ||
27 | QRect KGlobalSettings::desktopGeometry( QWidget * ) | 28 | QRect KGlobalSettings::desktopGeometry( QWidget * ) |
28 | { | 29 | { |
29 | return QApplication::desktop()->rect(); | 30 | return QApplication::desktop()->rect(); |
30 | } | 31 | } |
31 | 32 | ||
32 | /** | 33 | /** |
33 | * Returns whether KDE runs in single (default) or double click | 34 | * Returns whether KDE runs in single (default) or double click |
34 | * mode. | 35 | * mode. |
35 | * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html | 36 | * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html |
36 | * @return true if single click mode, or false if double click mode. | 37 | * @return true if single click mode, or false if double click mode. |
37 | **/ | 38 | **/ |
38 | bool KGlobalSettings::singleClick() | 39 | bool KGlobalSettings::singleClick() |
39 | { | 40 | { |
40 | KConfig *c = KGlobal::config(); | 41 | KConfig *c = KGlobal::config(); |
41 | KConfigGroupSaver cgs( c, "KDE" ); | 42 | KConfigGroupSaver cgs( c, "KDE" ); |
42 | return c->readBoolEntry("SingleClick", KDE_DEFAULT_SINGLECLICK); | 43 | return c->readBoolEntry("SingleClick", KDE_DEFAULT_SINGLECLICK); |
43 | } | 44 | } |