Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_shapeitem.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_shapeitem.cpp
r8127 r9383 208 208 \sa setShape(), setPolygon(), shape() 209 209 */ 210 void QwtPlotShapeItem::setRect( const QRectF &rect ) 210 void QwtPlotShapeItem::setRect( const QRectF &rect ) 211 211 { 212 212 QPainterPath path; … … 263 263 } 264 264 265 /*! 265 /*! 266 266 Build and assign a pen 267 267 268 268 In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it 269 269 non cosmetic ( see QPen::isCosmetic() ). This method has been introduced 270 270 to hide this incompatibility. 271 271 272 272 \param color Pen color 273 273 \param width Pen width 274 274 \param style Pen style 275 275 276 276 \sa pen(), brush() 277 */ 277 */ 278 278 void QwtPlotShapeItem::setPen( const QColor &color, qreal width, Qt::PenStyle style ) 279 { 279 { 280 280 setPen( QPen( color, width, style ) ); 281 281 } … … 336 336 \brief Set the tolerance for the weeding optimization 337 337 338 After translating the shape into target device coordinate 338 After translating the shape into target device coordinate 339 339 ( usually widget geometries ) the painter path can be simplified 340 340 by a point weeding algorithm ( Douglas-Peucker ). … … 384 384 return; 385 385 386 if ( d_data->pen.style() == Qt::NoPen 386 if ( d_data->pen.style() == Qt::NoPen 387 387 && d_data->brush.style() == Qt::NoBrush ) 388 388 { … … 404 404 const bool doAlign = QwtPainter::roundingAlignment( painter ); 405 405 406 QPainterPath path = qwtTransformPath( xMap, yMap, 406 QPainterPath path = qwtTransformPath( xMap, yMap, 407 407 d_data->shape, doAlign ); 408 408 … … 451 451 \return A rectangle filled with the color of the brush ( or the pen ) 452 452 453 \param index Index of the legend entry 453 \param index Index of the legend entry 454 454 ( usually there is only one ) 455 455 \param size Icon size
Note:
See TracChangeset
for help on using the changeset viewer.