summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/curve-config.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-09 00:08:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-09 00:08:27 +0200
commitcdd9a365e08e6fdd0d44199c39d990a46df563e0 (patch)
tree9197835d1187fb753e211181afe8dea073dc6776 /facetracknoir/curve-config.cpp
parent41014a32a3597784f29e9718cb5e665511549e1c (diff)
fix: Reset the view zero pos on start
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir/curve-config.cpp')
-rw-r--r--facetracknoir/curve-config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/facetracknoir/curve-config.cpp b/facetracknoir/curve-config.cpp
index 1bb40078..36caa5c0 100644
--- a/facetracknoir/curve-config.cpp
+++ b/facetracknoir/curve-config.cpp
@@ -161,6 +161,15 @@ void CurveConfigurationDialog::loadSettings() {
ui.tz_altp
};
+ QDoubleSpinBox* widgets3[] = {
+ ui.pos_tx,
+ ui.pos_ty,
+ ui.pos_tz,
+ ui.pos_tx,
+ ui.pos_ry,
+ ui.pos_rz
+ };
+
for (int i = 0; i < 6; i++)
{
configs[i]->setConfig(&mainApp->axis(i).curve, currentFile);
@@ -170,6 +179,7 @@ void CurveConfigurationDialog::loadSettings() {
connect(configs[i], SIGNAL(CurveChanged(bool)), this, SLOT(curveChanged(bool)), Qt::UniqueConnection);
connect(alt_configs[i], SIGNAL(CurveChanged(bool)), this, SLOT(curveChanged(bool)), Qt::UniqueConnection);
connect(checkboxes[i], SIGNAL(stateChanged(int)), this, SLOT(curveChanged(int)), Qt::UniqueConnection);
+ mainApp->axis(i).zero = widgets3[i]->value();
}
settingsDirty = false;