Track UI: coding style fixes

Fixed indentation issues and the like.
This commit is contained in:
Tobias Doerffel
2009-05-25 13:27:26 +02:00
parent 031e87b307
commit aaf45467b2
2 changed files with 9 additions and 9 deletions

View File

@@ -1175,16 +1175,16 @@ void trackContentWidget::updateBackground( void )
// Assume even-pixels-per-tact. Makes sense, should be like this anyways
int ppt = static_cast<int>( 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 )
{

View File

@@ -223,7 +223,7 @@ void trackContainerView::realignTracks( void )
{
( *it )->show();
( *it )->update();
( *it )->getTrackContentWidget()->updateBackground();
( *it )->getTrackContentWidget()->updateBackground();
}
}