1
0
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:
Jon Beniston 2026-03-26 21:31:10 +00:00
parent 62de3a96e1
commit 7bffe8be2a

View File

@ -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;
}