view include/gui/widgets/clickable_label.h @ 343:1faa72660932

*: transfer back to cmake from autotools autotools just made lots of things more complicated than they should have and many things broke (i.e. translations)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 05:56:06 -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_