Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void ComponentModelWidget::setFilter ( const QString &  filter  )  [slot]

The filter is applied against the list of component model names.

Definition at line 108 of file componentmodelwidget.cpp.

{
      QString lower = filter.lower();
      
      for ( QListViewItemIterator it( m_pList ); it.current(); ++it )
      {
            QListViewItem * item = *it;
            bool hasText = item->text(0).lower().contains( lower );
            item->setVisible( hasText );
      }
}


Generated by  Doxygen 1.6.0   Back to index