Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_svgitem.cpp


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_svgitem.cpp

    r4621 r8127  
    1010#include "qwt_plot_svgitem.h"
    1111#include "qwt_scale_map.h"
    12 #include "qwt_legend.h"
    13 #include "qwt_legend_item.h"
    1412#include "qwt_painter.h"
    1513#include <qpainter.h>
     
    6664{
    6765    d_data = new PrivateData();
     66    d_data->boundingRect = QwtPlotItem::boundingRect();
    6867
    6968    setItemAttribute( QwtPlotItem::AutoScale, true );
     
    9291    d_data->boundingRect = rect;
    9392    const bool ok = d_data->renderer.load( fileName );
     93
     94    legendChanged();
    9495    itemChanged();
     96
    9597    return ok;
    9698}
     
    109111    d_data->boundingRect = rect;
    110112    const bool ok = d_data->renderer.load( data );
     113
     114    legendChanged();
    111115    itemChanged();
     116
    112117    return ok;
    113118}
    114119
    115 //! Bounding rect of the item
     120//! Bounding rectangle of the item
    116121QRectF QwtPlotSvgItem::boundingRect() const
    117122{
     
    161166
    162167  \param painter Painter
    163   \param viewBox View Box, see QSvgRenderer::viewBox
    164   \param rect Traget rectangle on the paint device
     168  \param viewBox View Box, see QSvgRenderer::viewBox()
     169  \param rect Target rectangle on the paint device
    165170*/
    166171void QwtPlotSvgItem::render( QPainter *painter,
     
    185190
    186191/*!
    187   Calculate the viewBox from an rect and boundingRect().
     192  Calculate the view box from rect and boundingRect().
    188193
    189194  \param rect Rectangle in scale coordinates
    190   \return viewBox View Box, see QSvgRenderer::viewBox
     195  \return View box, see QSvgRenderer::viewBox()
    191196*/
    192197QRectF QwtPlotSvgItem::viewBox( const QRectF &rect ) const
Note: See TracChangeset for help on using the changeset viewer.