Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::changeItem ( const char *  newText,
const QPixmap *  newPixmap,
int  index 
)

Changes the text and/or pixmap of the given item at the specified index to the given values and updates the display if auto update enabled. If changing only the text or pixmap, set the other parameter to 0.

Definition at line 666 of file ktreeview.cpp.

References itemAt().

Referenced by changeItem().

{
  KTreeViewItem *item = itemAt(index);
  if(item)
    changeItem(item, index, newText, newPixmap);
}


Generated by  Doxygen 1.6.0   Back to index