-rw-r--r-- | microkde/kglobalsettings.cpp | 16 | ||||
-rw-r--r-- | microkde/kglobalsettings.h | 1 | ||||
-rw-r--r-- | microkde/kutils/kcmultidialog.cpp | 2 |
3 files changed, 18 insertions, 1 deletions
diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index b6d2feb..b837b23 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp | |||
@@ -23,2 +23,18 @@ QFont KGlobalSettings::generalFont() | |||
23 | } | 23 | } |
24 | QFont KGlobalSettings::generalMaxFont() | ||
25 | { | ||
26 | int size = 12; | ||
27 | if (QApplication::desktop()->width() < 480 ) { | ||
28 | size = 10; | ||
29 | } | ||
30 | #ifndef DESKTOP_VERSION | ||
31 | else | ||
32 | if (QApplication::desktop()->width() >= 480 && QApplication::desktop()->width() <= 640 ) | ||
33 | size = 18; | ||
34 | #endif | ||
35 | QFont f = QApplication::font(); | ||
36 | if ( f.pointSize() > size ) | ||
37 | f.setPointSize( size ); | ||
38 | return f; | ||
39 | } | ||
24 | QFont KGlobalSettings::toolBarFont() | 40 | QFont KGlobalSettings::toolBarFont() |
diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h index 7df8012..075bb1c 100644 --- a/microkde/kglobalsettings.h +++ b/microkde/kglobalsettings.h | |||
@@ -14,2 +14,3 @@ class KGlobalSettings | |||
14 | static QFont generalFont(); | 14 | static QFont generalFont(); |
15 | static QFont generalMaxFont(); | ||
15 | static QFont toolBarFont(); | 16 | static QFont toolBarFont(); |
diff --git a/microkde/kutils/kcmultidialog.cpp b/microkde/kutils/kcmultidialog.cpp index bb41b18..9c87682 100644 --- a/microkde/kutils/kcmultidialog.cpp +++ b/microkde/kutils/kcmultidialog.cpp | |||
@@ -44,3 +44,3 @@ KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const ch | |||
44 | { | 44 | { |
45 | setFont( KGlobalSettings::generalFont() ); | 45 | setFont( KGlobalSettings::generalMaxFont() ); |
46 | enableButton(Apply, false); | 46 | enableButton(Apply, false); |