-rw-r--r-- | libkdepim/kdatepicker.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libkdepim/kdatepicker.cpp b/libkdepim/kdatepicker.cpp index 2be9c9e..d6e9b51 100644 --- a/libkdepim/kdatepicker.cpp +++ b/libkdepim/kdatepicker.cpp | |||
@@ -54,7 +54,10 @@ KDatePicker::KDatePicker(QWidget *parent, QDate dt, const char *name) | |||
54 | { | 54 | { |
55 | setFont ( KGlobalSettings::generalFont() ); | 55 | setFont ( KGlobalSettings::generalFont() ); |
56 | table = new KDateTable(this); | 56 | table = new KDateTable(this); |
57 | setFontSize(font().pointSize()+2); | 57 | int add = 2; |
58 | if ( QApplication::desktop()->width() >= 480 && QApplication::desktop()->width() <= 640 ) | ||
59 | add += 4; | ||
60 | setFontSize(font().pointSize()+add); | ||
58 | //line->setValidator(val); | 61 | //line->setValidator(val); |
59 | lineDate = new KDateEdit( this, "dateediipicker", true ); | 62 | lineDate = new KDateEdit( this, "dateediipicker", true ); |
60 | yearForward->setPixmap(SmallIcon("2rightarrowB")); | 63 | yearForward->setPixmap(SmallIcon("2rightarrowB")); |
@@ -283,7 +286,7 @@ KDatePicker::selectMonthClicked() | |||
283 | { | 286 | { |
284 | int month; | 287 | int month; |
285 | KPopupFrame* popup = new KPopupFrame(this); | 288 | KPopupFrame* popup = new KPopupFrame(this); |
286 | KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(fontsize, popup); | 289 | KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(popup); |
287 | // ----- | 290 | // ----- |
288 | picker->resize(picker->sizeHint()); | 291 | picker->resize(picker->sizeHint()); |
289 | popup->setMainWidget(picker); | 292 | popup->setMainWidget(picker); |