fixes position marker height on startup (#3587)
Fixes position marker height on startup
This commit is contained in:
committed by
Tres Finocchiaro
parent
1f66f62ed7
commit
cee68c773e
@@ -586,6 +586,14 @@ void SongEditor::updatePosition( const MidiTime & t )
|
||||
|
||||
|
||||
|
||||
void SongEditor::updatePositionLine()
|
||||
{
|
||||
m_positionLine->setFixedHeight( height() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void SongEditor::zoomingChanged()
|
||||
{
|
||||
setPixelsPerTact( m_zoomLevels[m_zoomingModel->value()] * DEFAULT_PIXELS_PER_TACT );
|
||||
@@ -697,6 +705,7 @@ SongEditorWindow::SongEditorWindow(Song* song) :
|
||||
zoomToolBar->addWidget( m_zoomingComboBox );
|
||||
|
||||
connect(song, SIGNAL(projectLoaded()), this, SLOT(adjustUiAfterProjectLoad()));
|
||||
connect(this, SIGNAL(resized()), m_editor, SLOT(updatePositionLine()));
|
||||
}
|
||||
|
||||
QSize SongEditorWindow::sizeHint() const
|
||||
@@ -705,6 +714,14 @@ QSize SongEditorWindow::sizeHint() const
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void SongEditorWindow::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
emit resized();
|
||||
}
|
||||
|
||||
|
||||
void SongEditorWindow::play()
|
||||
{
|
||||
emit playTriggered();
|
||||
|
||||
Reference in New Issue
Block a user