Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 1604:5feb1a8318df
Fix compiler warning
author | Chris Cannam |
---|---|
date | Wed, 29 Apr 2020 17:47:55 +0100 |
parents | a798a7b5e215 |
children |
comparison
equal
deleted
inserted
replaced
1603:f12c25651f96 | 1604:5feb1a8318df |
---|---|
728 if (!m_contextMenuOn) return; | 728 if (!m_contextMenuOn) return; |
729 | 729 |
730 QString name = m_contextMenuOn->objectName(); | 730 QString name = m_contextMenuOn->objectName(); |
731 | 731 |
732 QString label = m_container->getPropertyLabel(name); | 732 QString label = m_container->getPropertyLabel(name); |
733 int min = 0, max = 0, value = 0, deflt = 0; | 733 int min = 0, max = 0, deflt = 0; |
734 value = m_container->getPropertyRangeAndValue(name, &min, &max, &deflt); | 734 (void)m_container->getPropertyRangeAndValue(name, &min, &max, &deflt); |
735 | 735 |
736 if (auto button = qobject_cast<QAbstractButton *>(m_contextMenuOn)) { | 736 if (auto button = qobject_cast<QAbstractButton *>(m_contextMenuOn)) { |
737 button->setChecked(deflt > 0); | 737 button->setChecked(deflt > 0); |
738 } else if (auto cb = qobject_cast<QComboBox *>(m_contextMenuOn)) { | 738 } else if (auto cb = qobject_cast<QComboBox *>(m_contextMenuOn)) { |
739 cb->setCurrentIndex(deflt); | 739 cb->setCurrentIndex(deflt); |