Navigation Menu

Skip to content

Commit

Permalink
fix missing signal on QgsCheckableComboBox (#43487)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 1, 2021
1 parent e544cd6 commit 415d483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgscheckablecombobox.cpp
Expand Up @@ -195,6 +195,7 @@ void QgsCheckableComboBox::toggleItemCheckState( int index )
Qt::CheckState state = static_cast<Qt::CheckState>( value.toInt() );
setItemData( index, ( state == Qt::Unchecked ? Qt::Checked : Qt::Unchecked ), Qt::CheckStateRole );
}
updateCheckedItems();
}

void QgsCheckableComboBox::hidePopup()
Expand Down Expand Up @@ -262,7 +263,8 @@ bool QgsCheckableComboBox::eventFilter( QObject *object, QEvent *event )
{
QgsCheckableItemModel *myModel = qobject_cast<QgsCheckableItemModel *>( model() );
QStandardItem *item = myModel->itemFromIndex( index );
item->checkState() == Qt::Checked ? item->setCheckState( Qt::Unchecked ) : item->setCheckState( Qt::Checked );
item->setCheckState( item->checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked );
updateCheckedItems();
}
return true;
}
Expand Down

0 comments on commit 415d483

Please sign in to comment.