Mercurial > minori
view include/gui/widgets/clickable_label.h @ 278:c41c14ff8c67
dep/animone: x11: remove debugging comment
oops
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 22 Apr 2024 19:11:31 -0400 |
parents | 3ec7804abf17 |
children | b1f625b0227c |
line wrap: on
line source
#ifndef MINORI_GUI_WIDGETS_CLICKABLE_LABEL_H_ #define MINORI_GUI_WIDGETS_CLICKABLE_LABEL_H_ #include <QLabel> class ClickableLabel final : public QLabel { Q_OBJECT public: explicit ClickableLabel(QWidget* parent = nullptr); ~ClickableLabel(); signals: void clicked(); protected: void mousePressEvent(QMouseEvent*) override; }; #endif // MINORI_GUI_WIDGETS_CLICKABLE_LABEL_H_