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/vulkan | |
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/vulkan')
4 files changed, 20 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkantexture/hellovulkantexture.h b/examples/vulkan/hellovulkantexture/hellovulkantexture.h index a8c96d1987..39cc0387c6 100644 --- a/examples/vulkan/hellovulkantexture/hellovulkantexture.h +++ b/examples/vulkan/hellovulkantexture/hellovulkantexture.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANTEXTURE_H +#define HELLOVULKANTEXTURE_H + #include <QVulkanWindow> #include <QImage> @@ -106,3 +109,5 @@ class VulkanWindow : public QVulkanWindow public: QVulkanWindowRenderer *createRenderer() override; }; + +#endif // HELLOVULKANTEXTURE_H diff --git a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h index e70d331ae8..e428c6ae93 100644 --- a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h +++ b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANWIDGET_H +#define HELLOVULKANWIDGET_H + #include "../shared/trianglerenderer.h" #include <QWidget> @@ -98,3 +101,5 @@ signals: void vulkanInfoReceived(const QString &text); void frameQueued(int colorValue); }; + +#endif // HELLOVULKANWIDGET_H diff --git a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h index 5f52e402ca..7a6db84ae3 100644 --- a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h +++ b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef HELLOVULKANWINDOW_H +#define HELLOVULKANWINDOW_H + #include <QVulkanWindow> //! [0] @@ -75,3 +78,5 @@ public: QVulkanWindowRenderer *createRenderer() override; }; //! [0] + +#endif // HELLOVULKANWINDOW_H diff --git a/examples/vulkan/shared/trianglerenderer.h b/examples/vulkan/shared/trianglerenderer.h index 9a33291a95..bd3daf1d64 100644 --- a/examples/vulkan/shared/trianglerenderer.h +++ b/examples/vulkan/shared/trianglerenderer.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef TRIANGLERENDERER_H +#define TRIANGLERENDERER_H + #include <QVulkanWindow> class TriangleRenderer : public QVulkanWindowRenderer @@ -83,3 +86,5 @@ protected: QMatrix4x4 m_proj; float m_rotation = 0.0f; }; + +#endif // TRIANGLERENDERER_H |