-rw-r--r-- | libkdepim/kdatepicker.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libkdepim/kdatepicker.cpp b/libkdepim/kdatepicker.cpp index 3fe139c..d8bc9f5 100644 --- a/libkdepim/kdatepicker.cpp +++ b/libkdepim/kdatepicker.cpp | |||
@@ -67,3 +67,2 @@ KDatePicker::KDatePicker(QWidget *parent, QDate dt, const char *name) | |||
67 | monthBackward->setPixmap(SmallIcon("1leftarrowB")); | 67 | monthBackward->setPixmap(SmallIcon("1leftarrowB")); |
68 | |||
69 | setDate(dt); // set button texts | 68 | setDate(dt); // set button texts |
@@ -107,4 +106,8 @@ KDatePicker::resizeEvent(QResizeEvent*) | |||
107 | int xS = buttons[count]->sizeHint().width(); | 106 | int xS = buttons[count]->sizeHint().width(); |
108 | int yS = buttons[count]->sizeHint().height(); | 107 | int yS = buttons[count]->sizeHint().height(); |
109 | sizes[count]=QSize ( xS+10, yS ); | 108 | if ( QApplication::desktop()->width() < 320 ) |
109 | sizes[count]=QSize ( xS+4, yS ); | ||
110 | else | ||
111 | sizes[count]=QSize ( xS+10, yS ); | ||
112 | |||
110 | buttonHeight=QMAX(buttonHeight, sizes[count].height()); | 113 | buttonHeight=QMAX(buttonHeight, sizes[count].height()); |