Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TabnavTreeWidget Class Reference

QTreeWidget subclass that remaps the Tab and Backtab keys to the next row (same column) when pressing Tab while editing, change to the next column (same row). More...

#include <tabnav_tree_widget.h>

Inheritance diagram for TabnavTreeWidget:

Public Member Functions

 TabnavTreeWidget (QWidget *parent=0)
 Constructs the TabnavTreeWidget.
 
QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
 Overrides cursor movement so that Tab and Backtab transfer focus out of the tree rather than selecting the next or previous item.
 

Detailed Description

QTreeWidget subclass that remaps the Tab and Backtab keys to the next row (same column) when pressing Tab while editing, change to the next column (same row).

Constructor & Destructor Documentation

◆ TabnavTreeWidget()

TabnavTreeWidget::TabnavTreeWidget ( QWidget *  parent = 0)

Constructs the TabnavTreeWidget.

Parameters
parentOptional parent widget.

Member Function Documentation

◆ moveCursor()

QModelIndex TabnavTreeWidget::moveCursor ( CursorAction  cursorAction,
Qt::KeyboardModifiers  modifiers 
)
override

Overrides cursor movement so that Tab and Backtab transfer focus out of the tree rather than selecting the next or previous item.

Parameters
cursorActionThe requested cursor movement action.
modifiersActive keyboard modifiers at the time of the action.
Returns
The model index the cursor should move to, or an invalid index when focus is handed off to another widget.

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