Format code using clang-format

This commit is contained in:
Luis Ángel San Martín
2019-05-30 19:46:37 +02:00
parent e0eb94e3ae
commit e3ec56aa43
356 changed files with 19824 additions and 21874 deletions

View File

@ -3,13 +3,12 @@
#include "QsLog.h"
OpenGLChecker::OpenGLChecker()
:compatibleOpenGLVersion(true)
: compatibleOpenGLVersion(true)
{
QOpenGLContext * openGLContext = new QOpenGLContext();
QOpenGLContext *openGLContext = new QOpenGLContext();
openGLContext->create();
if(!openGLContext->isValid())
{
if (!openGLContext->isValid()) {
compatibleOpenGLVersion = false;
description = "unable to create QOpenGLContext";
}
@ -33,7 +32,8 @@ OpenGLChecker::OpenGLChecker()
type = "OpenVG";
break;
default: case QSurfaceFormat::DefaultRenderableType:
default:
case QSurfaceFormat::DefaultRenderableType:
type = "unknown";
break;
}
@ -42,7 +42,7 @@ OpenGLChecker::OpenGLChecker()
description = QString("%1.%2 %3").arg(majorVersion).arg(minorVersion).arg(type);
if(format.renderableType() != QSurfaceFormat::OpenGL) //Desktop OpenGL
if (format.renderableType() != QSurfaceFormat::OpenGL) //Desktop OpenGL
compatibleOpenGLVersion = false;
#ifdef Q_OS_WIN //TODO check Qt version, and set this values depending on the use of QOpenGLWidget or QGLWidget
@ -53,9 +53,9 @@ OpenGLChecker::OpenGLChecker()
static const int minorTargetVersion = 0;
#endif
if(majorVersion < majorTargetVersion)
if (majorVersion < majorTargetVersion)
compatibleOpenGLVersion = false;
if(majorVersion == majorTargetVersion && minorVersion < minorTargetVersion)
if (majorVersion == majorTargetVersion && minorVersion < minorTargetVersion)
compatibleOpenGLVersion = false;
}