summaryrefslogtreecommitdiff
path: root/examples/vulkan
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-01-30 14:32:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-01 18:12:36 +0000
commitddb94dd7927126978fc2a620ebd91954e2f96862 (patch)
tree6e36b086e114a6084f3256e408ef85b8432b0c1d /examples/vulkan
parentae92c571a36703f6ab95d98b55d070cc57023376 (diff)
downloadqtbase-ddb94dd7927126978fc2a620ebd91954e2f96862.tar.gz
Examples: Add missing include guards
Pick-to: 6.5 6.4 6.2 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>
Diffstat (limited to 'examples/vulkan')
-rw-r--r--examples/vulkan/hellovulkantexture/hellovulkantexture.h5
-rw-r--r--examples/vulkan/hellovulkanwidget/hellovulkanwidget.h5
-rw-r--r--examples/vulkan/hellovulkanwindow/hellovulkanwindow.h5
-rw-r--r--examples/vulkan/shared/trianglerenderer.h5
4 files changed, 20 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkantexture/hellovulkantexture.h b/examples/vulkan/hellovulkantexture/hellovulkantexture.h
index 893d953b6c..251bdfb2e2 100644
--- a/examples/vulkan/hellovulkantexture/hellovulkantexture.h
+++ b/examples/vulkan/hellovulkantexture/hellovulkantexture.h
@@ -1,6 +1,9 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+#ifndef HELLOVULKANTEXTURE_H
+#define HELLOVULKANTEXTURE_H
+
#include <QVulkanWindow>
#include <QImage>
@@ -59,3 +62,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 f4bcd5bb58..d545e68172 100644
--- a/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h
+++ b/examples/vulkan/hellovulkanwidget/hellovulkanwidget.h
@@ -1,6 +1,9 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+#ifndef HELLOVULKANWIDGET_H
+#define HELLOVULKANWIDGET_H
+
#include "../shared/trianglerenderer.h"
#include <QWidget>
@@ -51,3 +54,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 783abef2a9..ee203fb615 100644
--- a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h
+++ b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.h
@@ -1,6 +1,9 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+#ifndef HELLOVULKANWINDOW_H
+#define HELLOVULKANWINDOW_H
+
#include <QVulkanWindow>
//! [0]
@@ -28,3 +31,5 @@ public:
QVulkanWindowRenderer *createRenderer() override;
};
//! [0]
+
+#endif // HELLOVULKANWINDOW_H
diff --git a/examples/vulkan/shared/trianglerenderer.h b/examples/vulkan/shared/trianglerenderer.h
index 37fa608973..129c35aed9 100644
--- a/examples/vulkan/shared/trianglerenderer.h
+++ b/examples/vulkan/shared/trianglerenderer.h
@@ -1,6 +1,9 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+#ifndef TRIANGLERENDERER_H
+#define TRIANGLERENDERER_H
+
#include <QVulkanWindow>
class TriangleRenderer : public QVulkanWindowRenderer
@@ -36,3 +39,5 @@ protected:
QMatrix4x4 m_proj;
float m_rotation = 0.0f;
};
+
+#endif // TRIANGLERENDERER_H