mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-03-31 12:15:36 -04:00
DMSSpinBox: Handle read-only spin boxes.
This commit is contained in:
parent
62de3a96e1
commit
7bffe8be2a
@ -90,6 +90,10 @@ QAbstractSpinBox::StepEnabled DMSSpinBox::stepEnabled() const
|
||||
{
|
||||
QAbstractSpinBox::StepEnabled enabled = QAbstractSpinBox::StepNone;
|
||||
|
||||
if (isReadOnly()) {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
if (hasValue() && (m_value < m_maximum)) {
|
||||
enabled |= QAbstractSpinBox::StepUpEnabled;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user