mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Removed obsolete stuff
This commit is contained in:
parent
61f3a1c932
commit
f52fa9a9ef
@ -3,7 +3,6 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QPaintEngine>
|
||||
#include <QPaintDevice>
|
||||
#include <QSysInfo>
|
||||
#include "opengl.h"
|
||||
#include "config.h"
|
||||
#include "axisitem.h"
|
||||
@ -458,11 +457,8 @@ void GraphView::setGraphWidth(int width)
|
||||
|
||||
void GraphView::useOpenGL(bool use)
|
||||
{
|
||||
if (use) {
|
||||
#ifdef Q_OS_WIN32
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||
#endif // Q_OS_WIN32
|
||||
if (use)
|
||||
setViewport(new OPENGL_WIDGET);
|
||||
} else
|
||||
else
|
||||
setViewport(new QWidget);
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <QGraphicsView>
|
||||
#include <QGraphicsScene>
|
||||
#include <QWheelEvent>
|
||||
#include <QSysInfo>
|
||||
#include "opengl.h"
|
||||
#include "rd.h"
|
||||
#include "wgs84.h"
|
||||
@ -721,11 +720,8 @@ void PathView::scrollContentsBy(int dx, int dy)
|
||||
|
||||
void PathView::useOpenGL(bool use)
|
||||
{
|
||||
if (use) {
|
||||
#ifdef Q_OS_WIN32
|
||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
||||
#endif // Q_OS_WIN32
|
||||
if (use)
|
||||
setViewport(new OPENGL_WIDGET);
|
||||
} else
|
||||
else
|
||||
setViewport(new QWidget);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user