From aaf45467b225aec7ba2e8f382664448068cbeea3 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 25 May 2009 13:27:26 +0200 Subject: [PATCH] Track UI: coding style fixes Fixed indentation issues and the like. --- src/core/track.cpp | 16 ++++++++-------- src/gui/track_container_view.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/track.cpp b/src/core/track.cpp index ed6503adb..fc65dba65 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -1175,16 +1175,16 @@ void trackContentWidget::updateBackground( void ) // Assume even-pixels-per-tact. Makes sense, should be like this anyways int ppt = static_cast( tcv->pixelsPerTact() ); - int width = ppt * tactsPerBar; + int width = ppt * tactsPerBar; - m_background = QPixmap( width * 2, height() ); - QPainter pmp; - pmp.begin( &m_background ); + m_background = QPixmap( width * 2, height() ); + QPainter pmp; + pmp.begin( &m_background ); - engine::getLmmsStyle()->drawTrackContentBackground( &pmp, - QSize( width, height() ), ppt ); + engine::getLmmsStyle()->drawTrackContentBackground( &pmp, + QSize( width, height() ), ppt ); - pmp.end(); + pmp.end(); } @@ -1425,7 +1425,7 @@ void trackOperationsWidget::mousePressEvent( QMouseEvent * _me ) void trackOperationsWidget::paintEvent( QPaintEvent * _pe ) { QPainter p( this ); - p.fillRect( rect(), palette().brush(QPalette::Background) ); + p.fillRect( rect(), palette().brush( QPalette::Background ) ); if( m_trackView->isMovingTrack() == false ) { diff --git a/src/gui/track_container_view.cpp b/src/gui/track_container_view.cpp index 43bf73fcf..c2e1e2c75 100644 --- a/src/gui/track_container_view.cpp +++ b/src/gui/track_container_view.cpp @@ -223,7 +223,7 @@ void trackContainerView::realignTracks( void ) { ( *it )->show(); ( *it )->update(); - ( *it )->getTrackContentWidget()->updateBackground(); + ( *it )->getTrackContentWidget()->updateBackground(); } }