42 void QgsPaperItem::paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget )
44 Q_UNUSED( itemStyle );
75 painter->drawLine( QPointF( currentXCoord, 0 ), QPointF( currentXCoord, rect().height() ) );
79 currentYCoord = minYCoord;
82 painter->drawLine( QPointF( 0, currentYCoord ), QPointF( rect().width(), currentYCoord ) );
88 painter->setPen( gridPen );
89 painter->setBrush( QBrush( gridPen.color() ) );
94 currentYCoord = minYCoord;
99 QRectF pieRect( currentXCoord - gridPen.widthF() / 2, currentYCoord - gridPen.widthF() / 2, gridPen.widthF(), gridPen.widthF() );
100 painter->drawChord( pieRect, 0, 5760 );
104 painter->drawLine( QPointF( currentXCoord - halfCrossLength, currentYCoord ), QPointF( currentXCoord + halfCrossLength, currentYCoord ) );
105 painter->drawLine( QPointF( currentXCoord, currentYCoord - halfCrossLength ), QPointF( currentXCoord, currentYCoord + halfCrossLength ) );
123 Q_UNUSED( itemElem );
130 setFlag( QGraphicsItem::ItemIsSelectable,
false );
131 setFlag( QGraphicsItem::ItemIsMovable,
false );