Skip to content
Snippets Groups Projects
Commit 5f537a32 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

clang-format

parent 5473f688
No related branches found
No related tags found
1 merge request!1458rm one Q_OBJECT macro; protect others against removal by explanatory notes (#521)
Pipeline #91998 passed
......@@ -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;
......
......@@ -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,
......
......@@ -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
......
......@@ -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;
......
......@@ -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)
{
}
......
......@@ -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();
......
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