|
Lines 241-247
QImage Spectrogram::renderHUD(uint)
Link Here
|
| 241 |
x = leftDist + (m_innerScopeRect.width()-1) * ((float)hz)/m_freqMax; |
241 |
x = leftDist + (m_innerScopeRect.width()-1) * ((float)hz)/m_freqMax; |
| 242 |
|
242 |
|
| 243 |
// Hide text if it would overlap with the text drawn at the mouse position |
243 |
// Hide text if it would overlap with the text drawn at the mouse position |
| 244 |
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-(leftDist + mouseX + 20)) < (int) minDistX + 16 |
244 |
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-((int)leftDist + mouseX + 20)) < (int) minDistX + 16 |
| 245 |
&& mouseX < m_innerScopeRect.width() && mouseX >= 0; |
245 |
&& mouseX < m_innerScopeRect.width() && mouseX >= 0; |
| 246 |
|
246 |
|
| 247 |
if (x <= rightBorder) { |
247 |
if (x <= rightBorder) { |
|
Lines 269-275
QImage Spectrogram::renderHUD(uint)
Link Here
|
| 269 |
} |
269 |
} |
| 270 |
// Draw the line at the very right (maximum frequency) |
270 |
// Draw the line at the very right (maximum frequency) |
| 271 |
x = leftDist + m_innerScopeRect.width()-1; |
271 |
x = leftDist + m_innerScopeRect.width()-1; |
| 272 |
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-(leftDist + mouseX + 30)) < (int) minDistX |
272 |
hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-((int)leftDist + mouseX + 30)) < (int) minDistX |
| 273 |
&& mouseX < m_innerScopeRect.width() && mouseX >= 0; |
273 |
&& mouseX < m_innerScopeRect.width() && mouseX >= 0; |
| 274 |
davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height()+6); |
274 |
davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height()+6); |
| 275 |
if (!hideText) { |
275 |
if (!hideText) { |