1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 21:05:26 +03:00

Modernise header guards

This commit is contained in:
elecpower 2021-01-31 07:11:53 +11:00
parent 9a7c7cd303
commit c35301ec05
14 changed files with 14 additions and 57 deletions

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _HELPERS_DATA_H_ #pragma once
#define _HELPERS_DATA_H_
#include <QtCore> #include <QtCore>
@ -49,5 +48,3 @@ class FieldRange
QString prefix; QString prefix;
QString unit; QString unit;
}; };
#endif // _HELPERS_DATA_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef SENSORDATA_H #pragma once
#define SENSORDATA_H
#include "helpersdata.h" #include "helpersdata.h"
@ -214,5 +213,3 @@ class SensorData {
static AbstractStaticItemModel * unitItemModel(); static AbstractStaticItemModel * unitItemModel();
static PrecisionItemModel * precisionItemModel(); static PrecisionItemModel * precisionItemModel();
}; };
#endif // SENSORDATA_H

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _TELEMETRY_H_ #pragma once
#define _TELEMETRY_H_
#include "modeledit.h" #include "modeledit.h"
#include "eeprominterface.h" #include "eeprominterface.h"
@ -180,5 +179,3 @@ class TelemetryPanel : public ModelPanel
void connectItemModelEvents(const int id); void connectItemModelEvents(const int id);
inline bool isLocked() { return lock; } inline bool isLocked() { return lock; }
}; };
#endif // _TELEMETRY_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _MODELPRINTER_H_ #pragma once
#define _MODELPRINTER_H_
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
@ -132,5 +131,3 @@ class ModelPrinter: public QObject
const ModelData & model; const ModelData & model;
}; };
#endif // _MODELPRINTER_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef AUTOBITSETCHECKBOX_H #pragma once
#define AUTOBITSETCHECKBOX_H
#include <QCheckBox> #include <QCheckBox>
#include "genericpanel.h" #include "genericpanel.h"
@ -174,5 +173,3 @@ class AutoBitsetCheckBox: public QCheckBox
bool m_lock = false; bool m_lock = false;
GenericPanel * m_panel = nullptr; GenericPanel * m_panel = nullptr;
}; };
#endif // AUTOBITSETCHECKBOX_H

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTOCHECKBOX_H_ #pragma once
#define _AUTOCHECKBOX_H_
#include <QCheckBox> #include <QCheckBox>
#include "modeledit/modeledit.h" #include "modeledit/modeledit.h"
@ -75,5 +74,3 @@ class AutoCheckBox: public QCheckBox
ModelPanel * panel; ModelPanel * panel;
bool lock; bool lock;
}; };
#endif // _AUTOCHECKBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTOCOMBOBOX_H_ #pragma once
#define _AUTOCOMBOBOX_H_
#include <QComboBox> #include <QComboBox>
#include "genericpanel.h" #include "genericpanel.h"
@ -137,5 +136,3 @@ class AutoComboBox: public QComboBox
bool lock = false; bool lock = false;
bool hasModel = false; bool hasModel = false;
}; };
#endif // _AUTOCOMBOBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTODOUBLESPINBOX_H_ #pragma once
#define _AUTODOUBLESPINBOX_H_
#include <QDoubleSpinBox> #include <QDoubleSpinBox>
#include "modeledit/modeledit.h" #include "modeledit/modeledit.h"
@ -97,5 +96,3 @@ class AutoDoubleSpinBox: public QDoubleSpinBox
ModelPanel * panel; ModelPanel * panel;
bool lock; bool lock;
}; };
#endif // _AUTODOUBLESPINBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTOHEXSPINBOX_H_ #pragma once
#define _AUTOHEXSPINBOX_H_
#include "hexspinbox.h" #include "hexspinbox.h"
#include "modeledit/modeledit.h" #include "modeledit/modeledit.h"
@ -68,5 +67,3 @@ class AutoHexSpinBox: public HexSpinBox
ModelPanel * panel; ModelPanel * panel;
bool lock; bool lock;
}; };
#endif // _AUTOHEXSPINBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTOLINEEDIT_H_ #pragma once
#define _AUTOLINEEDIT_H_
#include <QLineEdit> #include <QLineEdit>
#include <QRegExpValidator> #include <QRegExpValidator>
@ -99,5 +98,3 @@ class AutoLineEdit: public QLineEdit
GenericPanel * panel; GenericPanel * panel;
bool lock; bool lock;
}; };
#endif // _AUTOLINEEDIT_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _AUTOPRECISIONCOMBOBOX_H_ #pragma once
#define _AUTOPRECISIONCOMBOBOX_H_
#include "genericpanel.h" #include "genericpanel.h"
@ -253,5 +252,3 @@ class AutoPrecisionComboBox: public QComboBox
QString m_suffix = ""; QString m_suffix = "";
bool m_lock = false; bool m_lock = false;
}; };
#endif // _AUTOPRECISIONCOMBOBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _GENERICPANEL_H_ #pragma once
#define _GENERICPANEL_H_
#include <QWidget> #include <QWidget>
@ -65,5 +64,3 @@ class GenericPanel : public QWidget
void setFocusFilter(QWidget * w); void setFocusFilter(QWidget * w);
void disableMouseScrolling(); void disableMouseScrolling();
}; };
#endif // _GENERICPANEL_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _HEXSPINBOX_H_ #pragma once
#define _HEXSPINBOX_H_
#include <QSpinBox> #include <QSpinBox>
@ -40,5 +39,3 @@ class HexSpinBox : public QSpinBox
private: private:
QRegExpValidator *validator; QRegExpValidator *validator;
}; };
#endif // _HEXSPINBOX_H_

View file

@ -18,8 +18,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#ifndef _VERTICALSCROLLAREA_H_ #pragma once
#define _VERTICALSCROLLAREA_H_
#include <QScrollArea> #include <QScrollArea>
@ -36,6 +35,3 @@ class VerticalScrollArea : public QScrollArea
private: private:
GenericPanel * panel; GenericPanel * panel;
}; };
#endif // _VERTICALSCROLLAREA_H_