summaryrefslogtreecommitdiffabout
path: root/libkdepim
Side-by-side diff
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kdatepicker.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/libkdepim/kdatepicker.cpp b/libkdepim/kdatepicker.cpp
index d8bc9f5..2be9c9e 100644
--- a/libkdepim/kdatepicker.cpp
+++ b/libkdepim/kdatepicker.cpp
@@ -35,2 +35,3 @@
#include <knotifyclient.h>
+#include <kglobalsettings.h>
#include "kdatetbl.h"
@@ -53,10 +54,5 @@ KDatePicker::KDatePicker(QWidget *parent, QDate dt, const char *name)
{
- // -----
- int size = 12;
- if ( QApplication::desktop()->width() >= 480 )
- size = 18;
- fontsize = size;
- setFont ( QFont("helvetica",size) );
+ setFont ( KGlobalSettings::generalFont() );
table = new KDateTable(this);
- setFontSize(size);
+ setFontSize(font().pointSize()+2);
//line->setValidator(val);