Mercurial > minori
diff include/gui/widgets/clickable_label.h @ 301:b1f625b0227c
*: convert all files CRLF -> LF
some files were in DOS format, others were in unix. now everything
(that at least is under our control) should all be the same format
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 15:04:51 -0400 |
parents | 3ec7804abf17 |
children |
line wrap: on
line diff
--- a/include/gui/widgets/clickable_label.h Mon May 13 14:56:37 2024 -0400 +++ b/include/gui/widgets/clickable_label.h Mon May 13 15:04:51 2024 -0400 @@ -1,20 +1,20 @@ -#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_ +#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_