created timeline ghost display class
This commit is contained in:
@@ -20,7 +20,11 @@
|
|||||||
|
|
||||||
#include "timelineviewghostitem.h"
|
#include "timelineviewghostitem.h"
|
||||||
|
|
||||||
TimelineViewGhostItem::TimelineViewGhostItem()
|
#include <QPainter>
|
||||||
{
|
|
||||||
|
|
||||||
|
TimelineViewGhostItem::TimelineViewGhostItem(QGraphicsItem *parent) :
|
||||||
|
QGraphicsRectItem(parent)
|
||||||
|
{
|
||||||
|
setBrush(Qt::NoBrush);
|
||||||
|
setPen(QPen(Qt::yellow, 2));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,10 @@
|
|||||||
class TimelineViewGhostItem : public QGraphicsRectItem
|
class TimelineViewGhostItem : public QGraphicsRectItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TimelineViewGhostItem();
|
TimelineViewGhostItem(QGraphicsItem* parent = nullptr);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
// virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TIMELINEVIEWGHOSTITEM_H
|
#endif // TIMELINEVIEWGHOSTITEM_H
|
||||||
|
|||||||
Reference in New Issue
Block a user