Fix song editor visualization after maximizing (#4698)

This commit is contained in:
Hyunjin Song
2018-11-07 13:41:03 +09:00
committed by GitHub
parent d8fb07ff52
commit 86f9a75d98
2 changed files with 11 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ public:
protected:
virtual void resizeEvent( QResizeEvent * event );
virtual void changeEvent( QEvent * );
protected slots:
void play();

View File

@@ -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();