From 0e8685a016c3837e975254dd231a1a1cf676d58b Mon Sep 17 00:00:00 2001 From: jotpio Date: Tue, 2 Mar 2021 17:10:42 +0100 Subject: [PATCH 1/2] set to use own BST::trackedcomponentsfactory and not the utility one fixes incomplete header in output files --- Src/BioTrackerPlugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/BioTrackerPlugin.cpp b/Src/BioTrackerPlugin.cpp index c3e52bb..a307d26 100644 --- a/Src/BioTrackerPlugin.cpp +++ b/Src/BioTrackerPlugin.cpp @@ -7,7 +7,8 @@ #include "Config.h" #include "View/TrackedElementView.h" -#include "Utility/TrackedComponents/TrackedComponentFactory.h" +// #include "Utility/TrackedComponents/TrackedComponentFactory.h" +#include "Model/TrackedComponents/TrackedComponentFactory.h" BioTrackerPlugin::BioTrackerPlugin() { } @@ -31,7 +32,7 @@ IModel* BioTrackerPlugin::getTrackerComponentModel() { } IModelTrackedComponentFactory *BioTrackerPlugin::getComponentFactory() { - return new TrackedComponentFactory(); + return new BST::TrackedComponentFactory(); } void BioTrackerPlugin::createPlugin() { From a6584326c2d28a578893957ea01c2317b563ef71 Mon Sep 17 00:00:00 2001 From: jotpio Date: Thu, 18 Mar 2021 21:11:15 +0100 Subject: [PATCH 2/2] changing send image no updates view immediately --- Src/View/TrackerParameterView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Src/View/TrackerParameterView.cpp b/Src/View/TrackerParameterView.cpp index c1d9a43..5e67640 100644 --- a/Src/View/TrackerParameterView.cpp +++ b/Src/View/TrackerParameterView.cpp @@ -35,6 +35,9 @@ void TrackerParameterView::on_comboBoxSendImage_currentIndexChanged(int v) { TrackerParameter *parameter = qobject_cast(getModel()); parameter->setSendImage(v); parameter->setNewSelection(_ui->comboBoxSendImage->currentText().toStdString()); + + //trigger retracking to send to main app + Q_EMIT parametersChanged(); }