summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Köhne <[email protected]>2023-05-22 14:19:39 +0200
committerKai Köhne <[email protected]>2023-06-08 16:15:02 +0000
commiteed17b3634a99b6f6f751830c6443094dd6b600b (patch)
tree138356d409d211733899296e81c3b4b2fe044320 /tests
parent7626736a5f068ba7bf835266d6b4c48299def97f (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 Pick-to: 6.5 6.6 Change-Id: I06a24d1c04369eedc78ca60a6ca02ce33907d9e7 Reviewed-by: Joerg Bornemann <[email protected]>
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 04f1c57f087..1614649a5a1 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 903150c1c4f..722b8a71b8e 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 f31082b392f..a58db7f54ff 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