comparison src/gui/widgets/clickable_label.cc @ 81:9b2b41f83a5e

boring: mass rename to cc because this is a very unix-y project, it makes more sense to use the 'cc' extension
author Paper <mrpapersonic@gmail.com>
date Mon, 23 Oct 2023 12:07:27 -0400
parents src/gui/widgets/clickable_label.cpp@442065432549
children 4d461ef7d424
comparison
equal deleted inserted replaced
80:825506f0e221 81:9b2b41f83a5e
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"