From 7d68b34a1f261b2b23400fddcf46d6521eae32d1 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Fri, 14 Aug 2009 09:47:41 +0300 Subject: Fixed and re-enabled anguagechange autotest for Symbian. Started to use QApplication::closeAllWindows instead of unexported QThreadData::current() and friends. --- tests/auto/_Categories/QtGui.txt | 2 +- tests/auto/languagechange/tst_languagechange.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/auto/_Categories/QtGui.txt b/tests/auto/_Categories/QtGui.txt index a50dd0c..d8af499 100644 --- a/tests/auto/_Categories/QtGui.txt +++ b/tests/auto/_Categories/QtGui.txt @@ -1,6 +1,6 @@ exceptionsafety_objects #gestures This test is incomplete and also missing from auto.pro -> disabled for now -#languagechange Uses unexported method QThreadData::current() and also missing from auto.pro -> disabled for now +languagechange math3d modeltest qabstractbutton diff --git a/tests/auto/languagechange/tst_languagechange.cpp b/tests/auto/languagechange/tst_languagechange.cpp index 7cca3bf..7c98809 100644 --- a/tests/auto/languagechange/tst_languagechange.cpp +++ b/tests/auto/languagechange/tst_languagechange.cpp @@ -122,10 +122,7 @@ public slots: void install() { QCoreApplication::installTranslator(this); QTest::qWait(2500); - //### is there any better way to close a Qt dialog? - QThreadData *data = QThreadData::current(); - if (!data->eventLoops.isEmpty()) - data->eventLoops.top()->quit(); + QApplication::closeAllWindows(); } public: mutable QSet m_translations; -- cgit v0.12