diff options
author | dac <qt-info@nokia.com> | 2010-10-28 10:30:22 +1000 |
---|---|---|
committer | dac <qt-info@nokia.com> | 2010-10-28 10:30:22 +1000 |
commit | 0e8475290926f1fe91c2a305c10cde0aa90d0929 (patch) | |
tree | 9d74c459e0e1aea39064eeba42fdca8e88aaf619 | |
parent | 14c81d973499c0c475b6a5f57d48b768567883b0 (diff) |
Another fix for 12 hour time handling
-rw-r--r-- | plugins/qtuitest_widgets/qtwidgets/testdatetimeedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/qtuitest_widgets/qtwidgets/testdatetimeedit.cpp b/plugins/qtuitest_widgets/qtwidgets/testdatetimeedit.cpp index f456424..4ce47dc 100644 --- a/plugins/qtuitest_widgets/qtwidgets/testdatetimeedit.cpp +++ b/plugins/qtuitest_widgets/qtwidgets/testdatetimeedit.cpp @@ -207,7 +207,7 @@ QPoint TestDateTimeEdit::nextClick( const QStringList& cap, moveUpDown = -1; else moveUpDown = 1; - } else if (section == QDateTimeEdit::HourSection && ampm && dest == 12) { + } else if (section == QDateTimeEdit::HourSection && ampm && (dest == 12 || src == 12)) { moveUpDown = (src - dest); } else { moveUpDown = (dest - src); |