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

void main_windows::selectItem ( Q3ListViewItem *  item  )  [private]

Select item and open parents (if it's possible)

Parameters:
item pointer on QListViewItem
See also:
nextItem search

Definition at line 532 of file main_windows.cpp.

Referenced by search().

{
      debugQt("main_windows::selectItem()");
      Q3ListViewItem * parent;
      // open parent, grandparent, ...
      parent=item;
      while (parent->parent() )
      {
            parent=parent->parent();
            parent->setOpen ( true ); // open parent
      }
      listView->setSelected ( item, true ) ;
      listView->ensureVisible ( 0, item->itemPos () );
}


Generated by  Doxygen 1.6.0   Back to index