Blame view
SpeakersMonitor.h
553 Bytes
3f2992b2c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#ifndef SPEAKERSMONITOR_H #define SPEAKERSMONITOR_H #include <QWidget> #include <QMap> class SpeakersMonitor: public QWidget { Q_OBJECT public: SpeakersMonitor(int labelHeight = 10, QWidget *parent = 0); public slots: void speakersRetrieved(QList<QString> speakers); void positionChanged(qint64 position); protected: void paintEvent(QPaintEvent *event); private: QMap<QString, QList<qreal>> m_density; QMap<QString, QList<qreal>>::const_iterator m_it; qreal m_maxDensity; int m_labelHeight; int m_position; }; #endif |