|
|
|
@ -2594,6 +2594,17 @@ void ScopePart::updateMathTraceAllowedVoltsPerDivList(int traceno) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
qHeapSort(m_mathTraceAllowedVoltsDiv[traceno]);
|
|
|
|
|
if ((m_mathTraceAllowedVoltsDiv[traceno].count() > 0)
|
|
|
|
|
&& (m_mathOperator[traceno] == "Integral")) {
|
|
|
|
|
// Append a handful of larger volt/div settings
|
|
|
|
|
int vdiv = m_mathTraceAllowedVoltsDiv[traceno][m_mathTraceAllowedVoltsDiv[traceno].count()-1];
|
|
|
|
|
vdiv *= 10;
|
|
|
|
|
m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
|
|
|
|
|
vdiv *= 10;
|
|
|
|
|
m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
|
|
|
|
|
vdiv *= 10;
|
|
|
|
|
m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reset GUI if not set (e.g. after startup)
|
|
|
|
|
if ((m_mathVoltsDiv[traceno] == 0) && (m_mathTraceAllowedVoltsDiv[traceno].count() > 0)) {
|
|
|
|
|