A proxy model used for sorting and filtering export objects.
More...
#include <export_objects_model.h>
|
| bool | lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const |
| | Compares two source indices to determine their sort order.
|
| |
| bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const |
| | Determines whether a row from the source model matches the active filters and should be displayed.
|
| |
A proxy model used for sorting and filtering export objects.
◆ ExportObjectProxyModel()
| ExportObjectProxyModel::ExportObjectProxyModel |
( |
QObject * |
parent = Q_NULLPTR | ) |
|
|
explicit |
◆ filterAcceptsRow()
| bool ExportObjectProxyModel::filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
|
protected |
Determines whether a row from the source model matches the active filters and should be displayed.
- Parameters
-
| source_row | The row in the source model. |
| source_parent | The parent index in the source model. |
- Returns
- True if the row is accepted, false otherwise.
◆ lessThan()
| bool ExportObjectProxyModel::lessThan |
( |
const QModelIndex & |
source_left, |
|
|
const QModelIndex & |
source_right |
|
) |
| const |
|
protected |
Compares two source indices to determine their sort order.
- Parameters
-
| source_left | The first source index. |
| source_right | The second source index. |
- Returns
- True if the left item should appear before the right item.
◆ setContentFilterString()
| void ExportObjectProxyModel::setContentFilterString |
( |
QString |
contentFilter | ) |
|
Sets the filter string used for matching content types.
- Parameters
-
| contentFilter | The content type filter string. |
◆ setTextFilterString()
| void ExportObjectProxyModel::setTextFilterString |
( |
QString |
textFilter | ) |
|
Sets the text filter string used for general searching.
- Parameters
-
| textFilter | The general text filter string. |
◆ setUniqueFilter()
| void ExportObjectProxyModel::setUniqueFilter |
( |
bool |
unique | ) |
|
Sets the filter to determine whether to show only unique items.
- Parameters
-
| unique | True to filter out non-unique items, false otherwise. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/export_objects_model.h
- /builds/wireshark/wireshark/ui/qt/models/export_objects_model.cpp