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

DoubleSpinBox::m_valueProperty now const

parent 7ff3bc33
No related branches found
No related tags found
1 merge request!2005rm unfinished undo/redo engine (#757)
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "GUI/View/Numeric/NumberUtil.h" #include "GUI/View/Numeric/NumberUtil.h"
#include <QWheelEvent> #include <QWheelEvent>
DoubleSpinBox::DoubleSpinBox(DoubleProperty& d, bool easyScrollable, QWidget* parent) DoubleSpinBox::DoubleSpinBox(const DoubleProperty& d, bool easyScrollable, QWidget* parent)
: QDoubleSpinBox(parent) : QDoubleSpinBox(parent)
, m_valueProperty(d) , m_valueProperty(d)
, m_easyScrollable(easyScrollable) , m_easyScrollable(easyScrollable)
......
...@@ -27,7 +27,7 @@ public: ...@@ -27,7 +27,7 @@ public:
//! policy). Furthermore, the spin box will prohibit accidental changes by the mouse wheel. //! 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 //! 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. //! unnoticed changes would take place when just scrolling through the form.
DoubleSpinBox(DoubleProperty& d, bool easyScrollable = false, QWidget* parent = nullptr); DoubleSpinBox(const DoubleProperty& d, bool easyScrollable = false, QWidget* parent = nullptr);
//! Set the value //! Set the value
void setBaseValue(double value); void setBaseValue(double value);
...@@ -47,7 +47,7 @@ private: ...@@ -47,7 +47,7 @@ private:
void wheelEvent(QWheelEvent* event) override; void wheelEvent(QWheelEvent* event) override;
void onDisplayValueChanged(double newDisplayValue); void onDisplayValueChanged(double newDisplayValue);
DoubleProperty& m_valueProperty; const DoubleProperty& m_valueProperty;
bool m_easyScrollable; bool m_easyScrollable;
}; };
......
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