summaryrefslogtreecommitdiff
path: root/qmap/mainwindow.cpp
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2024-01-01 11:39:59 -0800
committertony mancill <tmancill@debian.org>2024-01-01 11:39:59 -0800
commite90673af26fd12c1685c5528f1b4cfdd433553c6 (patch)
treee6f7bc67b3035c74b28c7e90cffe8feff73704a7 /qmap/mainwindow.cpp
parent94e13d3187f9ec4e4c7f1fdaf989c80a87b8aae7 (diff)
parentffea9660ba79a513401639a2f5d90e2fdc190fb8 (diff)
Update upstream source from tag 'upstream/2.7.0_rc3+repack'
Update to upstream version '2.7.0~rc3+repack' with Debian dir 9101bca1c16d979d1851d72d1d02e5b871ce863d
Diffstat (limited to 'qmap/mainwindow.cpp')
-rwxr-xr-xqmap/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qmap/mainwindow.cpp b/qmap/mainwindow.cpp
index e1b30207..4f33db6c 100755
--- a/qmap/mainwindow.cpp
+++ b/qmap/mainwindow.cpp
@@ -247,6 +247,7 @@ void MainWindow::writeSettings()
settings.setValue("PhaseX",(double)m_phasex);
settings.setValue("PhaseY",(double)m_phasey);
settings.setValue("MaxDrift",ui->sbMaxDrift->value());
+ settings.setValue("Offset",ui->sbOffset->value());
}
//---------------------------------------------------------- readSettings()
@@ -297,6 +298,7 @@ void MainWindow::readSettings()
m_NB=settings.value("NB",false).toBool();
ui->NBcheckBox->setChecked(m_NB);
ui->sbMaxDrift->setValue(settings.value("MaxDrift",0).toInt());
+ ui->sbOffset->setValue(settings.value("Offset",1500).toInt());
m_NBslider=settings.value("NBslider",40).toInt();
ui->NBslider->setValue(m_NBslider);
m_gainx=settings.value("GainX",1.0).toFloat();
@@ -857,6 +859,7 @@ void MainWindow::decode() //decode()
datcom_.nmode=10*m_modeQ65;
datcom_.nsave=m_nsave;
datcom_.max_drift=ui->sbMaxDrift->value();
+ datcom_.offset=ui->sbOffset->value();
datcom_.ndepth=1;
if(datcom_.nagain==1) datcom_.ndepth=3;