Modernise header guards

This commit is contained in:
elecpower
2021-02-01 06:39:51 +11:00
parent 9a7c7cd303
commit c35301ec05
14 changed files with 14 additions and 57 deletions
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef AUTOBITSETCHECKBOX_H
#define AUTOBITSETCHECKBOX_H
#pragma once
#include <QCheckBox>
#include "genericpanel.h"
@@ -174,5 +173,3 @@ class AutoBitsetCheckBox: public QCheckBox
bool m_lock = false;
GenericPanel * m_panel = nullptr;
};
#endif // AUTOBITSETCHECKBOX_H
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTOCHECKBOX_H_
#define _AUTOCHECKBOX_H_
#pragma once
#include <QCheckBox>
#include "modeledit/modeledit.h"
@@ -75,5 +74,3 @@ class AutoCheckBox: public QCheckBox
ModelPanel * panel;
bool lock;
};
#endif // _AUTOCHECKBOX_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTOCOMBOBOX_H_
#define _AUTOCOMBOBOX_H_
#pragma once
#include <QComboBox>
#include "genericpanel.h"
@@ -137,5 +136,3 @@ class AutoComboBox: public QComboBox
bool lock = false;
bool hasModel = false;
};
#endif // _AUTOCOMBOBOX_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTODOUBLESPINBOX_H_
#define _AUTODOUBLESPINBOX_H_
#pragma once
#include <QDoubleSpinBox>
#include "modeledit/modeledit.h"
@@ -97,5 +96,3 @@ class AutoDoubleSpinBox: public QDoubleSpinBox
ModelPanel * panel;
bool lock;
};
#endif // _AUTODOUBLESPINBOX_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTOHEXSPINBOX_H_
#define _AUTOHEXSPINBOX_H_
#pragma once
#include "hexspinbox.h"
#include "modeledit/modeledit.h"
@@ -68,5 +67,3 @@ class AutoHexSpinBox: public HexSpinBox
ModelPanel * panel;
bool lock;
};
#endif // _AUTOHEXSPINBOX_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTOLINEEDIT_H_
#define _AUTOLINEEDIT_H_
#pragma once
#include <QLineEdit>
#include <QRegExpValidator>
@@ -99,5 +98,3 @@ class AutoLineEdit: public QLineEdit
GenericPanel * panel;
bool lock;
};
#endif // _AUTOLINEEDIT_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _AUTOPRECISIONCOMBOBOX_H_
#define _AUTOPRECISIONCOMBOBOX_H_
#pragma once
#include "genericpanel.h"
@@ -253,5 +252,3 @@ class AutoPrecisionComboBox: public QComboBox
QString m_suffix = "";
bool m_lock = false;
};
#endif // _AUTOPRECISIONCOMBOBOX_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _GENERICPANEL_H_
#define _GENERICPANEL_H_
#pragma once
#include <QWidget>
@@ -65,5 +64,3 @@ class GenericPanel : public QWidget
void setFocusFilter(QWidget * w);
void disableMouseScrolling();
};
#endif // _GENERICPANEL_H_
+1 -4
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _HEXSPINBOX_H_
#define _HEXSPINBOX_H_
#pragma once
#include <QSpinBox>
@@ -40,5 +39,3 @@ class HexSpinBox : public QSpinBox
private:
QRegExpValidator *validator;
};
#endif // _HEXSPINBOX_H_
+1 -5
View File
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef _VERTICALSCROLLAREA_H_
#define _VERTICALSCROLLAREA_H_
#pragma once
#include <QScrollArea>
@@ -36,6 +35,3 @@ class VerticalScrollArea : public QScrollArea
private:
GenericPanel * panel;
};
#endif // _VERTICALSCROLLAREA_H_