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

[scientificSpinbox] GUI: ScientificSpinBox is fixed (Closes #334)

Merging branch 'scientificSpinbox'  into 'main'.

See merge request !1027
parents 951d38db f2766089
No related branches found
No related tags found
1 merge request!1027GUI: ScientificSpinBox is fixed
Pipeline #75054 failed
......@@ -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