diff options
author | Dennis Oberst <dennis.oberst@qt.io> | 2023-02-28 14:58:54 +0100 |
---|---|---|
committer | Dennis Oberst <dennis.oberst@qt.io> | 2023-03-09 17:26:59 +0000 |
commit | b5e9d418959a9d427c14468886470791527e157f (patch) | |
tree | 6d46f4edcfd2194f0c6ab51b5d47cfc19ce557c7 /examples/qtconcurrent/imagescaling/main.cpp | |
parent | 7261a2298734d4d4844d7ff34592378410293664 (diff) |
Example: update imagescaling example
Updated the example to align with the Qt6 Example-Guideline.
https://wiki.qt.io/Qt6/Example-Guideline
Task-number: QTBUG-111165
Pick-to: 6.5 6.5.0
Change-Id: Ibd9e7ce0d4dee90f6a693b81516d2f5b86345b1d
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/qtconcurrent/imagescaling/main.cpp')
-rw-r--r-- | examples/qtconcurrent/imagescaling/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/qtconcurrent/imagescaling/main.cpp b/examples/qtconcurrent/imagescaling/main.cpp index c7e30df34c..67b543a961 100644 --- a/examples/qtconcurrent/imagescaling/main.cpp +++ b/examples/qtconcurrent/imagescaling/main.cpp @@ -1,15 +1,16 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -#include <QtWidgets> -#include <QtConcurrent> - #include "imagescaling.h" +#include <QApplication> int main(int argc, char *argv[]) { QApplication app(argc,argv); + app.setOrganizationName("QtProject"); + app.setApplicationName(QObject::tr("Image Downloading and Scaling")); Images imageView; + imageView.setWindowTitle(QObject::tr("Image Downloading and Scaling")); imageView.show(); return app.exec(); |