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

test_main_loop.hpp « qt_tstfrm - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ea879afee674cd4f5c7998a675d369ef4911de7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;
};