Logo Search packages:      
Sourcecode: kdbg version File versions

bool KTreeView::getMaxItemWidth ( KTreeViewItem item,
void *  user 
) [static, protected]

internal function used to determine maximum item width

Definition at line 1392 of file ktreeview.cpp.

References indentation(), KTreeViewItem::owner, and KTreeViewItem::width().

{
    assert(item->owner != 0);
    int indent = item->owner->indentation(item);
    int* maxW = static_cast<int*>(user);
    int w = item->width(indent);
    if (w > *maxW)
      *maxW = w;
    return false;
}


Generated by  Doxygen 1.6.0   Back to index