Logo Search packages:      
Sourcecode: kdbg version File versions

void KTreeView::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Reimplemented for mouse event handling. The mouse move event is first forwarded to the current item (if there is one) by calling KTreeViewItem::mouseEvent.

Definition at line 1648 of file ktreeview.cpp.

References cellCoords(), currentItem(), itemAt(), and KTreeViewItem::mouseEvent().

{
    // in rubberband_mode we actually scroll the window now
    if (rubberband_mode) {
      move_rubberband(e->pos());
    } else {
      // else forward to current item
      int current = currentItem();
      if (current >= 0 && itemAt(current))
          itemAt(current)->mouseEvent(e, cellCoords(current, e->pos()));
    }
}


Generated by  Doxygen 1.6.0   Back to index