![]() |
VR-Forces 4.0.4 Class Documentation
|
A tree widget that allows for selecting no item. More...

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. | |
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.
CTOR.
| 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.