Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_barchart.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_barchart.cpp
r8127 r9383 22 22 { 23 23 } 24 24 25 25 ~PrivateData() 26 26 { … … 121 121 122 122 The bar chart will take the ownership of the symbol, hence the previously 123 set symbol will be delete by setting a new one. If \p symbol is 123 set symbol will be delete by setting a new one. If \p symbol is 124 124 \c NULL no symbol will be drawn. 125 125 … … 305 305 306 306 /*! 307 Draw a bar 307 Draw a bar 308 308 309 309 \param painter Painter … … 313 313 */ 314 314 void QwtPlotBarChart::drawBar( QPainter *painter, 315 int sampleIndex, const QPointF &sample, 315 int sampleIndex, const QPointF &sample, 316 316 const QwtColumnRect &rect ) const 317 317 { 318 const QwtColumnSymbol *specialSym = 318 const QwtColumnSymbol *specialSym = 319 319 specialSymbol( sampleIndex, sample ); 320 320 … … 330 330 { 331 331 // we build a temporary default symbol 332 QwtColumnSymbol sym( QwtColumnSymbol::Box );333 sym.setLineWidth( 1 );334 sym.setFrameStyle( QwtColumnSymbol::Plain );335 sym.draw( painter, rect );332 QwtColumnSymbol columnSymbol( QwtColumnSymbol::Box ); 333 columnSymbol.setLineWidth( 1 ); 334 columnSymbol.setFrameStyle( QwtColumnSymbol::Plain ); 335 columnSymbol.draw( painter, rect ); 336 336 } 337 337 … … 340 340 341 341 /*! 342 Needs to be overloaded to return a 342 Needs to be overloaded to return a 343 343 non default symbol for a specific sample 344 344 … … 348 348 \return NULL, indicating to use the default symbol 349 349 */ 350 QwtColumnSymbol *QwtPlotBarChart::specialSymbol( 350 QwtColumnSymbol *QwtPlotBarChart::specialSymbol( 351 351 int sampleIndex, const QPointF &sample ) const 352 352 { … … 429 429 displays the default symbol. 430 430 431 \param index Index of the legend entry 431 \param index Index of the legend entry 432 432 \param size Icon size 433 433 434 \sa setLegendMode(), drawBar(), 434 \sa setLegendMode(), drawBar(), 435 435 QwtPlotItem::setLegendIconSize(), QwtPlotItem::legendData() 436 436 */ 437 QwtGraphic QwtPlotBarChart::legendIcon( 437 QwtGraphic QwtPlotBarChart::legendIcon( 438 438 int index, const QSizeF &size ) const 439 439 { … … 453 453 if ( d_data->legendMode == QwtPlotBarChart::LegendBarTitles ) 454 454 barIndex = index; 455 455 456 456 drawBar( &painter, barIndex, QPointF(), column ); 457 457
Note:
See TracChangeset
for help on using the changeset viewer.