diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-16 19:10:29 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-16 19:10:29 (GMT) |
commit | fd3f9dd0f31efeea3aa0ec28b54c70d85712c7ba (patch) | |
tree | 7f991f94a9865723c47d2f75cdfd6743c7a3b243 /tests/auto | |
parent | c612fda5ae8fc0ebfb3ae455170882014c5951e1 (diff) | |
parent | da2a86555ba79fa67cf98c5985ff64cfdb6b57c7 (diff) | |
download | Qt-fd3f9dd0f31efeea3aa0ec28b54c70d85712c7ba.zip Qt-fd3f9dd0f31efeea3aa0ec28b54c70d85712c7ba.tar.gz Qt-fd3f9dd0f31efeea3aa0ec28b54c70d85712c7ba.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-s60-public into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-s60-public:
Enabled commit 2b60b542a for all platforms.
Fixed missing repaints on S60 3.1.
Build break fix for QS60Style.
QS60Style: Branch indicator in tree view is misplaced
Compilation error fix: missing comma in enum list in QS60Style
Scroll bar handle/groove ends are squeezed (in nHD resolution)
QS60Style draws drop area as a black rect
Remove scrollbar context menu from QS60Style
Change a name of a variable to be more descriptive
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qlineedit/tst_qlineedit.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp index 3b6400a..6dc2c82 100644 --- a/tests/auto/qlineedit/tst_qlineedit.cpp +++ b/tests/auto/qlineedit/tst_qlineedit.cpp @@ -3640,6 +3640,26 @@ void tst_QLineEdit::taskQTBUG_4679_selectToStartEndOfBlock() #endif // Q_OS_MAC } +#ifndef QT_NO_CONTEXTMENU +void tst_QLineEdit::taskQTBUG_7902_contextMenuCrash() +{ + // Would pass before the associated commit, but left as a guard. + QLineEdit *w = new QLineEdit; + w->show(); + QTest::qWaitForWindowShown(w); + + QTimer ti; + w->connect(&ti, SIGNAL(timeout()), w, SLOT(deleteLater())); + ti.start(200); + + QContextMenuEvent *cme = new QContextMenuEvent(QContextMenuEvent::Mouse, w->rect().center()); + qApp->postEvent(w, cme); + + QTest::qWait(300); + // No crash, it's allright. +} +#endif + void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut() { //ReadOnly QLineEdit should not intercept shortcut. @@ -3661,25 +3681,5 @@ void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut() QCOMPARE(spy.count(), 1); } -#ifndef QT_NO_CONTEXTMENU -void tst_QLineEdit::taskQTBUG_7902_contextMenuCrash() -{ - // Would pass before the associated commit, but left as a guard. - QLineEdit *w = new QLineEdit; - w->show(); - QTest::qWaitForWindowShown(w); - - QTimer ti; - w->connect(&ti, SIGNAL(timeout()), w, SLOT(deleteLater())); - ti.start(200); - - QContextMenuEvent *cme = new QContextMenuEvent(QContextMenuEvent::Mouse, w->rect().center()); - qApp->postEvent(w, cme); - - QTest::qWait(300); - // No crash, it's allright. -} -#endif - QTEST_MAIN(tst_QLineEdit) #include "tst_qlineedit.moc" |