summaryrefslogtreecommitdiffabout
path: root/libkdepim/kdatepicker.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/kdatepicker.cpp') (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
@@ -33,6 +33,7 @@
#include <qvalidator.h>
#include <kdebug.h>
#include <knotifyclient.h>
+#include <kglobalsettings.h>
#include "kdatetbl.h"
#include "kdateedit.h"
//#include "kdatepicker.moc"
@@ -51,14 +52,9 @@ KDatePicker::KDatePicker(QWidget *parent, QDate dt, const char *name)
//table(new KDateTable(this)),
//fontsize(1)
{
- // -----
- 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);
lineDate = new KDateEdit( this, "dateediipicker", true );
yearForward->setPixmap(SmallIcon("2rightarrowB"));