Mercurial > minori
view include/gui/widgets/clickable_label.h @ 351:c844f8bb87ce
gui/theme: add xsettings backend
this also adds newly-necessary endianness methods in core/endian.h
which just so happen to be constexpr as well
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 14 Jul 2024 23:23:56 -0400 |
parents | b1f625b0227c |
children |
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_