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: 6e0b41b1d1eb6fa686c4bbe509aeb0a84474300e (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);

protected:
  bool eventFilter(QObject * obj, QEvent * event);

private:
  TRednerFn m_renderFn;
};