|
QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
|
#include <deselectabletreeview.h>
Signals | |
| void | emptyClicked () |
| emptyClicked event | |
Public Member Functions | |
| DeselectableTreeView (QWidget *parent) | |
| DeselectableTreeView standard constructor. | |
| ~DeselectableTreeView () override=default | |
| ~DeselectableTreeView standard destructor | |
A QTreeView subclass that clears selection and emits a signal when the user clicks an empty area or clicks a selected item in empty space.
The view tracks press/release sequences to distinguish single- from double-clicks and only clears selection for qualifying single-clicks. Construct a DeselectableTreeView.
| parent | Parent widget forwarded to QTreeView. Default destructor. Emitted after the view clears its selection in response to a qualifying click on empty space or on an already-selected item. Record whether the item under the press position was selected. |
| event | Mouse press event containing the press position. Clear selection and emit emptyClicked() when a qualifying single-click releases over empty space or over a selected item; otherwise, handle the release normally. |
| event | Mouse release event containing the release position. Mark that a double-click occurred and handle the double-click normally. |
| event | Mouse double-click event. |
Definition at line 49 of file deselectabletreeview.h.
|
inline |
DeselectableTreeView standard constructor.
| parent |
Definition at line 57 of file deselectabletreeview.h.