mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-07 08:02:50 +02:00
Fixed QOpenGLWidget usage (wrong minimal QT version)
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QPaintEngine>
|
||||
#include <QPaintDevice>
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||
#include <QGLWidget>
|
||||
#else // QT 5
|
||||
#include <QOpenGLWidget>
|
||||
@ -466,7 +466,7 @@ void GraphView::useOpenGL(bool use)
|
||||
#ifdef Q_OS_WIN32
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||
#endif // Q_OS_WIN32
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
||||
setViewport(new QGLWidget);
|
||||
#else // QT 5
|
||||
setViewport(new QOpenGLWidget);
|
||||
|
Reference in New Issue
Block a user