Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_histogram.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_histogram.cpp
r8127 r9383 123 123 /*! 124 124 Build and assign a pen 125 125 126 126 In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it 127 127 non cosmetic ( see QPen::isCosmetic() ). This method has been introduced 128 128 to hide this incompatibility. 129 129 130 130 \param color Pen color 131 131 \param width Pen width 132 132 \param style Pen style 133 133 134 134 \sa pen(), brush() 135 135 */ 136 136 void QwtPlotHistogram::setPen( const QColor &color, qreal width, Qt::PenStyle style ) 137 { 137 { 138 138 setPen( QPen( color, width, style ) ); 139 } 139 } 140 140 141 141 /*! … … 304 304 /*! 305 305 Assign a series of samples 306 306 307 307 setSamples() is just a wrapper for setData() without any additional 308 308 value - beside that it is easier to find for the developer. 309 309 310 310 \param data Data 311 311 \warning The item takes ownership of the data object, deleting 312 312 it when its not used anymore. 313 313 */ 314 void QwtPlotHistogram::setSamples( 314 void QwtPlotHistogram::setSamples( 315 315 QwtSeriesData<QwtIntervalSample> *data ) 316 316 { … … 333 333 void QwtPlotHistogram::drawSeries( QPainter *painter, 334 334 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 335 const QRectF &, int from, int to ) const 336 { 335 const QRectF &canvasRect, int from, int to ) const 336 { 337 Q_UNUSED( canvasRect ) 338 337 339 if ( !painter || dataSize() <= 0 ) 338 340 return; … … 676 678 A plain rectangle without pen using the brush() 677 679 678 \param index Index of the legend entry 680 \param index Index of the legend entry 679 681 ( ignored as there is only one ) 680 682 \param size Icon size 681 683 \return A graphic displaying the icon 682 684 683 685 \sa QwtPlotItem::setLegendIconSize(), QwtPlotItem::legendData() 684 686 */
Note:
See TracChangeset
for help on using the changeset viewer.