view include/gui/widgets/clickable_label.h @ 367:8d45d892be88 default tip

*: instead of pugixml, use Qt XML features this means we have one extra Qt dependency though...
author Paper <paper@tflc.us>
date Sun, 17 Nov 2024 22:55:47 -0500
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_