summaryrefslogtreecommitdiff
path: root/platform/qt/app/mapwindow.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/app/mapwindow.hpp')
-rw-r--r--platform/qt/app/mapwindow.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/platform/qt/app/mapwindow.hpp b/platform/qt/app/mapwindow.hpp
index 6c05f03562..acbfa5125f 100644
--- a/platform/qt/app/mapwindow.hpp
+++ b/platform/qt/app/mapwindow.hpp
@@ -5,25 +5,10 @@
#include <QtGlobal>
-// XXX http://stackoverflow.com/questions/24899558/how-to-check-qt-version-to-include-different-header#comment59591604_29887388
-#if QT_VERSION >= 0x050400
#include <QOpenGLWidget>
-#else
-#include <QGLWidget>
-#endif // QT_VERSION
-
-#include <QPropertyAnimation>
#include <QScopedPointer>
-class QKeyEvent;
-class QMouseEvent;
-class QWheelEvent;
-
-#if QT_VERSION >= 0x050400
class MapWindow : public QOpenGLWidget
-#else
-class MapWindow : public QGLWidget
-#endif // QT_VERSION
{
Q_OBJECT
@@ -31,42 +16,16 @@ public:
MapWindow(const QMapboxGLSettings &);
~MapWindow();
- void selfTest();
-
-protected slots:
- void animationValueChanged();
- void animationFinished();
-
private:
void changeStyle();
qreal pixelRatio();
- // QWidget implementation.
- void keyPressEvent(QKeyEvent *ev) final;
- void mousePressEvent(QMouseEvent *ev) final;
- void mouseMoveEvent(QMouseEvent *ev) final;
- void wheelEvent(QWheelEvent *ev) final;
-
// Q{,Open}GLWidget implementation.
void initializeGL() final;
void paintGL() final;
- QPointF m_lastPos;
-
QMapboxGLSettings m_settings;
QScopedPointer<QMapboxGL> m_map;
-
- QPropertyAnimation *m_bearingAnimation;
- QPropertyAnimation *m_zoomAnimation;
-
- unsigned m_animationTicks = 0;
- unsigned m_frameDraws = 0;
-
- QVariant m_symbolAnnotationId;
- QVariant m_lineAnnotationId;
- QVariant m_fillAnnotationId;
-
- bool m_sourceAdded = false;
};
#endif