From 5f537a326489440f6f20832728bdbfa453ca314a Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Sat, 11 Mar 2023 00:00:03 +0100 Subject: [PATCH] clang-format --- GUI/Support/Data/JobWorker.h | 3 +-- GUI/View/Mask/SizeHandleElement.h | 7 +++++-- GUI/View/Numeric/DoubleSpinBox.h | 16 ++++++++-------- GUI/View/Numeric/ScientificSpinBox.h | 5 ++--- GUI/View/PropertyEditor/CustomEditors.h | 3 +-- GUI/View/SampleDesigner/LayerForm.h | 3 +-- 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/GUI/Support/Data/JobWorker.h b/GUI/Support/Data/JobWorker.h index dc223a70bc7..83fa1ada62b 100644 --- a/GUI/Support/Data/JobWorker.h +++ b/GUI/Support/Data/JobWorker.h @@ -27,8 +27,7 @@ class SimulationResult; class JobWorker : public QObject { Q_OBJECT // needed by qobject_cast -public: - JobWorker(QString identifier, ISimulation* simulation); + public : JobWorker(QString identifier, ISimulation* simulation); ~JobWorker(); QString identifier() const; diff --git a/GUI/View/Mask/SizeHandleElement.h b/GUI/View/Mask/SizeHandleElement.h index 34f7f873e35..b99fb7125c6 100644 --- a/GUI/View/Mask/SizeHandleElement.h +++ b/GUI/View/Mask/SizeHandleElement.h @@ -26,8 +26,11 @@ class SizeHandleElement : public QGraphicsObject { Q_OBJECT // needed by qobject_cast -public: - int type() const override { return MaskEditorHelper::SIZEHANDLE; } + public : int + type() const override + { + return MaskEditorHelper::SIZEHANDLE; + } enum EHandleLocation { NONE, diff --git a/GUI/View/Numeric/DoubleSpinBox.h b/GUI/View/Numeric/DoubleSpinBox.h index 050f313c7e3..87df628dbab 100644 --- a/GUI/View/Numeric/DoubleSpinBox.h +++ b/GUI/View/Numeric/DoubleSpinBox.h @@ -20,14 +20,14 @@ //! SpinBox for DoubleProperties, supporting units. class DoubleSpinBox : public QDoubleSpinBox { Q_OBJECT // required by qobject_cast (called via FormLayouter::widgetAt) -public: - //! Create a DoubleSpinBox with the information found in a DoubleProperty. - //! - //! The spin box will be fully initialized (tooltip, limits, unit, current value, size policy). - //! Furthermore, the spin box will prohibit accidental changes by the mouse wheel. Otherwise it - //! would be dangerous if the spin box is on a scrollable form - unintended and unnoticed - //! changes would take place when just scrolling through the form. - DoubleSpinBox(DoubleProperty& d, bool easyScrollable = false, QWidget* parent = nullptr); + public : + //! Create a DoubleSpinBox with the information found in a DoubleProperty. + //! + //! The spin box will be fully initialized (tooltip, limits, unit, current value, size + //! policy). Furthermore, the spin box will prohibit accidental changes by the mouse wheel. + //! Otherwise it would be dangerous if the spin box is on a scrollable form - unintended and + //! unnoticed changes would take place when just scrolling through the form. + DoubleSpinBox(DoubleProperty& d, bool easyScrollable = false, QWidget* parent = nullptr); //! Set a display unit. //! //! The caller has to make sure that the new display unit has a conversion to/from the contained diff --git a/GUI/View/Numeric/ScientificSpinBox.h b/GUI/View/Numeric/ScientificSpinBox.h index 28b7ae1a6e9..3c3a83d3c3a 100644 --- a/GUI/View/Numeric/ScientificSpinBox.h +++ b/GUI/View/Numeric/ScientificSpinBox.h @@ -19,9 +19,8 @@ class ScientificSpinBox : public QAbstractSpinBox { Q_OBJECT // needed by qobject_cast - Q_PROPERTY(double value MEMBER m_value READ value WRITE setValue NOTIFY valueChanged USER true) -public: - ScientificSpinBox(QWidget* parent = nullptr); + Q_PROPERTY(double value MEMBER m_value READ value WRITE setValue NOTIFY valueChanged + USER true) public : ScientificSpinBox(QWidget* parent = nullptr); ~ScientificSpinBox() override; double value() const; diff --git a/GUI/View/PropertyEditor/CustomEditors.h b/GUI/View/PropertyEditor/CustomEditors.h index 418a2668a3e..79fd91f708c 100644 --- a/GUI/View/PropertyEditor/CustomEditors.h +++ b/GUI/View/PropertyEditor/CustomEditors.h @@ -27,8 +27,7 @@ class RealLimits; class CustomEditor : public QWidget { Q_OBJECT // needed by qobject_cast -public: - explicit CustomEditor(QWidget* parent = nullptr) + public : explicit CustomEditor(QWidget* parent = nullptr) : QWidget(parent) { } diff --git a/GUI/View/SampleDesigner/LayerForm.h b/GUI/View/SampleDesigner/LayerForm.h index 04448c8277f..5ec3ec21584 100644 --- a/GUI/View/SampleDesigner/LayerForm.h +++ b/GUI/View/SampleDesigner/LayerForm.h @@ -25,8 +25,7 @@ class WidgetMoverButton; //! Form for editing a layer class LayerForm : public QGroupBox { Q_OBJECT // critically important ... even if we don't understand why -public: - LayerForm(QWidget* parent, LayerItem* layer, SampleEditorController* ec); + public : LayerForm(QWidget* parent, LayerItem* layer, SampleEditorController* ec); void enableStructureEditing(bool b); void updateLayerPositionDependentElements(); -- GitLab