-rw-r--r-- | libkdepim/kdateedit.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libkdepim/kdateedit.cpp b/libkdepim/kdateedit.cpp index 2c78ea3..946fc0d 100644 --- a/libkdepim/kdateedit.cpp +++ b/libkdepim/kdateedit.cpp @@ -84,3 +84,3 @@ KDateEdit::KDateEdit(QWidget *parent, const char *name, bool withoutDP ) connect(mDateButton,SIGNAL(clicked()),SLOT(toggleDatePicker())); - + mDateButton->setFocusPolicy( QWidget::NoFocus ); //mDateFrame->resize( 400, 300 ); @@ -119,3 +119,3 @@ KDateEdit::KDateEdit(QWidget *parent, const char *name, bool withoutDP ) mHandleInvalid = false; - QWidget::setTabOrder( mDateEdit, mDateButton ); + // QWidget::setTabOrder( mDateEdit, mDateButton ); } @@ -464,4 +464,5 @@ bool KDateEdit::eventFilter(QObject *, QEvent *e) // since we got focus - if ((e->type() == QEvent::FocusOut) && mTextChanged) + if ((e->type() == QEvent::FocusOut) ) { + if ( mTextChanged ) { lineEnterPressed(); @@ -469,2 +470,3 @@ bool KDateEdit::eventFilter(QObject *, QEvent *e) } + } // switch dateFormShort by double klick with mouse |