Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
clickable_label.h
Go to the documentation of this file.
1
12#ifndef CLICKABLE_LABEL_H_
13#define CLICKABLE_LABEL_H_
14
15#include <QLabel>
16
17class ClickableLabel : public QLabel
18{
19 Q_OBJECT
20public:
21 explicit ClickableLabel(QWidget* parent=0);
22
23signals:
24 void clicked();
25 void clickedAt(const QPoint &global_pos, Qt::MouseButton button);
26
27protected:
28 void mouseReleaseEvent(QMouseEvent* event);
29 void mousePressEvent(QMouseEvent *event);
30 void contextMenuEvent(QContextMenuEvent *event);
31};
32
33#endif /* CLICKABLE_LABEL_H_ */
Definition clickable_label.h:18