Skip to content
Snippets Groups Projects
Commit f2766089 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

ScientificSpinBox: textFromValue fixed

parent 3ce5c31e
No related branches found
No related tags found
1 merge request!1027GUI: ScientificSpinBox is fixed
Pipeline #75042 passed
......@@ -46,6 +46,11 @@ ScientificSpinBox::ScientificSpinBox(QWidget* parent)
ScientificSpinBox::~ScientificSpinBox() = default;
QString ScientificSpinBox::textFromValue(double) const
{
return text();
}
QSize ScientificSpinBox::sizeHint() const
{
// The following is somehow a hack to get a reasonable sizeHint. Implementation could/should be
......
......@@ -25,6 +25,7 @@ public:
ScientificSpinBox(QWidget* parent = nullptr);
~ScientificSpinBox() override;
QString textFromValue(double) const override;
QSize sizeHint() const override;
double value() const;
......
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