diff options
author | Rym Bouabid <rym.bouabid@qt.io> | 2023-09-20 17:44:57 +0200 |
---|---|---|
committer | Rym Bouabid <rym.bouabid@qt.io> | 2023-10-02 19:08:42 +0200 |
commit | aa9529408041ab16bb920840d78b3f41c759a2f8 (patch) | |
tree | 245ffb6cdf5b2c05419f72110c656b89ab83f093 /examples/corelib/threads/queuedcustomtype/main.cpp | |
parent | fa54471050da82867ccd965977d72b3d6b14f4f5 (diff) |
Revamp Queued Custom Type Ex: Fix includes
Fix includes order and add the needed ones to avoid transitive includes.
Remove QT_{BEGIN,END}_NAMESPACE because these are private Qt macros that
should not be used in the examples.
Task-number: QTBUG-117147
Pick-to: 6.6 6.5
Change-Id: I6caa0a59f2ab4dfec6fb558a0896c27b05b6a5db
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'examples/corelib/threads/queuedcustomtype/main.cpp')
-rw-r--r-- | examples/corelib/threads/queuedcustomtype/main.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/corelib/threads/queuedcustomtype/main.cpp b/examples/corelib/threads/queuedcustomtype/main.cpp index 0cf019990a..28e7687f02 100644 --- a/examples/corelib/threads/queuedcustomtype/main.cpp +++ b/examples/corelib/threads/queuedcustomtype/main.cpp @@ -1,12 +1,17 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -#include <QApplication> -#include <QPainter> -#include <QTime> #include "block.h" #include "window.h" +#include <QApplication> +#include <QBrush> +#include <QImage> +#include <QPainter> +#include <QPen> +#include <QPointF> +#include <QRect> + QImage createImage(int width, int height) { QImage image(width, height, QImage::Format_RGB16); |