Clip the Meter Widgets to the visible portion of the Video Window (#3462)

When the video widget is scrolled, the MeterWidget windows appeared on
top of the Main Window user interface. Now the visible portion of the
Video Window is tracked and used as a clipping region. This avoids
blocking the controls on bottom toolbar.
This commit is contained in:
Michel Dagenais
2020-05-26 13:56:11 -04:00
committed by GitHub
parent 4f64b88f0f
commit 0352e19e34
3 changed files with 15 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ void VideoLayoutParser::SetDefaultValues()
meterWidget->m_BackgroundColor = QColor(100,100,100,0);
meterWidget->m_MainFont = QFont(meterWidget->font().family(), 64);
meterWidget->m_AltFont = QFont(meterWidget->font().family(), 48);
meterWidget->m_VideoContainer = VideoContainer;
}
}