Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qt_tstfrm/test_main_loop.cpp')
-rw-r--r--qt_tstfrm/test_main_loop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt_tstfrm/test_main_loop.cpp b/qt_tstfrm/test_main_loop.cpp
index 9108b2ceb0..1e71a14041 100644
--- a/qt_tstfrm/test_main_loop.cpp
+++ b/qt_tstfrm/test_main_loop.cpp
@@ -13,7 +13,7 @@ TestMainLoop::TestMainLoop(TestMainLoop::TRednerFn const & fn)
{
}
-void TestMainLoop::exec(char const * testName)
+void TestMainLoop::exec(char const * testName, bool autoExit)
{
char * buf = (char *)malloc(strlen(testName) + 1);
MY_SCOPE_GUARD(argvFreeFun, [&buf](){ free(buf); });
@@ -21,7 +21,8 @@ void TestMainLoop::exec(char const * testName)
int argc = 1;
QApplication app(argc, &buf);
- QTimer::singleShot(3000, &app, SLOT(quit()));
+ if (autoExit)
+ QTimer::singleShot(3000, &app, SLOT(quit()));
QWidget w;
w.setWindowTitle(testName);