24 lines
493 B
C++
24 lines
493 B
C++
#ifndef LOQGRAPHICSVIDEOITEM_H
|
|
#define LOQGRAPHICSVIDEOITEM_H
|
|
|
|
#include <QDebug>
|
|
#include <QPainter>
|
|
#include <QGraphicsVideoItem>
|
|
|
|
class LoQGraphicsVideoItem : public QGraphicsVideoItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit LoQGraphicsVideoItem(QGraphicsItem *parent = nullptr);
|
|
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private:
|
|
int m_painterCompositionMode;
|
|
};
|
|
|
|
#endif // LOQGRAPHICSVIDEOITEM_H
|