author | umopapisdn <umopapisdn> | 2003-04-13 23:14:23 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-04-13 23:14:23 (UTC) |
commit | ef69f1d1ca947a0b972e3f8d635883ae7ef0ae23 (patch) (side-by-side diff) | |
tree | 23de36544964e52be73c31cd467838d473c97293 /core/pim/datebook/dateentryimpl.cpp | |
parent | 377a172d8b497674d14d7e3580a008228f83d081 (diff) | |
download | opie-ef69f1d1ca947a0b972e3f8d635883ae7ef0ae23.zip opie-ef69f1d1ca947a0b972e3f8d635883ae7ef0ae23.tar.gz opie-ef69f1d1ca947a0b972e3f8d635883ae7ef0ae23.tar.bz2 |
Bugfix: (Bug #0000716) The timepicker now works in am/pm mode also, I also changed datebook to use the otimepicker class in libopie.
Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 33b9d9b..13d2ce2 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp @@ -37,13 +37,13 @@ #include <qmultilineedit.h> #include <qpopupmenu.h> #include <qscrollview.h> #include <qspinbox.h> #include <qtoolbutton.h> -#include "timepicker.h" +#include <opie/otimepicker.h> #include "onoteedit.h" #include <stdlib.h> #include <stdio.h> /* @@ -79,22 +79,22 @@ bool DateEntry::eventFilter(QObject *obj, QEvent *ev ) timePickerStart->setHour(endTime.hour()); timePickerStart->setMinute(endTime.minute()); TimePickerLabel->setText( tr("End Time") ); m_showStart = false; } } else if( ev->type() == QEvent::FocusOut ){ - if( obj == comboEnd ){ - QString s; - s.sprintf("%.2d:%.2d",endTime.hour(), endTime.minute()); - comboEnd->setText(s); - } - else if( obj == comboStart ){ - QString s; - s.sprintf("%.2d:%.2d",startTime.hour(), startTime.minute()); - comboStart->setText(s); - } +// if( obj == comboEnd ){ +// QString s; +// s.sprintf("%.2d:%.2d",endTime.hour(), endTime.minute()); +// comboEnd->setText(s); +// } +// else if( obj == comboStart ){ +// QString s; +// s.sprintf("%.2d:%.2d",startTime.hour(), startTime.minute()); +// comboStart->setText(s); +// } } return false; } static void addOrPick( QComboBox* combo, const QString& t ) |