include guards

This commit is contained in:
Vogel, Rick 2023-08-02 09:11:01 +02:00
parent cf890b5824
commit a7b3b26f20
5 changed files with 23 additions and 8 deletions

View File

@ -1,4 +1,5 @@
#pragma once #ifndef QSK_LEVELING_SENSOR_H
#define QSK_LEVELING_SENSOR_H
#include <QskControl.h> #include <QskControl.h>
#include <memory> #include <memory>
@ -39,4 +40,6 @@ class QSK_EXPORT QskLevelingSensor : public QskControl
private: private:
class PrivateData; class PrivateData;
std::unique_ptr< PrivateData > m_data; std::unique_ptr< PrivateData > m_data;
}; };
#endif

View File

@ -1,4 +1,5 @@
#pragma once #ifndef QSK_LEVELING_SENSOR_SKINLET_H
#define QSK_LEVELING_SENSOR_SKINLET_H
#include <QSGNode> #include <QSGNode>
#include <QskSkinlet.h> #include <QskSkinlet.h>
@ -50,3 +51,5 @@ class QSK_EXPORT QskLevelingSensorSkinlet : public QskSkinlet
Q_REQUIRED_RESULT QSGNode* updateSubNode( Q_REQUIRED_RESULT QSGNode* updateSubNode(
const QskLevelingSensor* sensor, quint8 nodeRole, QSGNode* node ) const; const QskLevelingSensor* sensor, quint8 nodeRole, QSGNode* node ) const;
}; };
#endif

View File

@ -1,4 +1,5 @@
#pragma once #ifndef QSK_LEVELING_SENSOR_NODES_H
#define QSK_LEVELING_SENSOR_NODES_H
#include "QskLevelingSensorUtility.h" #include "QskLevelingSensorUtility.h"
@ -316,3 +317,5 @@ struct RadialTickmarksLabelsNode final : public TickmarksLabelsNode< RadialTickm
} * s + o; } * s + o;
} }
}; };
#endif

View File

@ -1,4 +1,5 @@
#pragma once #ifndef QSK_LEVELING_SENSOR_UTILITY_H
#define QSK_LEVELING_SENSOR_UTILITY_H
#include <qmath.h> #include <qmath.h>
#include <qmatrix4x4.h> #include <qmatrix4x4.h>
@ -71,4 +72,6 @@ inline QskScaleTickmarks filtered( const QskScaleTickmarks& tickmarks,
result.setMediumTicks( ticks[ QskScaleTickmarks::MediumTick ] ); result.setMediumTicks( ticks[ QskScaleTickmarks::MediumTick ] );
result.setMajorTicks( ticks[ QskScaleTickmarks::MajorTick ] ); result.setMajorTicks( ticks[ QskScaleTickmarks::MajorTick ] );
return result; return result;
} }
#endif

View File

@ -1,4 +1,5 @@
#pragma once #ifndef QSK_SGNODE_UTILITY_H
#define QSK_SGNODE_UTILITY_H
#include <QSGNode> #include <QSGNode>
@ -35,4 +36,6 @@ namespace QskSGNode
return static_cast< Root* >( root ); return static_cast< Root* >( root );
} }
} }
#endif