Files
MapLibreParticleLab/platform/qt/test/qmaplibregl.test.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

31 lines
554 B
C++

#include <QMapLibreGL/Map>
#include <QGLWidget>
#include <QGLFramebufferObject>
#include <gtest/gtest.h>
class QMapLibreGLTest : public QObject, public ::testing::Test {
Q_OBJECT
public:
QMapLibreGLTest();
void runUntil(QMapLibreGL::MapChange);
private:
QGLWidget widget;
const QSize size;
QGLFramebufferObject fbo;
protected:
Settings settings;
Map map;
std::function<void(QMapLibreGL::MapChange)> changeCallback;
private slots:
void onMapChanged(QMapLibreGL::MapChange);
void onNeedsRendering();
};