diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-01-30 14:32:42 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-01 19:39:09 +0000 |
commit | 288feae8482c24758e733cd541a81ad0b3547fdb (patch) | |
tree | 210c328956bf183ae9bdc8ccbff47f96ccdb096d /examples/widgets | |
parent | 4d3daea33f7f2750303a62a97c342ea880f75644 (diff) |
Examples: Add missing include guards
Task-number: QTBUG-109394
Change-Id: I09a1b522d0faeb2346e1e075141f1e810c8155f7
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit ddb94dd7927126978fc2a620ebd91954e2f96862)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/widgets')
4 files changed, 20 insertions, 0 deletions
diff --git a/examples/widgets/animation/easing/window.h b/examples/widgets/animation/easing/window.h index 0c49dd6e8a..51c7792e19 100644 --- a/examples/widgets/animation/easing/window.h +++ b/examples/widgets/animation/easing/window.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef WINDOW_H +#define WINDOW_H + #include <QtWidgets> #include "ui_form.h" @@ -84,3 +87,5 @@ private: Animation *m_anim; QSize m_iconSize; }; + +#endif // WINDOW_H diff --git a/examples/widgets/graphicsview/flowlayout/flowlayout.h b/examples/widgets/graphicsview/flowlayout/flowlayout.h index 14251072ec..d8ec253792 100644 --- a/examples/widgets/graphicsview/flowlayout/flowlayout.h +++ b/examples/widgets/graphicsview/flowlayout/flowlayout.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef FLOWLAYOUT_H +#define FLOWLAYOUT_H + #include <QGraphicsLayout> class FlowLayout : public QGraphicsLayout @@ -84,3 +87,5 @@ inline void FlowLayout::addItem(QGraphicsLayoutItem *item) { insertItem(-1, item); } + +#endif // FLOWLAYOUT_H diff --git a/examples/widgets/graphicsview/flowlayout/window.h b/examples/widgets/graphicsview/flowlayout/window.h index 24a7cf908b..9323125fd4 100644 --- a/examples/widgets/graphicsview/flowlayout/window.h +++ b/examples/widgets/graphicsview/flowlayout/window.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef WINDOW_H +#define WINDOW_H + #include <QGraphicsWidget> class Window : public QGraphicsWidget @@ -56,3 +59,5 @@ class Window : public QGraphicsWidget public: Window(QGraphicsItem *parent = nullptr); }; + +#endif // WINDOW_H diff --git a/examples/widgets/widgets/validators/validatorwidget.h b/examples/widgets/widgets/validators/validatorwidget.h index bcc4a9b91e..7b80c58504 100644 --- a/examples/widgets/widgets/validators/validatorwidget.h +++ b/examples/widgets/widgets/validators/validatorwidget.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef VALIDATORWIDGET_H +#define VALIDATORWIDGET_H + #include <QWidget> #include "ui_validators.h" @@ -62,3 +65,5 @@ private slots: void updateValidator(); void updateDoubleValidator(); }; + +#endif // VALIDATORWIDGET_H |