diff --git a/src/app.cpp b/src/app.cpp index b39d27df..fc66e1b1 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -6,9 +6,9 @@ #include #if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) #include -#else // QT 5 +#else // QT 5.4 #include -#endif // QT 5 +#endif // QT 5.4 #include "gui.h" #include "app.h" @@ -31,11 +31,11 @@ App::App(int &argc, char **argv) : QApplication(argc, argv), QGLFormat fmt; fmt.setSamples(4); QGLFormat::setDefaultFormat(fmt); -#else +#else // QT 5.4 QSurfaceFormat fmt; fmt.setSamples(4); QSurfaceFormat::setDefaultFormat(fmt); -#endif +#endif // QT 5.4 QPixmapCache::setCacheLimit(65536); diff --git a/src/graphview.cpp b/src/graphview.cpp index cdd71747..febb5eb0 100644 --- a/src/graphview.cpp +++ b/src/graphview.cpp @@ -5,9 +5,9 @@ #include #if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) #include -#else // QT 5 +#else // QT 5.4 #include -#endif // QT 5 +#endif // QT 5.4 #include #include "config.h" #include "axisitem.h" @@ -468,9 +468,9 @@ void GraphView::useOpenGL(bool use) #endif // Q_OS_WIN32 #if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) setViewport(new QGLWidget); -#else // QT 5 +#else // QT 5.4 setViewport(new QOpenGLWidget); -#endif // QT 5 +#endif // QT 5.4 } else setViewport(new QWidget); } diff --git a/src/pathview.cpp b/src/pathview.cpp index d9b99a8b..5928bbb8 100644 --- a/src/pathview.cpp +++ b/src/pathview.cpp @@ -718,9 +718,9 @@ void PathView::useOpenGL(bool use) #endif // Q_OS_WIN32 #if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) setViewport(new QGLWidget); -#else // QT 5 +#else // QT 5.4 setViewport(new QOpenGLWidget); -#endif // QT 5 +#endif // QT 5.4 } else setViewport(new QWidget); }