return myFilters.contains( f );
}
-void SUIT_SelectionMgr::installFilter( SUIT_SelectionFilter* f )
+void SUIT_SelectionMgr::installFilter( SUIT_SelectionFilter* f, const bool updateSelection )
{
if ( !hasFilter( f ) )
+ {
+ SUIT_DataOwnerPtrList selOwners;
+ if( updateSelection )
+ selected( selOwners );
+
myFilters.append( f );
+
+ if( updateSelection )
+ setSelected( selOwners );
+ }
}
void SUIT_SelectionMgr::removeFilter( SUIT_SelectionFilter* f )
bool hasFilter( SUIT_SelectionFilter* ) const;
- virtual void installFilter( SUIT_SelectionFilter* );
+ virtual void installFilter( SUIT_SelectionFilter*, const bool = true );
virtual void removeFilter( SUIT_SelectionFilter* );
virtual void clearFilters();