Skip to content
Snippets Groups Projects
Commit 50d632d5 authored by Ludwig Jaeck's avatar Ludwig Jaeck
Browse files

executed clang-format

parent 51143893
No related branches found
No related tags found
1 merge request!1101GUI: introducing single precission formatting for spinboxes with 'angle' property
Pipeline #77495 passed
......@@ -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)
......
......@@ -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
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment