! \brief Repaint the trackContentWidget on command * * \param pe the Paint Event to respond to */
| 1552 | * \param pe the Paint Event to respond to |
| 1553 | */ |
| 1554 | void TrackContentWidget::paintEvent( QPaintEvent * pe ) |
| 1555 | { |
| 1556 | // Assume even-pixels-per-tact. Makes sense, should be like this anyways |
| 1557 | const TrackContainerView * tcv = m_trackView->trackContainerView(); |
| 1558 | int ppt = static_cast<int>( tcv->pixelsPerTact() ); |
| 1559 | QPainter p( this ); |
| 1560 | // Don't draw background on BB-Editor |
| 1561 | if( m_trackView->trackContainerView() != gui->getBBEditor()->trackContainerView() ) |
| 1562 | { |
| 1563 | p.drawTiledPixmap( rect(), m_background, QPoint( |
| 1564 | tcv->currentPosition().getTact() * ppt, 0 ) ); |
| 1565 | } |
| 1566 | } |
| 1567 | |
| 1568 | |
| 1569 |
nothing calls this directly
no test coverage detected