diff --git a/wfmain.cpp b/wfmain.cpp
index 0bd5090..1f8016f 100644
--- a/wfmain.cpp
+++ b/wfmain.cpp
@@ -915,6 +915,12 @@ void wfmain::setUIToPrefs()
on_drawPeakChk_clicked(prefs.drawPeaks);
drawPeaks = prefs.drawPeaks;
+ ui->wfAntiAliasChk->setChecked(prefs.wfAntiAlias);
+ on_wfAntiAliasChk_clicked(prefs.wfAntiAlias);
+
+ ui->wfInterpolateChk->setChecked(prefs.wfInterpolate);
+ on_wfInterpolateChk_clicked(prefs.wfInterpolate);
+
ui->wfLengthSlider->setValue(prefs.wflength);
prepareWf(prefs.wflength);
@@ -1182,6 +1188,8 @@ void wfmain::setDefPrefs()
defPrefs.useDarkMode = true;
defPrefs.useSystemTheme = false;
defPrefs.drawPeaks = true;
+ defPrefs.wfAntiAlias = false;
+ defPrefs.wfInterpolate = true;
defPrefs.stylesheetPath = QString("qdarkstyle/style.qss");
defPrefs.radioCIVAddr = 0x00; // previously was 0x94 for 7300.
defPrefs.serialPortRadio = QString("auto");
@@ -1203,7 +1211,6 @@ void wfmain::setDefPrefs()
udpDefPrefs.username = QString("");
udpDefPrefs.password = QString("");
udpDefPrefs.clientName = QHostInfo::localHostName();
-
}
void wfmain::loadSettings()
@@ -1218,6 +1225,8 @@ void wfmain::loadSettings()
prefs.useSystemTheme = settings->value("UseSystemTheme", defPrefs.useSystemTheme).toBool();
prefs.wftheme = settings->value("WFTheme", defPrefs.wftheme).toInt();
prefs.drawPeaks = settings->value("DrawPeaks", defPrefs.drawPeaks).toBool();
+ prefs.wfAntiAlias = settings->value("WFAntiAlias", defPrefs.wfAntiAlias).toBool();
+ prefs.wfInterpolate = settings->value("WFInterpolate", defPrefs.wfInterpolate).toBool();
prefs.wflength = (unsigned int) settings->value("WFLength", defPrefs.wflength).toInt();
prefs.stylesheetPath = settings->value("StylesheetPath", defPrefs.stylesheetPath).toString();
ui->splitter->restoreState(settings->value("splitter").toByteArray());
@@ -1510,6 +1519,8 @@ void wfmain::saveSettings()
settings->setValue("UseSystemTheme", prefs.useSystemTheme);
settings->setValue("UseDarkMode", prefs.useDarkMode);
settings->setValue("DrawPeaks", prefs.drawPeaks);
+ settings->setValue("WFAntiAlias", prefs.wfAntiAlias);
+ settings->setValue("WFInterpolate", prefs.wfInterpolate);
settings->setValue("WFTheme", prefs.wftheme);
settings->setValue("StylesheetPath", prefs.stylesheetPath);
settings->setValue("splitter", ui->splitter->saveState());
@@ -5082,12 +5093,13 @@ void wfmain::on_pollingBtn_clicked()
void wfmain::on_wfAntiAliasChk_clicked(bool checked)
{
colorMap->setAntialiased(checked);
-
+ prefs.wfAntiAlias = checked;
}
void wfmain::on_wfInterpolateChk_clicked(bool checked)
{
colorMap->setInterpolate(checked);
+ prefs.wfInterpolate = checked;
}
// --- DEBUG FUNCTION ---
diff --git a/wfmain.h b/wfmain.h
index 81783ea..1ebcc50 100644
--- a/wfmain.h
+++ b/wfmain.h
@@ -682,6 +682,8 @@ private:
bool useDarkMode;
bool useSystemTheme;
bool drawPeaks;
+ bool wfAntiAlias;
+ bool wfInterpolate;
QString stylesheetPath;
unsigned char radioCIVAddr;
QString serialPortRadio;
diff --git a/wfmain.ui b/wfmain.ui
index fff8ba8..5e59588 100644
--- a/wfmain.ui
+++ b/wfmain.ui
@@ -2063,6 +2063,9 @@
Interpolate Waterfall
+
+ true
+
-