1
0
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:
Martin Tůma 2017-02-12 17:38:20 +01:00
parent 61f3a1c932
commit f52fa9a9ef
2 changed files with 4 additions and 12 deletions

View File

@ -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);
}

View File

@ -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);
}