view include/gui/widgets/clickable_label.h @ 406:31ce85df55a8 default tip

filesystem: add mac os x directory watcher this code is incredibly stinky tbh we should probably be using C++ threads everywhere else just because they are SO much easier to code for than the shitty Qt threads API
author Paper <paper@tflc.us>
date Mon, 19 Jan 2026 22:48:56 -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_