Skip to content
Snippets Groups Projects
Commit 3e697f50 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

add access to value descriptor in DoubleLineEdit

parent eb24cfdb
No related branches found
No related tags found
1 merge request!420Layer editor improvements3
......@@ -38,6 +38,11 @@ void DoubleLineEdit::setBaseValue(double baseValue)
setText(QString::number(baseValue, 'g'));
}
const DoubleDescriptor& DoubleLineEdit::valueDescriptor() const
{
return m_valueDescriptor;
}
void DoubleLineEdit::onEditingFinished()
{
const double new_value = text().toDouble();
......
......@@ -33,6 +33,9 @@ public:
//! Set the base value (unit is the one of the contained descriptor).
void setBaseValue(double baseValue);
//! The descriptor on which this line edit operates.
const DoubleDescriptor& valueDescriptor() const;
signals:
//! Emitted whenever the value changes.
//!
......
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