Mercurial > minori
annotate 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 |
rev | line source |
---|---|
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
1 #ifndef __gui__widgets__clickable_label_h |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
2 #define __gui__widgets__clickable_label_h |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
3 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
4 #include <QLabel> |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
5 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
6 class QWidget; |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
7 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
8 class ClickableLabel : public QLabel { |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
9 Q_OBJECT |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
10 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
11 public: |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
12 explicit ClickableLabel(QWidget* parent = nullptr); |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
13 ~ClickableLabel(); |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
14 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
15 signals: |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
16 void clicked(); |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
17 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
18 protected: |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
19 void mousePressEvent(QMouseEvent*) override; |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
20 }; |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
21 |
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
22 #endif // __gui__widgets__clickable_label_h |