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.hpp')
-rw-r--r--qt_tstfrm/test_main_loop.hpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/qt_tstfrm/test_main_loop.hpp b/qt_tstfrm/test_main_loop.hpp
index ea879afee6..4faa8ec708 100644
--- a/qt_tstfrm/test_main_loop.hpp
+++ b/qt_tstfrm/test_main_loop.hpp
@@ -1,25 +1,7 @@
#pragma once
-#include <QtCore/QObject>
-
#include "../std/function.hpp"
class QPaintDevice;
-class TestMainLoop : public QObject
-{
- Q_OBJECT
-
-public:
-
- typedef function<void (QPaintDevice *)> TRednerFn;
- TestMainLoop(TRednerFn const & fn);
- virtual ~TestMainLoop() {}
-
- void exec(char const * testName, bool autoExit = true);
-
-protected:
- bool eventFilter(QObject * obj, QEvent * event);
-
-private:
- TRednerFn m_renderFn;
-};
+typedef function<void (QPaintDevice *)> TRednerFn;
+void RunTestLoop(char const * testName, TRednerFn const & fn, bool autoExit = false);