Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot.cpp
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot.cpp
r8127 r9383 28 28 if ( on ) 29 29 { 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 ); 35 34 } 36 35 else 37 36 { 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 44 static void qwtSetTabOrder( 47 45 QWidget *first, QWidget *second, bool withChildren ) 48 46 { … … 196 194 QwtPlot invokes methods of the canvas as meta methods ( see QMetaObject ). 197 195 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 199 197 QWidget or QGLWidget. 200 198 … … 210 208 it is o.k. not to implement this method. 211 209 212 The default canvas is a QwtPlotCanvas 210 The default canvas is a QwtPlotCanvas 213 211 214 212 \param canvas Canvas Widget … … 317 315 } 318 316 319 /*! 317 /*! 320 318 \return true if the autoReplot option is set. 321 319 \sa setAutoReplot() … … 371 369 372 370 /*! 373 Change the text the footer 371 Change the text the footer 374 372 \param text New text of the footer 375 373 */ … … 384 382 385 383 /*! 386 Change the text the footer 384 Change the text the footer 387 385 \param text New text of the footer 388 386 */ … … 560 558 if ( d_data->canvas ) 561 559 { 562 const bool ok = QMetaObject::invokeMethod( 560 const bool ok = QMetaObject::invokeMethod( 563 561 d_data->canvas, "replot", Qt::DirectConnection ); 564 562 if ( !ok ) … … 724 722 getCanvasMarginsHint( maps, canvas()->contentsRect(), 725 723 margins[yLeft], margins[xTop], margins[yRight], margins[xBottom] ); 726 724 727 725 bool doUpdate = false; 728 726 for ( int axisId = 0; axisId < axisCnt; axisId++ ) … … 766 764 767 765 \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 770 768 fix the margins manually using QWidget::setContentsMargins() 771 769 */ … … 914 912 915 913 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 917 915 another legend is inserted. 918 916 … … 952 950 if ( d_data->legend ) 953 951 { 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>) ) 960 955 ); 961 956 … … 1088 1083 1089 1084 /*! 1090 \brief Attach/Detach a plot item 1085 \brief Attach/Detach a plot item 1091 1086 1092 1087 \param plotItem Plot item … … 1116 1111 if ( on ) 1117 1112 insertItem( plotItem ); 1118 else 1113 else 1119 1114 removeItem( plotItem ); 1120 1115 … … 1168 1163 that has bee generated from itemToInfo(). 1169 1164 1170 The default implementation simply tries to unwrap a QwtPlotItem 1165 The default implementation simply tries to unwrap a QwtPlotItem 1171 1166 pointer: 1172 1167
Note:
See TracChangeset
for help on using the changeset viewer.