Skip to content

Commit

Permalink
iio-widgets: add missing connections for the conversion functions.
Browse files Browse the repository at this point in the history
Signed-off-by: AlexandraTrifan <[email protected]>
  • Loading branch information
AlexandraTrifan authored and adisuciu committed Sep 6, 2024
1 parent 0651300 commit c562ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iio-widgets/src/iiowidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand All @@ -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)));
Expand Down

0 comments on commit c562ab9

Please sign in to comment.