summaryrefslogtreecommitdiffstats
path: root/tests/manual/qopenglwidget
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qopenglwidget')
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/fshader.glsl2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.cpp2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.h2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/main.cpp2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.cpp2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.h2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.cpp2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.h2
-rw-r--r--tests/manual/qopenglwidget/dockedopenglwidget/vshader.glsl2
-rw-r--r--tests/manual/qopenglwidget/openglwidget/CMakeLists.txt7
-rw-r--r--tests/manual/qopenglwidget/openglwidget/main.cpp15
-rw-r--r--tests/manual/qopenglwidget/openglwidget/openglwidget.cpp2
-rw-r--r--tests/manual/qopenglwidget/openglwidget/openglwidget.h2
13 files changed, 18 insertions, 26 deletions
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/fshader.glsl b/tests/manual/qopenglwidget/dockedopenglwidget/fshader.glsl
index 8e5a4de8fc..ddc6247574 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/fshader.glsl
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/fshader.glsl
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
uniform sampler2D texture;
varying vec2 v_texcoord;
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.cpp b/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.cpp
index bf5448d8e9..d7b9b8d05a 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.cpp
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "geometryengine.h"
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.h b/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.h
index ca24a21410..646d6570c8 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.h
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/geometryengine.h
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef GEOMETRYENGINE_H
#define GEOMETRYENGINE_H
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/main.cpp b/tests/manual/qopenglwidget/dockedopenglwidget/main.cpp
index d72d148f3e..e21a976ca7 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/main.cpp
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/main.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "mainwindow.h"
#include <QApplication>
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.cpp b/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.cpp
index 699e240b41..b9dc4c5fe2 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.cpp
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "mainwidget.h"
#include <QMouseEvent>
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.h b/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.h
index b6fb85480c..b21131d485 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.h
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/mainwidget.h
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.cpp b/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.cpp
index 97a9ee1545..9a530bc4f7 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.cpp
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "mainwindow.h"
#include "ui_mainwindow.h"
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.h b/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.h
index e7ae438c53..bea5cc41cc 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.h
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/mainwindow.h
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
diff --git a/tests/manual/qopenglwidget/dockedopenglwidget/vshader.glsl b/tests/manual/qopenglwidget/dockedopenglwidget/vshader.glsl
index 098eda946e..10f3646aa6 100644
--- a/tests/manual/qopenglwidget/dockedopenglwidget/vshader.glsl
+++ b/tests/manual/qopenglwidget/dockedopenglwidget/vshader.glsl
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
uniform mat4 mvp_matrix;
attribute vec4 a_position;
diff --git a/tests/manual/qopenglwidget/openglwidget/CMakeLists.txt b/tests/manual/qopenglwidget/openglwidget/CMakeLists.txt
index 0b54cd335f..967feda558 100644
--- a/tests/manual/qopenglwidget/openglwidget/CMakeLists.txt
+++ b/tests/manual/qopenglwidget/openglwidget/CMakeLists.txt
@@ -1,8 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-# Generated from openglwidget.pro.
-
#####################################################################
## openglwidget Binary:
#####################################################################
@@ -12,6 +10,8 @@ qt_internal_add_manual_test(openglwidget
SOURCES
main.cpp
openglwidget.cpp openglwidget.h
+ NO_PCH_SOURCES
+ main.cpp # undef QT_NO_FOREACH
LIBRARIES
Qt::CorePrivate
Qt::Gui
@@ -21,6 +21,3 @@ qt_internal_add_manual_test(openglwidget
Qt::Widgets
Qt::WidgetsPrivate
)
-
-#### Keys ignored in scope 1:.:.:openglwidget.pro:<TRUE>:
-# TEMPLATE = "app"
diff --git a/tests/manual/qopenglwidget/openglwidget/main.cpp b/tests/manual/qopenglwidget/openglwidget/main.cpp
index 7ea5a4e7d7..3a0e019b06 100644
--- a/tests/manual/qopenglwidget/openglwidget/main.cpp
+++ b/tests/manual/qopenglwidget/openglwidget/main.cpp
@@ -1,5 +1,7 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#undef QT_NO_FOREACH // this file contains unported legacy Q_FOREACH uses
#include "openglwidget.h"
#include <QApplication>
@@ -31,7 +33,6 @@ public:
private slots:
void turnNative();
void hideShowAllGL();
- void dumpCompositingStatus();
signals:
void aboutToShowGLWidgets();
@@ -83,12 +84,6 @@ void Tools::dumpWidget(QWidget *w, int indent)
}
}
-void Tools::dumpCompositingStatus()
-{
- QWindow *w = m_root->window()->windowHandle();
- qDebug() << "Compositing status for" << w << m_root->window() << "is" << QWindowPrivate::get(w)->compositing;
-}
-
class TabWidgetResetter : public QObject
{
Q_OBJECT
@@ -193,10 +188,6 @@ int main(int argc, char *argv[])
toolsMenu->addAction("&Turn widgets (or some parent) into native", &t, SLOT(turnNative()));
toolsMenu->addAction("&Hide/show all OpenGL widgets", &t, SLOT(hideShowAllGL()));
- QTimer compStatusDumpTimer;
- QObject::connect(&compStatusDumpTimer, SIGNAL(timeout()), &t, SLOT(dumpCompositingStatus()));
- compStatusDumpTimer.start(5000);
-
wnd.show();
if (glw->isValid())
diff --git a/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp b/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp
index 7d165e4de0..7e39945639 100644
--- a/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp
+++ b/tests/manual/qopenglwidget/openglwidget/openglwidget.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#define GL_GLEXT_PROTOTYPES
diff --git a/tests/manual/qopenglwidget/openglwidget/openglwidget.h b/tests/manual/qopenglwidget/openglwidget/openglwidget.h
index 83b3b4c0e5..8366d17a11 100644
--- a/tests/manual/qopenglwidget/openglwidget/openglwidget.h
+++ b/tests/manual/qopenglwidget/openglwidget/openglwidget.h
@@ -1,5 +1,5 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef OPENGLWIDGET_H
#define OPENGLWIDGET_H