view src/gui/widgets/clickable_label.cc @ 329:4aeffed717ef

dep/fmt: add dependency
author Paper <paper@paper.us.eu.org>
date Mon, 17 Jun 2024 04:54:44 -0400
parents b1f625b0227c
children
line wrap: on
line source

#include "gui/widgets/clickable_label.h"

ClickableLabel::ClickableLabel(QWidget* parent) : QLabel(parent) {
	setCursor(Qt::PointingHandCursor);
}

ClickableLabel::~ClickableLabel() {
}

void ClickableLabel::mousePressEvent(QMouseEvent*) {
	emit clicked();
}