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>
This commit is contained in:
parent
ae92c571a3
commit
ddb94dd792
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef HELLOWINDOW_H
|
||||
#define HELLOWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
|
||||
#include <QColor>
|
||||
@ -70,3 +73,5 @@ private:
|
||||
QColor m_color;
|
||||
const QSharedPointer<Renderer> m_renderer;
|
||||
};
|
||||
|
||||
#endif // HELLOWINDOW_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef OPENGLWINDOW_H
|
||||
#define OPENGLWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
#include <QOpenGLFunctions>
|
||||
|
||||
@ -42,3 +45,4 @@ private:
|
||||
};
|
||||
//! [1]
|
||||
|
||||
#endif // OPENGLWINDOW_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef PAINTEDWINDOW_H
|
||||
#define PAINTEDWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
|
||||
#include <QtGui/qopengl.h>
|
||||
@ -55,3 +58,5 @@ private:
|
||||
QPropertyAnimation *m_animation;
|
||||
QTimer *m_paintTimer;
|
||||
};
|
||||
|
||||
#endif // PAINTEDWINDOW_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
#include <QImage>
|
||||
|
||||
@ -34,3 +37,5 @@ private:
|
||||
QBackingStore *m_backingStore;
|
||||
int m_renderTimer;
|
||||
};
|
||||
|
||||
#endif // WINDOW_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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "ui_form.h"
|
||||
@ -37,3 +40,5 @@ private:
|
||||
Animation *m_anim;
|
||||
QSize m_iconSize;
|
||||
};
|
||||
|
||||
#endif // WINDOW_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef FLOWLAYOUT_H
|
||||
#define FLOWLAYOUT_H
|
||||
|
||||
#include <QGraphicsLayout>
|
||||
|
||||
class FlowLayout : public QGraphicsLayout
|
||||
@ -37,3 +40,5 @@ inline void FlowLayout::addItem(QGraphicsLayoutItem *item)
|
||||
{
|
||||
insertItem(-1, item);
|
||||
}
|
||||
|
||||
#endif // FLOWLAYOUT_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include <QGraphicsWidget>
|
||||
|
||||
class Window : public QGraphicsWidget
|
||||
@ -9,3 +12,5 @@ class Window : public QGraphicsWidget
|
||||
public:
|
||||
Window(QGraphicsItem *parent = nullptr);
|
||||
};
|
||||
|
||||
#endif // WINDOW_H
|
||||
|
@ -1,6 +1,9 @@
|
||||
// Copyright (C) 2018 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#ifndef VALIDATORWIDGET_H
|
||||
#define VALIDATORWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "ui_validators.h"
|
||||
@ -15,3 +18,5 @@ private slots:
|
||||
void updateValidator();
|
||||
void updateDoubleValidator();
|
||||
};
|
||||
|
||||
#endif // VALIDATORWIDGET_H
|
||||
|
Loading…
Reference in New Issue
Block a user