if after a resize of the main window a vertical scroll bar is required, make sure that the fader label is visible (scroll down completely)

This commit is contained in:
Volker Fischer 2020-05-20 21:21:22 +02:00
parent 98aecb1d26
commit f580215605
2 changed files with 10 additions and 0 deletions

View file

@ -692,6 +692,14 @@ void CAudioMixerBoard::SetPanIsSupported()
}
}
void CAudioMixerBoard::resizeEvent ( QResizeEvent* event )
{
// if after a resize of the main window a vertical scroll bar is required, make
// sure that the fader label is visible (scroll down completely)
ensureVisible ( 0, 2000 ); // use a large value here
QScrollArea::resizeEvent ( event );
}
void CAudioMixerBoard::HideAll()
{
// make all controls invisible

View file

@ -158,6 +158,8 @@ public:
int iNewClientFaderLevel;
protected:
void resizeEvent ( QResizeEvent* event );
bool GetStoredFaderSettings ( const CChannelInfo& ChanInfo,
int& iStoredFaderLevel,
int& iStoredPanValue,