qpushablelabel.h 403 B

12345678910111213141516171819202122
  1. #ifndef QPUSHABLELABEL_H
  2. #define QPUSHABLELABEL_H
  3. #include <QLabel>
  4. #include <QWidget>
  5. #include <Qt>
  6. class QPushableLabel : public QLabel {
  7. Q_OBJECT
  8. public:
  9. explicit QPushableLabel(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
  10. ~QPushableLabel();
  11. signals:
  12. void clicked();
  13. protected:
  14. void mousePressEvent(QMouseEvent* event);
  15. };
  16. #endif // QPUSHABLELABEL_H