From c1fe2facd05c193801564a4c707cc7e6a009e06e Mon Sep 17 00:00:00 2001 From: AlexandraTrifan Date: Thu, 5 Sep 2024 15:49:38 +0300 Subject: [PATCH] iio-widgets: add missing connections for the conversion functions. Signed-off-by: AlexandraTrifan --- iio-widgets/src/iiowidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iio-widgets/src/iiowidget.cpp b/iio-widgets/src/iiowidget.cpp index 5b2e78b7dd..04b62808e2 100644 --- a/iio-widgets/src/iiowidget.cpp +++ b/iio-widgets/src/iiowidget.cpp @@ -54,7 +54,8 @@ IIOWidget::IIOWidget(GuiStrategyInterface *uiStrategy, DataStrategyInterface *da uiStrategyObject->setParent(this); dataStrategyObject->setParent(this); - connect(m_progressBar, &SmallProgressBar::progressFinished, this, [this]() { this->saveData(m_lastData); }); + connect(m_progressBar, &SmallProgressBar::progressFinished, this, + [this]() { this->convertUItoDS(m_lastData); }); connect(uiStrategyObject, SIGNAL(emitData(QString)), this, SLOT(startTimer(QString))); @@ -65,8 +66,7 @@ IIOWidget::IIOWidget(GuiStrategyInterface *uiStrategy, DataStrategyInterface *da connect(uiStrategyObject, SIGNAL(requestData()), dataStrategyObject, SLOT(readAsync())); // forward data from data strategy to ui strategy - connect(dataStrategyObject, SIGNAL(sendData(QString, QString)), uiStrategyObject, - SLOT(receiveData(QString, QString))); + connect(dataStrategyObject, SIGNAL(sendData(QString, QString)), this, SLOT(convertDStoUI(QString, QString))); // intercept the sendData from dataStrategy to collect information connect(dataStrategyObject, SIGNAL(sendData(QString, QString)), this, SLOT(storeReadInfo(QString, QString)));