VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Slots | Protected Member Functions
makVrv::DtDeselectableTreeWidget Class Reference

A tree widget that allows for selecting no item. More...

Inheritance diagram for makVrv::DtDeselectableTreeWidget:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtDeselectableTreeWidget (QWidget *parent)
 CTOR.

Protected Slots

virtual void rowsInserted (const QModelIndex &parent, int start, int end)
 Handle when rows are inserted into the tree.
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 Handle when rows are removed from the tree.

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)
 Handle mouse press events on the widget.
virtual bool eventFilter (QObject *obj, QEvent *event)
 Handle events on the widget.

Detailed Description

A tree widget that allows for selecting no item.

Mouse clicking on any item in the tree will switch the selection-focus normally. Clicking white space off the tree will remove selection-focus from the current items.


Constructor & Destructor Documentation

CTOR.


Member Function Documentation

virtual void makVrv::DtDeselectableTreeWidget::mousePressEvent ( QMouseEvent *  event) [protected, virtual]

Handle mouse press events on the widget.

This handler identifies where the mouse clicked on the tree. If the click was on an item, the event is handled normally. If the click was not on an item, any selected item becomes un-selected.

virtual bool makVrv::DtDeselectableTreeWidget::eventFilter ( QObject obj,
QEvent *  event 
) [protected, virtual]

Handle events on the widget.

This handler un-selects all items when the widget is hidden so no item is selected when the widget is re-shown. The handler reselects the current item when the widget is activated. The re-selection forces the item to visually display focus, giving feedback to the user.

virtual void makVrv::DtDeselectableTreeWidget::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, virtual, slot]

Handle when rows are inserted into the tree.

This handler clears the current selected item.

virtual void makVrv::DtDeselectableTreeWidget::rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, virtual, slot]

Handle when rows are removed from the tree.

This handler clears the current selected item.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)