diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-11 05:23:53 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-11 05:23:53 (GMT) |
commit | 892d4b5e6e9495e29c4df40383e883fc19aa0baa (patch) | |
tree | 78834eb66956257fe5ff2271917d81912b2adaaf /tests/auto/qlineedit/tst_qlineedit.cpp | |
parent | dbfe5f81e300de3a43311197826f23ff031b4b23 (diff) | |
parent | 8b20c0ec6d676b3b297b8fa0ee436ad2e3d9a720 (diff) | |
download | Qt-892d4b5e6e9495e29c4df40383e883fc19aa0baa.zip Qt-892d4b5e6e9495e29c4df40383e883fc19aa0baa.tar.gz Qt-892d4b5e6e9495e29c4df40383e883fc19aa0baa.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Added geometry shaders to changes-4.7.0 file + a small doc update about it
Crash when deleting the parent of a context menu while it is being displayed
Workaround for a certain functionally challenged compiler
Fix failing QDoubleValidator tests
Use libpng API as recommended. Preparation for upgrade to libpng 1.4.0.
QMainWindow: update the separator size when the style change
Another round of Geometry shader review.
Fix Geometry shaders based on review
Geometry Shader support in QGLShaderProgram
Diffstat (limited to 'tests/auto/qlineedit/tst_qlineedit.cpp')
-rw-r--r-- | tests/auto/qlineedit/tst_qlineedit.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp index 7283916..fcca58a 100644 --- a/tests/auto/qlineedit/tst_qlineedit.cpp +++ b/tests/auto/qlineedit/tst_qlineedit.cpp @@ -271,6 +271,9 @@ private slots: void taskQTBUG_4401_enterKeyClearsPassword(); void taskQTBUG_4679_moveToStartEndOfBlock(); void taskQTBUG_4679_selectToStartEndOfBlock(); +#ifndef QT_NO_CONTEXTMENU + void taskQTBUG_7902_contextMenuCrash(); +#endif protected slots: #ifdef QT3_SUPPORT @@ -3638,5 +3641,25 @@ 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 + QTEST_MAIN(tst_QLineEdit) #include "tst_qlineedit.moc" |