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>
This commit is contained in:
parent
4d3daea33f
commit
288feae848
@ -48,6 +48,9 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef HELLOWINDOW_H
|
||||
#define HELLOWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
|
||||
#include <QColor>
|
||||
@ -117,3 +120,5 @@ private:
|
||||
QColor m_color;
|
||||
const QSharedPointer<Renderer> m_renderer;
|
||||
};
|
||||
|
||||
#endif // HELLOWINDOW_H
|
||||
|
@ -48,6 +48,9 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef OPENGLWINDOW_H
|
||||
#define OPENGLWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
#include <QOpenGLFunctions>
|
||||
|
||||
@ -89,3 +92,4 @@ private:
|
||||
};
|
||||
//! [1]
|
||||
|
||||
#endif // OPENGLWINDOW_H
|
||||
|
@ -48,6 +48,9 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef PAINTEDWINDOW_H
|
||||
#define PAINTEDWINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
|
||||
#include <QtGui/qopengl.h>
|
||||
@ -102,3 +105,5 @@ private:
|
||||
QPropertyAnimation *m_animation;
|
||||
QTimer *m_paintTimer;
|
||||
};
|
||||
|
||||
#endif // PAINTEDWINDOW_H
|
||||
|
@ -48,6 +48,9 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include <QWindow>
|
||||
#include <QImage>
|
||||
|
||||
@ -81,3 +84,5 @@ private:
|
||||
QBackingStore *m_backingStore;
|
||||
int m_renderTimer;
|
||||
};
|
||||
|
||||
#endif // WINDOW_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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user