summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-05-22 14:19:39 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-08 16:15:14 +0000
commit6cdc2c5990a2cbe55c244f5d09c333f8b267536c (patch)
tree8b25c835bfddecc499705e16f1570a26f50fa98b /tests
parent9fe74461573c226721bc5a84014b165ba6ae5daf (diff)
Examples: Remove unnecessary Q_INIT_RESOURCE calls
Explicit calls to Q_INIT_RESOURCE are only needed for resources embedded in static libraries. See also https://doc.qt.io/qt-6/resources.html#explicit-loading-and-unloading-of-embedded-resources Change-Id: I06a24d1c04369eedc78ca60a6ca02ce33907d9e7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit eed17b3634a99b6f6f751830c6443094dd6b600b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/examples/opengl/qopenglwidget/main.cpp1
-rw-r--r--tests/manual/examples/widgets/application/main.cpp2
-rw-r--r--tests/manual/examples/widgets/dialogs/classwizard/main.cpp2
3 files changed, 0 insertions, 5 deletions
diff --git a/tests/manual/examples/opengl/qopenglwidget/main.cpp b/tests/manual/examples/opengl/qopenglwidget/main.cpp
index 04f1c57f08..1614649a5a 100644
--- a/tests/manual/examples/opengl/qopenglwidget/main.cpp
+++ b/tests/manual/examples/opengl/qopenglwidget/main.cpp
@@ -11,7 +11,6 @@
int main( int argc, char ** argv )
{
- Q_INIT_RESOURCE(texture);
QApplication a( argc, argv );
QCoreApplication::setApplicationName("Qt QOpenGLWidget Example");
diff --git a/tests/manual/examples/widgets/application/main.cpp b/tests/manual/examples/widgets/application/main.cpp
index 903150c1c4..722b8a71b8 100644
--- a/tests/manual/examples/widgets/application/main.cpp
+++ b/tests/manual/examples/widgets/application/main.cpp
@@ -9,8 +9,6 @@
int main(int argc, char *argv[])
{
- Q_INIT_RESOURCE(application);
-
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("QtProject");
QCoreApplication::setApplicationName("Application Example");
diff --git a/tests/manual/examples/widgets/dialogs/classwizard/main.cpp b/tests/manual/examples/widgets/dialogs/classwizard/main.cpp
index f31082b392..a58db7f54f 100644
--- a/tests/manual/examples/widgets/dialogs/classwizard/main.cpp
+++ b/tests/manual/examples/widgets/dialogs/classwizard/main.cpp
@@ -10,8 +10,6 @@
int main(int argc, char *argv[])
{
- Q_INIT_RESOURCE(classwizard);
-
QApplication app(argc, argv);
#ifndef QT_NO_TRANSLATION