Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_filter_history_model.h
Go to the documentation of this file.
1
9
10#ifndef CAPTURE_FILTER_HISTORY_MODEL_H
11#define CAPTURE_FILTER_HISTORY_MODEL_H
12
14
15#include <QStringList>
16
24class CaptureFilterHistoryModel : public FilterHistoryModel
25{
26 Q_OBJECT
27
28public:
29 explicit CaptureFilterHistoryModel(QObject *parent = nullptr);
30
31 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
32 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
33
34 void addRecent(const QString &expression) override;
35
36public slots:
38 void reload();
39
40private:
41 QStringList entries_;
42};
43
44#endif // CAPTURE_FILTER_HISTORY_MODEL_H
void addRecent(const QString &expression) override
Commits expression to the recent list.
Definition capture_filter_history_model.cpp:39
void reload()
Reloads from the global recent store (e.g. on preferences change).
Definition capture_filter_history_model.cpp:48