|
Wireshark 4.7.2
The Wireshark network protocol analyzer
|
Saved-display-filter bookmarks backed by FilterListModel(Display). More...
#include <display_filter_bookmark_model.h>
Public Slots | |
| void | reload () |
| Reloads from the saved-filters store (e.g. on external change). | |
Public Member Functions | |
| DisplayFilterBookmarkModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| bool | contains (const QString &expression) const override |
Returns true when expression exactly matches a saved entry. | |
| void | addBookmark (const QString &name, const QString &expression) |
| Adds a saved filter and persists the list. | |
| void | removeBookmark (const QString &expression) |
Removes the saved filter matching expression and persists. | |
| Public Member Functions inherited from BookmarkModel | |
| BookmarkModel (QObject *parent=nullptr) | |
Additional Inherited Members | |
| Public Types inherited from BookmarkModel | |
| enum | Roles { ExpressionRole = Qt::UserRole + 1 , NameRole } |
| Item-data roles exposed by every bookmark model. More... | |
Saved-display-filter bookmarks backed by FilterListModel(Display).
Presents the saved display filters as a flat list with ExpressionRole and NameRole, persisting through the underlying FilterListModel (the same store the Display Filters manager edits). contains() drives the bookmark menu's "remove current" enablement.
|
overridevirtual |
Returns true when expression exactly matches a saved entry.
Drives the enablement of the bookmark menu's "remove current" action, centralising logic that the old edits duplicated inside checkFilter().
Implements BookmarkModel.