| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
display_filter_history_model.h
Go to the documentation of this file.
1
9
10#ifndef DISPLAY_FILTER_HISTORY_MODEL_H
11#define DISPLAY_FILTER_HISTORY_MODEL_H
12
13#include <ui/qt/models/filter_history_model.h>
14
28 class DisplayFilterHistoryModel : public FilterHistoryModel
29{
30 Q_OBJECT
31
32 public:
33 explicit DisplayFilterHistoryModel(QObject *parent = nullptr);
34 ~DisplayFilterHistoryModel() override;
35
36 int rowCount(const QModelIndex &parent = QModelIndex()) const override;
37 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
38
39 void addRecent(const QString &expression) override;
40
41 public slots:
43 void reload();
44};
45
46#endif // DISPLAY_FILTER_HISTORY_MODEL_H
DisplayFilterHistoryModel::reload
void reload()
Re-reads the shared store (e.g. on preferences change).
Definition display_filter_history_model.cpp:115
DisplayFilterHistoryModel::addRecent
void addRecent(const QString &expression) override
Commits expression to the recent list.
Definition display_filter_history_model.cpp:99
filter_history_model.h