Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
tabnav_tree_view.h
Go to the documentation of this file.
1
13
14#ifndef TABNAV_TREE_VIEW_H
15#define TABNAV_TREE_VIEW_H
16
17#include <config.h>
18#include <QTreeView>
19
25class TabnavTreeView : public QTreeView
26{
27 Q_OBJECT
28
29public:
34 TabnavTreeView(QWidget *parent = 0);
35
47 QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override;
48
49protected slots:
57 void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
58
59signals:
65 void currentItemChanged(const QModelIndex &current, const QModelIndex &previous);
66};
67#endif // TABNAV_TREE_VIEW_H
QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
Returns the index the view should move to for a given cursor action.
Definition tabnav_tree_view.cpp:22
TabnavTreeView(QWidget *parent=0)
Constructs the tree view with column-wise Tab navigation.
Definition tabnav_tree_view.cpp:15
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
Emitted whenever the current item changes.
void currentChanged(const QModelIndex &current, const QModelIndex &previous) override
Relays the QAbstractItemView::currentChanged notification as the currentItemChanged() signal so that ...
Definition tabnav_tree_view.cpp:53