summaryrefslogtreecommitdiff
path: root/platform/qt
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-05 14:01:37 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-07-05 14:41:21 +0300
commit5921f692e085bde5d4e8000c33dac29c796acbf0 (patch)
tree030a3b374f4d1b68c4ff9de44439ad28faa4f365 /platform/qt
parent60eae41549cec18dfeed5175fe1d6c327060a8de (diff)
downloadqtlocation-mapboxgl-5921f692e085bde5d4e8000c33dac29c796acbf0.tar.gz
[qt] Pass size in QMapboxGLTest's QMapboxGL ctor
Diffstat (limited to 'platform/qt')
-rw-r--r--platform/qt/test/qmapboxgl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/qt/test/qmapboxgl.cpp b/platform/qt/test/qmapboxgl.cpp
index 453604076e..747f8796fa 100644
--- a/platform/qt/test/qmapboxgl.cpp
+++ b/platform/qt/test/qmapboxgl.cpp
@@ -15,7 +15,7 @@ class QMapboxGLTest : public QObject, public ::testing::Test {
Q_OBJECT
public:
- QMapboxGLTest() : fbo((assert(widget.context()->isValid()), widget.makeCurrent(), QSize(512, 512))), map(nullptr, settings) {
+ QMapboxGLTest() : size(512, 512), fbo((assert(widget.context()->isValid()), widget.makeCurrent(), size)), map(nullptr, settings, size) {
connect(&map, SIGNAL(mapChanged(QMapboxGL::MapChange)),
this, SLOT(onMapChanged(QMapboxGL::MapChange)));
connect(&map, SIGNAL(needsRendering()),
@@ -38,6 +38,7 @@ public:
private:
QGLWidget widget;
+ const QSize size;
QGLFramebufferObject fbo;
protected: