Files
MapLibreParticleLab/platform/qt/src/mbgl/timer_impl.hpp
Tadej Novak 5b3d936521 [qt] Rename QMapboxGL to QMapLibreGL (#338)
* Rename QMapboxGL to QMapLibreGL

* Add missing QDebug includes

* Fix Qt CMake config

* Fix geojson warning

* Remove redundant OpenGL dependency

* Put everything under QMapLibreGL namespace

* Reorganise headers

Co-authored-by: Rinigus <rinigus.git@gmail.com>
2022-07-03 20:30:46 +02:00

32 lines
454 B
C++

#pragma once
#include <mbgl/util/timer.hpp>
#include <QObject>
#include <QTimer>
namespace mbgl {
namespace util {
class Timer::Impl : public QObject {
Q_OBJECT
public:
Impl();
void start(uint64_t timeout, uint64_t repeat, std::function<void ()> &&);
void stop();
public slots:
void timerFired();
private:
uint64_t repeat;
std::function<void()> callback;
QTimer timer;
};
} // namespace util
} // namespace mbgl