comparison src/gui/widgets/clickable_label.cpp @ 67:442065432549

poster: make posters link to AniList
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 07:06:44 -0400
parents
children
comparison
equal deleted inserted replaced
66:6481c5aed3e1 67:442065432549
1 #include "gui/widgets/clickable_label.h"
2 /* NOTE: this can likely be moved to poster.cpp, as
3 it's really the only place this will ever be used */
4
5 ClickableLabel::ClickableLabel(QWidget* parent) : QLabel(parent) {
6 setCursor(Qt::PointingHandCursor);
7 }
8
9 ClickableLabel::~ClickableLabel() {
10 }
11
12 void ClickableLabel::mousePressEvent(QMouseEvent*) {
13 emit clicked();
14 }
15
16 #include "gui/widgets/moc_clickable_label.cpp"