diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-03 10:23:41 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-12-03 10:23:41 (GMT) |
commit | f57eaeb3c46a375113e5d5ebaf0c2cb289795606 (patch) | |
tree | 70dc33f63d7b1ea3adb9eeecf67b8d05fdd66270 /tests/auto/qspinbox/tst_qspinbox.cpp | |
parent | 4a58e7f64e5922e7815a98244c4b8dda1689ff26 (diff) | |
parent | 831e286f811c0e0238f3dd061ae41782f8637a16 (diff) | |
download | Qt-f57eaeb3c46a375113e5d5ebaf0c2cb289795606.zip Qt-f57eaeb3c46a375113e5d5ebaf0c2cb289795606.tar.gz Qt-f57eaeb3c46a375113e5d5ebaf0c2cb289795606.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-staging1
Conflicts:
src/gui/kernel/qcocoapanel_mac.mm
src/gui/kernel/qcocoawindow_mac.mm
Diffstat (limited to 'tests/auto/qspinbox/tst_qspinbox.cpp')
-rw-r--r-- | tests/auto/qspinbox/tst_qspinbox.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qspinbox/tst_qspinbox.cpp b/tests/auto/qspinbox/tst_qspinbox.cpp index 655de15..cd65135 100644 --- a/tests/auto/qspinbox/tst_qspinbox.cpp +++ b/tests/auto/qspinbox/tst_qspinbox.cpp @@ -758,7 +758,7 @@ void tst_QSpinBox::editingFinished() box->activateWindow(); box->setFocus(); - QTRY_COMPARE(qApp->focusWidget(), box); + QTRY_COMPARE(qApp->focusWidget(), (QWidget *)box); QSignalSpy editingFinishedSpy1(box, SIGNAL(editingFinished())); QSignalSpy editingFinishedSpy2(box2, SIGNAL(editingFinished())); @@ -1018,13 +1018,17 @@ void tst_QSpinBox::taskQTBUG_5008_textFromValueAndValidate() setValue(1000000); } + QLineEdit *lineEdit() const + { + return QSpinBox::lineEdit(); + } + //we use the French delimiters here QString textFromValue (int value) const { return locale().toString(value); } - using QSpinBox::lineEdit; } spinbox; spinbox.show(); spinbox.activateWindow(); |