From 41111b332c2a5f1b2ec152df309b9199f5e9c921 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 08 Feb 2005 14:12:31 +0000 Subject: fixes --- (limited to 'libkdepim') 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 #include #include +#include #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")); -- cgit v0.9.0.2