From c07c8ac0ad5c0c0d3ac5b624d5f24d8cd7cdc85d Mon Sep 17 00:00:00 2001 From: Thomas Kowaliczek Date: Fri, 6 Jan 2017 18:51:40 +0100 Subject: [PATCH] Started to port to qt5 --- src/glwidget.cpp | 2 +- src/glwidget.h | 4 ++-- src/mainwindow.ui | 10 +++++----- src/stable.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/glwidget.cpp b/src/glwidget.cpp index 96bdf40..1eb4d50 100644 --- a/src/glwidget.cpp +++ b/src/glwidget.cpp @@ -34,7 +34,7 @@ const int timerInterval = 20; GLWidget::GLWidget(QWidget* parent) - : QGLWidget(parent), mCam_xpos(-0.5f), mCam_ypos(-0.5f), mCam_zpos(-2.0f), + : QOpenGLWidget(parent), mCam_xpos(-0.5f), mCam_ypos(-0.5f), mCam_zpos(-2.0f), showOccupation(false), atlasBlocks(NULL) { diff --git a/src/glwidget.h b/src/glwidget.h index 9ebe52c..4168676 100644 --- a/src/glwidget.h +++ b/src/glwidget.h @@ -21,13 +21,13 @@ #pragma once -#include +#include #include #include "atlas.h" class MainWindow; -class GLWidget : public QGLWidget +class GLWidget : public QOpenGLWidget { Q_OBJECT public: diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 8e793e9..9bc5952 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -33,7 +33,7 @@ QLayout::SetDefaultConstraint - + 0 @@ -74,7 +74,7 @@ - 2 + 0 @@ -184,7 +184,7 @@ 10 90 341 - 141 + 162 @@ -301,7 +301,7 @@ 80 530 171 - 43 + 48 @@ -421,7 +421,7 @@ - GLWidget + OpenGLWidget QWidget
glwidget.h
1 diff --git a/src/stable.h b/src/stable.h index 095bd94..f131136 100644 --- a/src/stable.h +++ b/src/stable.h @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include