From 559f37f8a291ea95d487a282578693f74b5019fc Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 5 Jan 2016 16:44:57 -0200 Subject: [PATCH] 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 --- src/ui/linechart/LinechartWidget.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/linechart/LinechartWidget.cc b/src/ui/linechart/LinechartWidget.cc index 3c371e009..e22c85a35 100644 --- a/src/ui/linechart/LinechartWidget.cc +++ b/src/ui/linechart/LinechartWidget.cc @@ -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) // Set stretch factors so that the label gets the whole space -plot; // Load visibility settings // TODO -- 2.22.0