phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/qtestmains60ui.h
equal
deleted
inserted
replaced
39 TestObject tc; \ |
39 TestObject tc; \ |
40 QResource::registerResource("../hbcore.rcc"); \ |
40 QResource::registerResource("../hbcore.rcc"); \ |
41 mainWindow = new HbMainWindow;\ |
41 mainWindow = new HbMainWindow;\ |
42 mainWindow->show(); \ |
42 mainWindow->show(); \ |
43 int ret = QTest::qExec(&tc, 3, new_argv); \ |
43 int ret = QTest::qExec(&tc, 3, new_argv); \ |
|
44 /* Core dump if HbIconLoader instance is not destroyed before the application instance. */ \ |
|
45 /* HbIconLoader uses QCoreApplication::aboutToQuit() signal to destroy itself. */ \ |
|
46 /* app.exec() where the signal is normally emitted is not called here. */ \ |
|
47 /* So, invoking the signal explicitly. */ \ |
|
48 QMetaObject::invokeMethod(app, "aboutToQuit", Qt::DirectConnection); \ |
44 delete mainWindow; \ |
49 delete mainWindow; \ |
45 delete app; \ |
50 delete app; \ |
46 return ret; \ |
51 return ret; \ |
47 } |
52 } |
48 |
53 |