-rw-r--r-- | korganizer/ktimeedit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/ktimeedit.cpp b/korganizer/ktimeedit.cpp index 5222ac9..61a0931 100644 --- a/korganizer/ktimeedit.cpp +++ b/korganizer/ktimeedit.cpp @@ -50,7 +50,9 @@ KOTimeEdit::KOTimeEdit(QWidget *parent, QTime qt, const char *name) setInsertionPolicy(NoInsertion); mFlagKeyPressed = false; - - if ( QApplication::desktop()->width() < 650 ) + if ( QApplication::desktop()->height() <= 480 ) { setSizeLimit ( 6 ); + } else { + setSizeLimit ( 12 ); + } mTime = qt; |