Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed bar lines to follow snap size #7034

Merged
merged 18 commits into from
May 20, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Removed even more whitespace because why not
BoredGuy1 committed May 9, 2024
commit 8f2867a9f1cafc27d1c94101fe8c9d51bd3af211
10 changes: 4 additions & 6 deletions src/gui/tracks/TrackContentWidget.cpp
Original file line number Diff line number Diff line change
@@ -78,14 +78,12 @@ TrackContentWidget::TrackContentWidget( TrackView * parent ) :
this, SLOT( changePosition( const lmms::TimePos& ) ) );

// Update background if snap size changes
connect( getGUI()->songEditor()->m_editor->snappingModel(),
&Model::dataChanged,
this, &TrackContentWidget::updateBackground );
connect(getGUI()->songEditor()->m_editor->snappingModel(), &Model::dataChanged,
this, &TrackContentWidget::updateBackground);

// Also update background if proportional snap is enabled/disabled
connect( getGUI()->songEditor()->m_editor,
&SongEditor::proportionalSnapChanged,
this, &TrackContentWidget::updateBackground );
connect(getGUI()->songEditor()->m_editor, &SongEditor::proportionalSnapChanged,
this, &TrackContentWidget::updateBackground);

setStyle( QApplication::style() );