Fix song editor visualization after maximizing (#4698)
This commit is contained in:
@@ -155,6 +155,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent( QResizeEvent * event );
|
||||
virtual void changeEvent( QEvent * );
|
||||
|
||||
protected slots:
|
||||
void play();
|
||||
|
||||
@@ -723,6 +723,16 @@ void SongEditorWindow::resizeEvent(QResizeEvent *event)
|
||||
}
|
||||
|
||||
|
||||
void SongEditorWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
QWidget::changeEvent(event);
|
||||
if (event->type() == QEvent::WindowStateChange)
|
||||
{
|
||||
m_editor->realignTracks();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SongEditorWindow::play()
|
||||
{
|
||||
emit playTriggered();
|
||||
|
||||
Reference in New Issue
Block a user