SendButtonIndicator.h 592 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SENDBUTTONINDICATOR_H
  2. #define SENDBUTTONINDICATOR_H
  3. #include <QDebug>
  4. #include <QLabel>
  5. #include <QPixmap>
  6. #include "MixerLine.h"
  7. #include "MixerView.h"
  8. class MixerLine;
  9. class MixerView;
  10. class SendButtonIndicator : public QLabel
  11. {
  12. public:
  13. SendButtonIndicator( QWidget * _parent, MixerLine * _owner,
  14. MixerView * _mv);
  15. void mousePressEvent( QMouseEvent * e ) override;
  16. void updateLightStatus();
  17. private:
  18. MixerLine * m_parent;
  19. MixerView * m_mv;
  20. static QPixmap * s_qpmOn;
  21. static QPixmap * s_qpmOff;
  22. FloatModel * getSendModel();
  23. };
  24. #endif // SENDBUTTONINDICATOR_H