Browse Source

Changed QPointer connect to connect directly to it's ->data();

gcc 4.8 seems to have a problem with connections directly
to a QPointer.
also, cleared a unused call wich resulted in error on OSX

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
QGC4.4
Tomaz Canabrava 9 years ago
parent
commit
559f37f8a2
  1. 5
      src/ui/linechart/LinechartWidget.cc

5
src/ui/linechart/LinechartWidget.cc

@ -262,8 +262,8 @@ void LinechartWidget::createLayout() @@ -262,8 +262,8 @@ void LinechartWidget::createLayout()
timeButton->setToolTip(tr("Overwrite timestamp of data from vehicle with ground receive time. Helps if the plots are not visible because of missing or invalid onboard time."));
timeButton->setWhatsThis(tr("Overwrite timestamp of data from vehicle with ground receive time. Helps if the plots are not visible because of missing or invalid onboard time."));
hlayout->addWidget(timeButton);
connect(timeButton, &QCheckBox::clicked, activePlot, &LinechartPlot::enforceGroundTime);
connect(timeButton, &QCheckBox::clicked, this, &LinechartWidget::writeSettings);
connect(timeButton.data(), &QCheckBox::clicked, activePlot, &LinechartPlot::enforceGroundTime);
connect(timeButton.data(), &QCheckBox::clicked, this, &LinechartWidget::writeSettings);
hlayout->addStretch();
@ -615,7 +615,6 @@ void LinechartWidget::addCurve(const QString& curve, const QString& unit) @@ -615,7 +615,6 @@ void LinechartWidget::addCurve(const QString& curve, const QString& unit)
// Set stretch factors so that the label gets the whole space
plot;
// Load visibility settings
// TODO

Loading…
Cancel
Save