| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
pref_module_view.h
Go to the documentation of this file.
1
11
12#ifndef PREFERENCE_MODULE_VIEW_H
13#define PREFERENCE_MODULE_VIEW_H
14
15#include <config.h>
16#include <QTreeView>
17
21 class PrefModuleTreeView : public QTreeView
22{
23 Q_OBJECT
24 public:
29 PrefModuleTreeView(QWidget *parent = 0);
30
35 void setPane(const QString module_name);
36
37signals:
42 void goToPane(QString module_name);
43
44 protected slots:
50 void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
51
52 private:
59 QModelIndex findModule(QModelIndex &parent, const QString& name);
60
62 QString appearanceName_;
63};
64#endif // PREFERENCE_MODULE_VIEW_H
PrefModuleTreeView::currentChanged
void currentChanged(const QModelIndex &current, const QModelIndex &previous) override
Handles the event when the current item in the tree view changes.
Definition pref_module_view.cpp:91
PrefModuleTreeView::setPane
void setPane(const QString module_name)
Sets the active preference pane to the specified module.
Definition pref_module_view.cpp:21
PrefModuleTreeView::PrefModuleTreeView
PrefModuleTreeView(QWidget *parent=0)
Constructs a new PrefModuleTreeView object.
Definition pref_module_view.cpp:16
PrefModuleTreeView::goToPane
void goToPane(QString module_name)
Signal emitted to navigate to a specific preference pane.