Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot.cpp


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

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

    r8127 r9383  
    2828    if ( on )
    2929    {
    30         QObject::connect(
    31             plot, SIGNAL( legendDataChanged(
    32                 const QVariant &, const QList<QwtLegendData> & ) ),
    33             plot, SLOT( updateLegendItems(
    34                 const QVariant &, const QList<QwtLegendData> & ) ) );
     30        QObject::connect(
     31            plot, SIGNAL(legendDataChanged(QVariant,QList<QwtLegendData>)),
     32            plot, SLOT(updateLegendItems(QVariant,QList<QwtLegendData>))
     33        );
    3534    }
    3635    else
    3736    {
    38         QObject::disconnect(
    39             plot, SIGNAL( legendDataChanged(
    40                 const QVariant &, const QList<QwtLegendData> & ) ),
    41             plot, SLOT( updateLegendItems(
    42                 const QVariant &, const QList<QwtLegendData> & ) ) );
    43     }
    44 }
    45 
    46 static void qwtSetTabOrder(
     37        QObject::disconnect(
     38            plot, SIGNAL(legendDataChanged(QVariant,QList<QwtLegendData>) ),
     39            plot, SLOT( updateLegendItems(QVariant,QList<QwtLegendData>))
     40        );
     41    }
     42}
     43
     44static void qwtSetTabOrder(
    4745    QWidget *first, QWidget *second, bool withChildren )
    4846{
     
    196194  QwtPlot invokes methods of the canvas as meta methods ( see QMetaObject ).
    197195  In opposite to using conventional C++ techniques like virtual methods
    198   they allow to use canvas implementations that are derived from 
     196  they allow to use canvas implementations that are derived from
    199197  QWidget or QGLWidget.
    200198
     
    210208    it is o.k. not to implement this method.
    211209
    212   The default canvas is a QwtPlotCanvas 
     210  The default canvas is a QwtPlotCanvas
    213211
    214212  \param canvas Canvas Widget
     
    317315}
    318316
    319 /*! 
     317/*!
    320318  \return true if the autoReplot option is set.
    321319  \sa setAutoReplot()
     
    371369
    372370/*!
    373   Change the text the footer 
     371  Change the text the footer
    374372  \param text New text of the footer
    375373*/
     
    384382
    385383/*!
    386   Change the text the footer 
     384  Change the text the footer
    387385  \param text New text of the footer
    388386*/
     
    560558    if ( d_data->canvas )
    561559    {
    562         const bool ok = QMetaObject::invokeMethod( 
     560        const bool ok = QMetaObject::invokeMethod(
    563561            d_data->canvas, "replot", Qt::DirectConnection );
    564562        if ( !ok )
     
    724722    getCanvasMarginsHint( maps, canvas()->contentsRect(),
    725723        margins[yLeft], margins[xTop], margins[yRight], margins[xBottom] );
    726    
     724
    727725    bool doUpdate = false;
    728726    for ( int axisId = 0; axisId < axisCnt; axisId++ )
     
    766764
    767765  \note Usually canvasRect is contentsRect() of the plot canvas.
    768         Due to a bug in Qt this rectangle might be wrong for certain 
    769         frame styles ( f.e QFrame::Box ) and it might be necessary to 
     766        Due to a bug in Qt this rectangle might be wrong for certain
     767        frame styles ( f.e QFrame::Box ) and it might be necessary to
    770768        fix the margins manually using QWidget::setContentsMargins()
    771769*/
     
    914912
    915913  insertLegend() will set the plot widget as parent for the legend.
    916   The legend will be deleted in the destructor of the plot or when 
     914  The legend will be deleted in the destructor of the plot or when
    917915  another legend is inserted.
    918916
     
    952950        if ( d_data->legend )
    953951        {
    954             connect( this,
    955                 SIGNAL( legendDataChanged(
    956                     const QVariant &, const QList<QwtLegendData> & ) ),
    957                 d_data->legend,
    958                 SLOT( updateLegend(
    959                     const QVariant &, const QList<QwtLegendData> & ) )
     952            connect(
     953                this, SIGNAL(legendDataChanged(QVariant,QList<QwtLegendData>)),
     954                d_data->legend, SLOT(updateLegend(QVariant,QList<QwtLegendData>) )
    960955            );
    961956
     
    10881083
    10891084/*!
    1090   \brief Attach/Detach a plot item 
     1085  \brief Attach/Detach a plot item
    10911086
    10921087  \param plotItem Plot item
     
    11161111    if ( on )
    11171112        insertItem( plotItem );
    1118     else 
     1113    else
    11191114        removeItem( plotItem );
    11201115
     
    11681163         that has bee generated from itemToInfo().
    11691164
    1170   The default implementation simply tries to unwrap a QwtPlotItem 
     1165  The default implementation simply tries to unwrap a QwtPlotItem
    11711166  pointer:
    11721167
Note: See TracChangeset for help on using the changeset viewer.