A custom QLabel that emits signals when clicked.
More...
#include <clickable_label.h>
|
|
void | clicked () |
| | Signal emitted when the label is clicked.
|
| |
| void | clickedAt (const QPoint &global_pos, Qt::MouseButton button) |
| | Signal emitted when the label is clicked, providing position and button details.
|
| |
A custom QLabel that emits signals when clicked.
◆ ClickableLabel()
| ClickableLabel::ClickableLabel |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructs a new ClickableLabel.
- Parameters
-
| parent | The parent widget, defaults to 0. |
◆ clickedAt
| void ClickableLabel::clickedAt |
( |
const QPoint & |
global_pos, |
|
|
Qt::MouseButton |
button |
|
) |
| |
|
signal |
Signal emitted when the label is clicked, providing position and button details.
- Parameters
-
| global_pos | The global position of the click. |
| button | The mouse button that was clicked. |
◆ contextMenuEvent()
| void ClickableLabel::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protected |
Handles the context menu event.
- Parameters
-
| event | The context menu event details. |
◆ mousePressEvent()
| void ClickableLabel::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handles the mouse press event.
- Parameters
-
| event | The mouse event details. |
◆ mouseReleaseEvent()
| void ClickableLabel::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Handles the mouse release event.
- Parameters
-
| event | The mouse event details. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/clickable_label.h
- /builds/wireshark/wireshark/ui/qt/widgets/clickable_label.cpp