From 2578edce08c7be64f585a4f2d4fd4356f5bb3e1e Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Wed, 21 Apr 2021 11:26:39 +0200 Subject: [PATCH] rename header guards --- examples/iot-dashboard/Box.h | 6 +++--- examples/iot-dashboard/Diagram.h | 10 ++++++++-- examples/iot-dashboard/DiagramSkinlet.h | 10 +++++++++- examples/iot-dashboard/PieChartSkinlet.h | 6 +++--- examples/iot-dashboard/Skin.h | 4 ++-- examples/iot-dashboard/TopBar.h | 5 ++++- examples/iot-dashboard/nodes/DiagramDataNode.h | 5 ++++- examples/iot-dashboard/nodes/DiagramSegmentsNode.h | 5 ++++- 8 files changed, 37 insertions(+), 14 deletions(-) diff --git a/examples/iot-dashboard/Box.h b/examples/iot-dashboard/Box.h index a2c23ea5..c04cf6a9 100644 --- a/examples/iot-dashboard/Box.h +++ b/examples/iot-dashboard/Box.h @@ -1,5 +1,5 @@ -#ifndef CARD_H -#define CARD_H +#ifndef BOX_H +#define BOX_H #include @@ -22,4 +22,4 @@ class Box : public QskLinearBox QskControl* m_content; }; -#endif // CARD_H +#endif // BOX_H diff --git a/examples/iot-dashboard/Diagram.h b/examples/iot-dashboard/Diagram.h index 089f142a..60f32077 100644 --- a/examples/iot-dashboard/Diagram.h +++ b/examples/iot-dashboard/Diagram.h @@ -1,6 +1,10 @@ -// ### copyright Uwe +/****************************************************************************** + * QSkinny - Copyright (C) 2021 Uwe Rathmann + * This file may be used under the terms of the QSkinny License, Version 1.0 + *****************************************************************************/ -#pragma once +#ifndef DIAGRAM_H +#define DIAGRAM_H #include #include @@ -48,3 +52,5 @@ class Diagram : public QskControl }; Q_DECLARE_OPERATORS_FOR_FLAGS( Diagram::Types ) + +#endif // DIAGRAM_H diff --git a/examples/iot-dashboard/DiagramSkinlet.h b/examples/iot-dashboard/DiagramSkinlet.h index 4534a13a..d5ed612d 100644 --- a/examples/iot-dashboard/DiagramSkinlet.h +++ b/examples/iot-dashboard/DiagramSkinlet.h @@ -1,4 +1,10 @@ -#pragma once +/****************************************************************************** + * QSkinny - Copyright (C) 2021 Uwe Rathmann + * This file may be used under the terms of the QSkinny License, Version 1.0 + *****************************************************************************/ + +#ifndef DIAGRAM_SKINLET_H +#define DIAGRAM_SKINLET_H #include @@ -32,3 +38,5 @@ class DiagramSkinlet : public QskSkinlet QSGNode* updateChartNode( const Diagram*, QSGNode* ) const; QSGNode* updateSeparatorNode( const Diagram*, QSGNode* ) const; }; + +#endif // DIAGRAM_SKINLET_H diff --git a/examples/iot-dashboard/PieChartSkinlet.h b/examples/iot-dashboard/PieChartSkinlet.h index 366d60b9..8ebb8bd5 100644 --- a/examples/iot-dashboard/PieChartSkinlet.h +++ b/examples/iot-dashboard/PieChartSkinlet.h @@ -1,5 +1,5 @@ -#ifndef PIECHARTSKINLET_H -#define PIECHARTSKINLET_H +#ifndef PIECHART_SKINLET_H +#define PIECHART_SKINLET_H #include @@ -28,4 +28,4 @@ class PieChartSkinlet : public QskSkinlet QSGNode* updateLabelsNode( const PieChart*, QSGNode* ) const; }; -#endif // PIECHARTSKINLET_H +#endif // PIECHART_SKINLET_H diff --git a/examples/iot-dashboard/Skin.h b/examples/iot-dashboard/Skin.h index 62fc4e2c..ca41680b 100644 --- a/examples/iot-dashboard/Skin.h +++ b/examples/iot-dashboard/Skin.h @@ -1,5 +1,5 @@ -#ifndef DSKIN_H -#define DSKIN_H +#ifndef SKIN_H +#define SKIN_H #include #include diff --git a/examples/iot-dashboard/TopBar.h b/examples/iot-dashboard/TopBar.h index 65ff08aa..fa05ed7f 100644 --- a/examples/iot-dashboard/TopBar.h +++ b/examples/iot-dashboard/TopBar.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef TOPBAR_H +#define TOPBAR_H #include #include @@ -100,3 +101,5 @@ class TopBar : public QskLinearBox private: QList< TopBarItem* > m_entries; }; + +#endif diff --git a/examples/iot-dashboard/nodes/DiagramDataNode.h b/examples/iot-dashboard/nodes/DiagramDataNode.h index 766fee0f..5cd7bf3e 100644 --- a/examples/iot-dashboard/nodes/DiagramDataNode.h +++ b/examples/iot-dashboard/nodes/DiagramDataNode.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef DIAGRAMDATANODE_H +#define DIAGRAMDATANODE_H #include @@ -31,3 +32,5 @@ class IdlChartNode : public QSGGeometryNode Qsk::Position m_position; int m_lineWidth; }; + +#endif diff --git a/examples/iot-dashboard/nodes/DiagramSegmentsNode.h b/examples/iot-dashboard/nodes/DiagramSegmentsNode.h index 3f05eeb8..d1e7225b 100644 --- a/examples/iot-dashboard/nodes/DiagramSegmentsNode.h +++ b/examples/iot-dashboard/nodes/DiagramSegmentsNode.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef DIAGRAMSEGMENTSNODE_H +#define DIAGRAMSEGMENTSNODE_H #include #include @@ -20,3 +21,5 @@ class IdlChartSegmentsNode : public QSGGeometryNode QVector< QVector > m_dataPoints; int m_xGridLines; }; + +#endif