Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
18 class PrefModuleTreeView : public QTreeView
19 {
20  Q_OBJECT
21 public:
22  PrefModuleTreeView(QWidget *parent = 0);
23 
24  void setPane(const QString module_name);
25 
26 signals:
27  void goToPane(QString module_name);
28 
29 protected slots:
30  void currentChanged(const QModelIndex &current, const QModelIndex &previous);
31 
32 private:
33  QModelIndex findModule(QModelIndex &parent, const QString& name);
34 
35  //cache the translation of the module names we check frequently
36  QString appearanceName_;
37 };
38 #endif // PREFERENCE_MODULE_VIEW_H
Definition: pref_module_view.h:19