view include/gui/widgets/clickable_label.h @ 81:9b2b41f83a5e

boring: mass rename to cc because this is a very unix-y project, it makes more sense to use the 'cc' extension
author Paper <mrpapersonic@gmail.com>
date Mon, 23 Oct 2023 12:07:27 -0400
parents 442065432549
children c69230dc2b5d
line wrap: on
line source

#ifndef __gui__widgets__clickable_label_h
#define __gui__widgets__clickable_label_h

#include <QLabel>

class QWidget;

class ClickableLabel : public QLabel {
		Q_OBJECT

	public:
		explicit ClickableLabel(QWidget* parent = nullptr);
		~ClickableLabel();

	signals:
		void clicked();

	protected:
		void mousePressEvent(QMouseEvent*) override;
};

#endif // __gui__widgets__clickable_label_h