5 return( m_overlayPos );
10 m_overlayPen = QPen( Qt::green );
11 m_overlayPos = QPointF( -1, -1 );
15 m_overlayPen = overlayPen;
35 painter->setRenderHint( QPainter::Antialiasing );
36 painter->setPen( m_overlayPen );
38 painter->drawLine( m_overlayPos.x( ), 0, m_overlayPos.x( ), height( ) );
39 painter->drawLine( 0, m_overlayPos.y( ), width( ), m_overlayPos.y( ) );
41 QGraphicsScene::drawForeground( painter, rect );
void setOverlayPen(const QPen &overlayPen)
void drawForeground(QPainter *painter, const QRectF &rect)
void setOverlayPos(QPointF pos)
GraphicsScene(QObject *parent=0)
QPointF overlayPos() const
void setOverlay(bool overlay)