225 const QRectF& canvasRect )
const
227 if ( !m_data->interval.
isValid() )
230 QPen
pen = m_data->pen;
231 pen.setCapStyle( Qt::FlatCap );
235 if ( m_data->orientation == Qt::Horizontal )
246 QRectF r( canvasRect.left(), y1, canvasRect.width(), y2 - y1 );
249 if ( ( m_data->brush.style() != Qt::NoBrush ) && ( y1 != y2 ) )
254 if ( m_data->pen.style() != Qt::NoPen )
256 painter->setPen( m_data->pen );
273 QRectF r( x1, canvasRect.top(), x2 - x1, canvasRect.height() );
276 if ( ( m_data->brush.style() != Qt::NoBrush ) && ( x1 != x2 ) )
281 if ( m_data->pen.style() != Qt::NoPen )
283 painter->setPen( m_data->pen );
static void drawLine(QPainter *, qreal x1, qreal y1, qreal x2, qreal y2)
Wrapper for QPainter::drawLine()
A class representing a text.