summaryrefslogtreecommitdiffabout
path: root/libkdepim/kdatepicker.cpp
authorzautrix <zautrix>2004-09-17 11:42:59 (UTC)
committer zautrix <zautrix>2004-09-17 11:42:59 (UTC)
commitdd33ac512eb4b4b647fb3423f7cdb39ec322221b (patch) (side-by-side diff)
treeea35b070c856a7233df08419ef0d189a665820f6 /libkdepim/kdatepicker.cpp
parentd7a6a271b48f0c79e1f3beca03bbc9c3f2a54050 (diff)
downloadkdepimpi-dd33ac512eb4b4b647fb3423f7cdb39ec322221b.zip
kdepimpi-dd33ac512eb4b4b647fb3423f7cdb39ec322221b.tar.gz
kdepimpi-dd33ac512eb4b4b647fb3423f7cdb39ec322221b.tar.bz2
Fixed datepicker
Diffstat (limited to 'libkdepim/kdatepicker.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/kdatepicker.cpp5
1 files changed, 4 insertions, 1 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)
monthBackward->setPixmap(SmallIcon("1leftarrowB"));
-
setDate(dt); // set button texts
@@ -108,3 +107,7 @@ KDatePicker::resizeEvent(QResizeEvent*)
int yS = buttons[count]->sizeHint().height();
+ if ( QApplication::desktop()->width() < 320 )
+ sizes[count]=QSize ( xS+4, yS );
+ else
sizes[count]=QSize ( xS+10, yS );
+
buttonHeight=QMAX(buttonHeight, sizes[count].height());