diff options
author | Debao Zhang <dbzhang800@gmail.com> | 2012-03-09 19:04:43 -0800 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-11 00:08:33 +0100 |
commit | e9ed5853f4c5600691d2f369e26a1a7881f9750f (patch) | |
tree | 847e7dc4cc5946272d715171329558f6dfed37b2 /tests/auto/sql/kernel/qsql | |
parent | 472cc7ac27ea552a254b9a56663a8e94082b137a (diff) | |
download | qtbase-e9ed5853f4c5600691d2f369e26a1a7881f9750f.tar.gz |
Make tst_qsql.cpp independent of QtWidgets
Change-Id: I032902bea6fe2c7d9eb0491886fded7602ae2bcc
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'tests/auto/sql/kernel/qsql')
-rw-r--r-- | tests/auto/sql/kernel/qsql/qsql.pro | 2 | ||||
-rw-r--r-- | tests/auto/sql/kernel/qsql/tst_qsql.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/sql/kernel/qsql/qsql.pro b/tests/auto/sql/kernel/qsql/qsql.pro index ac21bb392c..df6e553d8a 100644 --- a/tests/auto/sql/kernel/qsql/qsql.pro +++ b/tests/auto/sql/kernel/qsql/qsql.pro @@ -2,7 +2,7 @@ CONFIG += testcase TARGET = tst_qsql SOURCES += tst_qsql.cpp -QT += sql sql-private gui widgets testlib +QT += sql sql-private gui testlib wince*: { DEPLOYMENT_PLUGIN += qsqlite diff --git a/tests/auto/sql/kernel/qsql/tst_qsql.cpp b/tests/auto/sql/kernel/qsql/tst_qsql.cpp index b02093adae..2656f4802f 100644 --- a/tests/auto/sql/kernel/qsql/tst_qsql.cpp +++ b/tests/auto/sql/kernel/qsql/tst_qsql.cpp @@ -152,7 +152,7 @@ void tst_QSql::basicDriverTest() } // make sure that the static stuff will be deleted -// when using multiple QApplication objects +// when using multiple QGuiApplication objects void tst_QSql::open() { int i; @@ -160,7 +160,7 @@ void tst_QSql::open() const char *argv[] = {"test"}; int count = -1; for ( i = 0; i < 10; ++i ) { - QApplication app(argc, const_cast<char **>(argv), false); + QGuiApplication app(argc, const_cast<char **>(argv), false); tst_Databases dbs; dbs.open(); |