mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
25 lines
481 B
C++
25 lines
481 B
C++
#ifndef QCLICKABLELABEL_H
|
|
#define QCLICKABLELABEL_H
|
|
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
#include <Qt>
|
|
|
|
class QClickableLabel : public QLabel {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QClickableLabel(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
|
|
~QClickableLabel();
|
|
|
|
signals:
|
|
void clicked();
|
|
void unclicked();
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent * event);
|
|
void mouseReleaseEvent(QMouseEvent * event);
|
|
|
|
};
|
|
|
|
#endif // CLICKABLELABEL_H
|