An identity proxy model that exposes selected columns as clickable URLs.
More...
#include <astringlist_list_model.h>
|
| | AStringListListUrlProxyModel (QObject *parent=Q_NULLPTR) |
| | Construct an AStringListListUrlProxyModel.
|
| |
| void | setUrlColumn (int column) |
| | Register a column whose values should be treated as URLs.
|
| |
| bool | isUrlColumn (int column) const |
| | Return whether a column is registered as a URL column.
|
| |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| | Return data for index, adding URL role data for URL columns.
|
| |
An identity proxy model that exposes selected columns as clickable URLs.
◆ AStringListListUrlProxyModel()
| AStringListListUrlProxyModel::AStringListListUrlProxyModel |
( |
QObject * |
parent = Q_NULLPTR | ) |
|
|
explicit |
◆ data()
| QVariant AStringListListUrlProxyModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
Return data for index, adding URL role data for URL columns.
- Parameters
-
| index | The model index to query. |
| role | The data role. |
- Returns
- The requested data, or an invalid QVariant if unavailable.
◆ isUrlColumn()
| bool AStringListListUrlProxyModel::isUrlColumn |
( |
int |
column | ) |
const |
Return whether a column is registered as a URL column.
- Parameters
-
| column | The column index to query. |
- Returns
- true if
column was registered via setUrlColumn().
◆ setUrlColumn()
| void AStringListListUrlProxyModel::setUrlColumn |
( |
int |
column | ) |
|
Register a column whose values should be treated as URLs.
- Parameters
-
| column | The column index to mark as a URL column. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/astringlist_list_model.h
- /builds/wireshark/wireshark/ui/qt/models/astringlist_list_model.cpp