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 <QMouseEvent>
|
||||||
#include <QPaintEngine>
|
#include <QPaintEngine>
|
||||||
#include <QPaintDevice>
|
#include <QPaintDevice>
|
||||||
#include <QSysInfo>
|
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "axisitem.h"
|
#include "axisitem.h"
|
||||||
@ -458,11 +457,8 @@ void GraphView::setGraphWidth(int width)
|
|||||||
|
|
||||||
void GraphView::useOpenGL(bool use)
|
void GraphView::useOpenGL(bool use)
|
||||||
{
|
{
|
||||||
if (use) {
|
if (use)
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
|
||||||
#endif // Q_OS_WIN32
|
|
||||||
setViewport(new OPENGL_WIDGET);
|
setViewport(new OPENGL_WIDGET);
|
||||||
} else
|
else
|
||||||
setViewport(new QWidget);
|
setViewport(new QWidget);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include <QWheelEvent>
|
#include <QWheelEvent>
|
||||||
#include <QSysInfo>
|
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
#include "rd.h"
|
#include "rd.h"
|
||||||
#include "wgs84.h"
|
#include "wgs84.h"
|
||||||
@ -721,11 +720,8 @@ void PathView::scrollContentsBy(int dx, int dy)
|
|||||||
|
|
||||||
void PathView::useOpenGL(bool use)
|
void PathView::useOpenGL(bool use)
|
||||||
{
|
{
|
||||||
if (use) {
|
if (use)
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
|
|
||||||
#endif // Q_OS_WIN32
|
|
||||||
setViewport(new OPENGL_WIDGET);
|
setViewport(new OPENGL_WIDGET);
|
||||||
} else
|
else
|
||||||
setViewport(new QWidget);
|
setViewport(new QWidget);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user