| 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
25 class TabnavTreeView : public QTreeView
26{
27 Q_OBJECT
28
29 public:
34 TabnavTreeView(QWidget *parent = 0);
35
47 QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override;
48
49 protected 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
TabnavTreeView::moveCursor
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::TabnavTreeView
TabnavTreeView(QWidget *parent=0)
Constructs the tree view with column-wise Tab navigation.
Definition tabnav_tree_view.cpp:15
TabnavTreeView::currentItemChanged
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
Emitted whenever the current item changes.
TabnavTreeView::currentChanged
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