A delegate that renders specific table cells as clickable URL links.
More...
#include <url_link_delegate.h>
|
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Custom paint method to render the cell text as a URL if it matches the pattern.
|
| |
A delegate that renders specific table cells as clickable URL links.
◆ UrlLinkDelegate()
| UrlLinkDelegate::UrlLinkDelegate |
( |
QObject * |
parent = Q_NULLPTR | ) |
|
|
explicit |
◆ paint()
| void UrlLinkDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protectedvirtual |
Custom paint method to render the cell text as a URL if it matches the pattern.
- Parameters
-
| painter | The painter object. |
| option | The style option for the item. |
| index | The model index of the item. |
Reimplemented in CredentialsUrlDelegate.
◆ setColCheck()
| void UrlLinkDelegate::setColCheck |
( |
int |
column, |
|
|
QString & |
pattern |
|
) |
| |
Configures a column to be checked against a regular expression pattern for URL rendering.
- Parameters
-
| column | The column index to check. |
| pattern | The regular expression pattern string. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/url_link_delegate.h
- /builds/wireshark/wireshark/ui/qt/models/url_link_delegate.cpp