Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_svgitem.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_svgitem.cpp
r4621 r8127 10 10 #include "qwt_plot_svgitem.h" 11 11 #include "qwt_scale_map.h" 12 #include "qwt_legend.h"13 #include "qwt_legend_item.h"14 12 #include "qwt_painter.h" 15 13 #include <qpainter.h> … … 66 64 { 67 65 d_data = new PrivateData(); 66 d_data->boundingRect = QwtPlotItem::boundingRect(); 68 67 69 68 setItemAttribute( QwtPlotItem::AutoScale, true ); … … 92 91 d_data->boundingRect = rect; 93 92 const bool ok = d_data->renderer.load( fileName ); 93 94 legendChanged(); 94 95 itemChanged(); 96 95 97 return ok; 96 98 } … … 109 111 d_data->boundingRect = rect; 110 112 const bool ok = d_data->renderer.load( data ); 113 114 legendChanged(); 111 115 itemChanged(); 116 112 117 return ok; 113 118 } 114 119 115 //! Bounding rect of the item120 //! Bounding rectangle of the item 116 121 QRectF QwtPlotSvgItem::boundingRect() const 117 122 { … … 161 166 162 167 \param painter Painter 163 \param viewBox View Box, see QSvgRenderer::viewBox 164 \param rect T raget rectangle on the paint device168 \param viewBox View Box, see QSvgRenderer::viewBox() 169 \param rect Target rectangle on the paint device 165 170 */ 166 171 void QwtPlotSvgItem::render( QPainter *painter, … … 185 190 186 191 /*! 187 Calculate the view Box from anrect and boundingRect().192 Calculate the view box from rect and boundingRect(). 188 193 189 194 \param rect Rectangle in scale coordinates 190 \return viewBox View Box, see QSvgRenderer::viewBox195 \return View box, see QSvgRenderer::viewBox() 191 196 */ 192 197 QRectF QwtPlotSvgItem::viewBox( const QRectF &rect ) const
Note:
See TracChangeset
for help on using the changeset viewer.