summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-09-25 06:49:54 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-09-25 06:49:54 (GMT)
commitfc4f4d283eb96e43d11c70a8f1ea206425321850 (patch)
treeeb86680da0b86c4c85b0492bb715edf91e764d5a /tests
parent9ff18885e24529d43b9a0be2da863d1f52741789 (diff)
downloadQt-fc4f4d283eb96e43d11c70a8f1ea206425321850.zip
Qt-fc4f4d283eb96e43d11c70a8f1ea206425321850.tar.gz
Qt-fc4f4d283eb96e43d11c70a8f1ea206425321850.tar.bz2
Fix qfiledialog autoest compilation for Symbian
Reviewed-by: TrustMe
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfiledialog/tst_qfiledialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp
index d6225cd..1aa5ee1 100644
--- a/tests/auto/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp
@@ -70,6 +70,12 @@
//TESTED_CLASS=
//TESTED_FILES=
+#if defined(Q_OS_SYMBIAN)
+# define STRINGIFY(x) #x
+# define TOSTRING(x) STRINGIFY(x)
+# define SRCDIR "C:/Private/" TOSTRING(SYMBIAN_SRCDIR_UID) "/"
+#endif
+
class QNonNativeFileDialog : public QFileDialog
{
Q_OBJECT
@@ -1042,7 +1048,7 @@ void tst_QFiledialog::focus()
QApplication::setActiveWindow(&fd);
QTest::qWaitForWindowShown(&fd);
QTRY_COMPARE(fd.isVisible(), true);
- QTRY_COMPARE(QApplication::activeWindow(), &fd);
+ QTRY_COMPARE(QApplication::activeWindow(), static_cast<QWidget*>(&fd));
qApp->processEvents();
// make sure the tests work with focus follows mouse