Example #1
0
void ChaseWidget::toggleOperation( int id, bool value )
{
	if( value && !m_operations.contains( id ) )
		addOperation( id );
	else if( !value && m_operations.contains( id ) )
		removeOperation( id );
}
Example #2
0
void OperationsList::removeOperation( const Operation& operation )
{
    int operationIndex = index(operation);
    if( operationIndex != -1 )
        removeOperation( operationIndex );
}