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>
This commit is contained in:
Debao Zhang 2012-03-09 19:04:43 -08:00 committed by Qt by Nokia
parent 472cc7ac27
commit e9ed5853f4
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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();