diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-12-10 13:01:45 +0100 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-12-11 11:53:27 +0100 |
commit | c3a66baff87e8d231aae06ccd1eb5d623587593d (patch) | |
tree | a8a086351b16b45f601bcd0c02a2c60581ee715e | |
parent | f08038fca79b0828da11fbf35f4165d6efa4de2f (diff) |
Move QOpenGLDebugLogger from QtGui to QtOpenGL
Task-number: QTBUG-74409
Change-Id: Ida7a89b214cd5e1a3b6fdfa651299a9c5a654f5b
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r-- | src/gui/opengl/opengl.pri | 2 | ||||
-rw-r--r-- | src/opengl/opengl.pro | 4 | ||||
-rw-r--r-- | src/opengl/qopengldebug.cpp (renamed from src/gui/opengl/qopengldebug.cpp) | 6 | ||||
-rw-r--r-- | src/opengl/qopengldebug.h (renamed from src/gui/opengl/qopengldebug.h) | 16 |
4 files changed, 15 insertions, 13 deletions
diff --git a/src/gui/opengl/opengl.pri b/src/gui/opengl/opengl.pri index 24758afdeb..9eab55f112 100644 --- a/src/gui/opengl/opengl.pri +++ b/src/gui/opengl/opengl.pri @@ -27,7 +27,6 @@ qtConfig(opengl) { opengl/qopenglversionfunctions.h \ opengl/qopenglversionfunctionsfactory_p.h \ opengl/qopenglvertexarrayobject.h \ - opengl/qopengldebug.h \ opengl/qopengltextureblitter.h \ opengl/qopengltexture.h \ opengl/qopengltexture_p.h \ @@ -53,7 +52,6 @@ qtConfig(opengl) { opengl/qopenglversionfunctions.cpp \ opengl/qopenglversionfunctionsfactory.cpp \ opengl/qopenglvertexarrayobject.cpp \ - opengl/qopengldebug.cpp \ opengl/qopengltextureblitter.cpp \ opengl/qopengltexture.cpp \ opengl/qopengltexturehelper.cpp \ diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro index 811eecaeba..b9d0c6213d 100644 --- a/src/opengl/opengl.pro +++ b/src/opengl/opengl.pro @@ -9,6 +9,10 @@ qtConfig(opengl): CONFIG += opengl qtConfig(opengles2): CONFIG += opengles2 HEADERS += \ + qopengldebug.h \ qtopenglglobal.h +SOURCES += \ + qopengldebug.cpp + load(qt_module) diff --git a/src/gui/opengl/qopengldebug.cpp b/src/opengl/qopengldebug.cpp index 310006feaf..a69f6069dc 100644 --- a/src/gui/opengl/qopengldebug.cpp +++ b/src/opengl/qopengldebug.cpp @@ -3,7 +3,7 @@ ** Copyright (C) 2013 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the QtGui module of the Qt Toolkit. +** This file is part of the QtOpenGL module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage @@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE /*! \class QOpenGLDebugMessage \brief The QOpenGLDebugMessage class wraps an OpenGL debug message. - \inmodule QtGui + \inmodule QtOpenGL \reentrant \since 5.1 \ingroup shared @@ -72,7 +72,7 @@ QT_BEGIN_NAMESPACE /*! \class QOpenGLDebugLogger \brief The QOpenGLDebugLogger enables logging of OpenGL debugging messages. - \inmodule QtGui + \inmodule QtOpenGL \since 5.1 \ingroup painting-3D diff --git a/src/gui/opengl/qopengldebug.h b/src/opengl/qopengldebug.h index 7363985d60..fef2782302 100644 --- a/src/gui/opengl/qopengldebug.h +++ b/src/opengl/qopengldebug.h @@ -3,7 +3,7 @@ ** Copyright (C) 2013 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the QtGui module of the Qt Toolkit. +** This file is part of the QtOpenGL module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage @@ -40,7 +40,7 @@ #ifndef QOPENGLDEBUG_H #define QOPENGLDEBUG_H -#include <QtGui/qtguiglobal.h> +#include <QtOpenGL/qtopenglglobal.h> #ifndef QT_NO_OPENGL @@ -63,7 +63,7 @@ class QOpenGLDebugLogger; class QOpenGLDebugLoggerPrivate; class QOpenGLDebugMessagePrivate; -class Q_GUI_EXPORT QOpenGLDebugMessage +class Q_OPENGL_EXPORT QOpenGLDebugMessage { public: enum Source { @@ -145,15 +145,15 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QOpenGLDebugMessage::Types) Q_DECLARE_OPERATORS_FOR_FLAGS(QOpenGLDebugMessage::Severities) #ifndef QT_NO_DEBUG_STREAM -Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QOpenGLDebugMessage &message); -Q_GUI_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Source source); -Q_GUI_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Type type); -Q_GUI_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Severity severity); +Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, const QOpenGLDebugMessage &message); +Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Source source); +Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Type type); +Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, QOpenGLDebugMessage::Severity severity); #endif class QOpenGLDebugLoggerPrivate; -class Q_GUI_EXPORT QOpenGLDebugLogger : public QObject +class Q_OPENGL_EXPORT QOpenGLDebugLogger : public QObject { Q_OBJECT Q_PROPERTY(LoggingMode loggingMode READ loggingMode) |