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