Refactor autoxxxxx to use autowidget

This commit is contained in:
elecpower
2021-05-10 07:04:18 +10:00
parent ec52ef10c5
commit 10e7a4fc47
26 changed files with 1258 additions and 980 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void AutoCheckBox::setInvert(bool invert)
void AutoCheckBox::onToggled(bool checked)
{
if (!lock() && m_field) {
if (m_field && !lock()) {
const bool val = m_invert ? !checked : checked;
*m_field = val;
emit currentDataChanged(val);