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
@@ -81,6 +81,7 @@ public slots:
|
||||
void setEditModeSelect();
|
||||
|
||||
void updatePosition( const MidiTime & t );
|
||||
void updatePositionLine();
|
||||
|
||||
protected:
|
||||
virtual void closeEvent( QCloseEvent * ce );
|
||||
@@ -152,6 +153,9 @@ public:
|
||||
|
||||
SongEditor* m_editor;
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent( QResizeEvent * event );
|
||||
|
||||
protected slots:
|
||||
void play();
|
||||
void record();
|
||||
@@ -162,6 +166,7 @@ protected slots:
|
||||
|
||||
signals:
|
||||
void playTriggered();
|
||||
void resized();
|
||||
|
||||
private:
|
||||
QAction* m_addBBTrackAction;
|
||||
|
||||
@@ -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