Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/SongEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class SongEditorWindow : public Editor

protected:
virtual void resizeEvent( QResizeEvent * event );
virtual void changeEvent( QEvent * );

protected slots:
void play();
Expand Down
10 changes: 10 additions & 0 deletions src/gui/editors/SongEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down