Commit 6c1d07f0 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

fixed bug: set range of spin box for integer entry (e.g. popularity entry) to...

fixed bug: set range of spin box for integer entry (e.g. popularity entry) to [0, INT_MAX] instead of default [0, 99]
parent 604b39b6
......@@ -324,6 +324,7 @@ LabeledSpinBox::LabeledSpinBox(QWidget* parent) :
m_label = new QLabel(this);
m_spinbox = new QSpinBox(this);
if (layout && m_label && m_spinbox) {
m_spinbox->setRange(0, INT_MAX);
layout->setMargin(0);
layout->setSpacing(2);
layout->addWidget(m_label);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment