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/window.h | |
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/window.h')
-rw-r--r-- | examples/corelib/threads/queuedcustomtype/window.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/corelib/threads/queuedcustomtype/window.h b/examples/corelib/threads/queuedcustomtype/window.h index b1ab4f6c24..a4f995696e 100644 --- a/examples/corelib/threads/queuedcustomtype/window.h +++ b/examples/corelib/threads/queuedcustomtype/window.h @@ -4,13 +4,14 @@ #ifndef WINDOW_H #define WINDOW_H +#include <QImage> +#include <QLabel> +#include <QPixmap> +#include <QPushButton> #include <QWidget> -#include "renderthread.h" -QT_BEGIN_NAMESPACE -class QLabel; -class QPushButton; -QT_END_NAMESPACE +class Block; +class RenderThread; //! [Window class definition] class Window : public QWidget |