phonesettings/cpphonesettingsplugins/divertplugin/tsrc/ut_cpdivertplugin/qtestmains60ui.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 22 6bb1b21d2484
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    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