21 return ( d1 >= d2 ) || qFuzzyCompare( d1, d2 );
284 const QRectF& canvasRect )
const
288 minorPen.setCapStyle( Qt::FlatCap );
294 drawLines( painter, canvasRect, Qt::Vertical, xMap,
296 drawLines( painter, canvasRect, Qt::Vertical, xMap,
302 drawLines( painter, canvasRect, Qt::Horizontal, yMap,
304 drawLines( painter, canvasRect, Qt::Horizontal, yMap,
310 majorPen.setCapStyle( Qt::FlatCap );
316 drawLines( painter, canvasRect, Qt::Vertical, xMap,
322 drawLines( painter, canvasRect, Qt::Horizontal, yMap,
328 Qt::Orientation orientation,
const QwtScaleMap& scaleMap,
331 const double x1 = canvasRect.left();
332 const double x2 = canvasRect.right() - 1.0;
333 const double y1 = canvasRect.top();
334 const double y2 = canvasRect.bottom() - 1.0;
338 for (
int i = 0; i < values.count(); i++ )
340 double value = scaleMap.
transform( values[i] );
342 value = qRound( value );
344 if ( orientation == Qt::Horizontal )