Mercurial > minori
comparison include/gui/widgets/clickable_label.h @ 67:442065432549
poster: make posters link to AniList
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 02 Oct 2023 07:06:44 -0400 |
parents | |
children | c69230dc2b5d |
comparison
equal
deleted
inserted
replaced
66:6481c5aed3e1 | 67:442065432549 |
---|---|
1 #ifndef __gui__widgets__clickable_label_h | |
2 #define __gui__widgets__clickable_label_h | |
3 | |
4 #include <QLabel> | |
5 | |
6 class QWidget; | |
7 | |
8 class ClickableLabel : public QLabel { | |
9 Q_OBJECT | |
10 | |
11 public: | |
12 explicit ClickableLabel(QWidget* parent = nullptr); | |
13 ~ClickableLabel(); | |
14 | |
15 signals: | |
16 void clicked(); | |
17 | |
18 protected: | |
19 void mousePressEvent(QMouseEvent*) override; | |
20 }; | |
21 | |
22 #endif // __gui__widgets__clickable_label_h |