Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
ui
qt
models
url_link_delegate.h
Go to the documentation of this file.
1
12
#ifndef URL_LINK_DELEGATE_H
13
#define URL_LINK_DELEGATE_H
14
15
#include <QStyledItemDelegate>
16
#include <QStyleOptionViewItem>
17
#include <QModelIndex>
18
#include <QRegularExpression>
19
20
class
UrlLinkDelegate
:
public
QStyledItemDelegate
21
{
22
public
:
23
explicit
UrlLinkDelegate
(QObject *parent = Q_NULLPTR);
24
~UrlLinkDelegate
();
25
// If pattern matches the string in column, render as a URL.
26
// Otherwise render as plain text.
27
void
setColCheck(
int
column, QString &pattern);
28
29
protected
:
30
virtual
void
paint(QPainter *painter,
const
QStyleOptionViewItem &option,
const
QModelIndex &index)
const
;
31
32
private
:
33
int
re_col_;
34
QRegularExpression *url_re_;
35
};
20
class
UrlLinkDelegate
:
public
QStyledItemDelegate {
…
};
36
#endif
// URL_LINK_DELEGATE_H
UrlLinkDelegate
Definition
url_link_delegate.h:21
Generated by
1.9.8