From 50d632d5bceb457c8d58f52b7c4dccc95baab884 Mon Sep 17 00:00:00 2001 From: Ludwig Jaeck <ludwig.jaeck@outlook.de> Date: Thu, 13 Oct 2022 15:18:21 +0200 Subject: [PATCH] executed clang-format --- GUI/View/Common/DoubleSpinBox.cpp | 3 ++- GUI/View/Common/DoubleSpinBox.h | 4 ++-- GUI/View/SampleDesigner/LayerEditorUtils.cpp | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/GUI/View/Common/DoubleSpinBox.cpp b/GUI/View/Common/DoubleSpinBox.cpp index eeb9b5ccee0..01290aeac75 100644 --- a/GUI/View/Common/DoubleSpinBox.cpp +++ b/GUI/View/Common/DoubleSpinBox.cpp @@ -16,7 +16,8 @@ #include "GUI/View/Tool/EditUtil.h" #include <QWheelEvent> -DoubleSpinBox::DoubleSpinBox(const DoubleDescriptor& d, bool easyScrollable,int precision,double stepSize,QWidget* parent) +DoubleSpinBox::DoubleSpinBox(const DoubleDescriptor& d, bool easyScrollable, int precision, + double stepSize, QWidget* parent) : QDoubleSpinBox(parent) , m_valueDescriptor(d) , easyScrollable(easyScrollable) diff --git a/GUI/View/Common/DoubleSpinBox.h b/GUI/View/Common/DoubleSpinBox.h index 04a86142f65..75390ca6f17 100644 --- a/GUI/View/Common/DoubleSpinBox.h +++ b/GUI/View/Common/DoubleSpinBox.h @@ -27,8 +27,8 @@ public: //! 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(const DoubleDescriptor& d, bool easyScrollable = false,int precision = 2,double singleStepSize = 0.1, - QWidget* parent = nullptr); + DoubleSpinBox(const DoubleDescriptor& d, bool easyScrollable = false, int precision = 2, + double singleStepSize = 0.1, 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/SampleDesigner/LayerEditorUtils.cpp b/GUI/View/SampleDesigner/LayerEditorUtils.cpp index bea14f49aaf..629b49d4842 100644 --- a/GUI/View/SampleDesigner/LayerEditorUtils.cpp +++ b/GUI/View/SampleDesigner/LayerEditorUtils.cpp @@ -85,10 +85,10 @@ void LayerEditorUtils::addMultiPropertyToGrid(QGridLayout* m_gridLayout, int fir { int col = firstCol; for (const auto& valueDescriptor : valueDescriptors) { - DoubleSpinBox * editor; + DoubleSpinBox* editor; if (valueDescriptor.label == "Angle") { - editor = new DoubleSpinBox(valueDescriptor,false,1,1.0); - }else{ + editor = new DoubleSpinBox(valueDescriptor, false, 1, 1.0); + } else { editor = new DoubleSpinBox(valueDescriptor); } -- GitLab