mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
DMSSpinBox: Handle read-only spin boxes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user