{
if(painEllipses)
{
painter
->drawEllipse
(QPointF(m_iWidth
/2, m_iHeight
/2),
m_rCurrentLineDistance1, m_rCurrentLineDistance1);
painter
->drawEllipse
(QPointF(m_iWidth
/2, m_iHeight
/2),
m_rCurrentLineDistance2, m_rCurrentLineDistance2);
painter
->drawEllipse
(QPointF(m_iWidth
/2, m_iHeight
/2),
m_rCurrentLineDistance3, m_rCurrentLineDistance3);
}
}
void CFloorMagnet::paint ( QPainter * painter, const QStyleOptionGraphicsItem*
option, QWidget * widget)
{
if(painEllipses)
{
painter->drawEllipse(QPointF(m_iWidth/2, m_iHeight/2),
m_rCurrentLineDistance1, m_rCurrentLineDistance1);
painter->drawEllipse(QPointF(m_iWidth/2, m_iHeight/2),
m_rCurrentLineDistance2, m_rCurrentLineDistance2);
painter->drawEllipse(QPointF(m_iWidth/2, m_iHeight/2),
m_rCurrentLineDistance3, m_rCurrentLineDistance3);
}
QGraphicsPixmapItem::paint(painter, option, widget);
}
To copy to clipboard, switch view to plain text mode
Bookmarks