Mercurial > minori
diff 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 | 
line wrap: on
 line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gui/widgets/clickable_label.cc Mon Oct 23 12:07:27 2023 -0400 @@ -0,0 +1,16 @@ +#include "gui/widgets/clickable_label.h" +/* NOTE: this can likely be moved to poster.cpp, as + it's really the only place this will ever be used */ + +ClickableLabel::ClickableLabel(QWidget* parent) : QLabel(parent) { + setCursor(Qt::PointingHandCursor); +} + +ClickableLabel::~ClickableLabel() { +} + +void ClickableLabel::mousePressEvent(QMouseEvent*) { + emit clicked(); +} + +#include "gui/widgets/moc_clickable_label.cpp"
