GraphicsView - add Q_DECL_OVERRIDE to the manual rubber band test
This adds Q_DECL_OVERRIDE to the virtual functions in the test. Change-Id: If1b7646c9a6f50c6efe2d03d253bd8e0b4c09716 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Laszlo Papp <lpapp@kde.org>
This commit is contained in:
parent
32983c2027
commit
01b4b7f917
@ -49,7 +49,7 @@ public:
|
|||||||
setFlags(QGraphicsItem::ItemIsSelectable);
|
setFlags(QGraphicsItem::ItemIsSelectable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem * /* option*/, QWidget * /*widget*/)
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem * /* option*/, QWidget * /*widget*/) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
if (isSelected())
|
if (isSelected())
|
||||||
painter->fillRect(rect(), QColor(255, 0, 0));
|
painter->fillRect(rect(), QColor(255, 0, 0));
|
||||||
@ -68,7 +68,7 @@ public:
|
|||||||
connect(this, SIGNAL(rubberBandChanged(QRect, QPointF, QPointF)), this, SLOT(updateRubberbandInfo(QRect, QPointF, QPointF)));
|
connect(this, SIGNAL(rubberBandChanged(QRect, QPointF, QPointF)), this, SLOT(updateRubberbandInfo(QRect, QPointF, QPointF)));
|
||||||
}
|
}
|
||||||
protected:
|
protected:
|
||||||
void mouseMoveEvent(QMouseEvent *event)
|
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
QGraphicsView::mouseMoveEvent(event);
|
QGraphicsView::mouseMoveEvent(event);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user