Tree view specialised for displaying and editing configuration profiles, with inline editing support and selection-change notifications.
More...
#include <profile_tree_view.h>
|
|
void | itemUpdated () |
| | Emitted when a profile item has been modified through the inline editor.
|
| |
|
| | ProfileTreeView (QWidget *parent=nullptr) |
| | Constructs a ProfileTreeView.
|
| |
|
| ~ProfileTreeView () |
| | Destroys the view and releases the associated delegate.
|
| |
| void | selectRow (int row) |
| | Selects the row at row in the view, scrolling it into view if necessary.
|
| |
| bool | activeEdit () |
| | Returns whether an inline edit is currently active in the view.
|
| |
|
| virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| | Responds to selection changes, updating UI state and emitting itemUpdated() when appropriate.
|
| |
|
|
virtual void | showEvent (QShowEvent *) |
| | Restores the previously selected row when the view becomes visible.
|
| |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
| | Opens an inline editor for the double-clicked cell when the profile is editable; otherwise propagates the event.
|
| |
Tree view specialised for displaying and editing configuration profiles, with inline editing support and selection-change notifications.
◆ ProfileTreeView()
| ProfileTreeView::ProfileTreeView |
( |
QWidget * |
parent = nullptr | ) |
|
◆ activeEdit()
| bool ProfileTreeView::activeEdit |
( |
| ) |
|
Returns whether an inline edit is currently active in the view.
- Returns
true if a cell editor is open.
◆ mouseDoubleClickEvent()
| void ProfileTreeView::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Opens an inline editor for the double-clicked cell when the profile is editable; otherwise propagates the event.
- Parameters
-
| event | The mouse double-click event. |
◆ selectionChanged
| void ProfileTreeView::selectionChanged |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
protectedvirtualslot |
Responds to selection changes, updating UI state and emitting itemUpdated() when appropriate.
- Parameters
-
| selected | Newly selected items. |
| deselected | Previously selected items that are now deselected. |
◆ selectRow()
| void ProfileTreeView::selectRow |
( |
int |
row | ) |
|
Selects the row at row in the view, scrolling it into view if necessary.
- Parameters
-
| row | Zero-based row index to select. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/profile_tree_view.h
- /builds/wireshark/wireshark/ui/qt/widgets/profile_tree_view.cpp