Commit 7f56a6f0 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile

parent d79c3cb1
......@@ -241,7 +241,7 @@ QImage Spectrogram::renderHUD(uint)
x = leftDist + (m_innerScopeRect.width() - 1) * ((float)hz) / m_freqMax;
// Hide text if it would overlap with the text drawn at the mouse position
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 20)) < (int) minDistX + 16
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (int)(leftDist + mouseX + 20)) < (int) minDistX + 16
&& mouseX < m_innerScopeRect.width() && mouseX >= 0;
if (x <= rightBorder) {
......@@ -268,7 +268,7 @@ QImage Spectrogram::renderHUD(uint)
}
// Draw the line at the very right (maximum frequency)
x = leftDist + m_innerScopeRect.width() - 1;
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 30)) < (int) minDistX
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && qAbs(x - (int)(leftDist + mouseX + 30)) < (int) minDistX
&& mouseX < m_innerScopeRect.width() && mouseX >= 0;
davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height() + 6);
if (!hideText) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment