MCPcopy Create free account
hub / github.com/LMMS/lmms / paintEvent

Method paintEvent

src/core/Track.cpp:1554–1566  ·  view source on GitHub ↗

! \brief Repaint the trackContentWidget on command * * \param pe the Paint Event to respond to */

Source from the content-addressed store, hash-verified

1552 * \param pe the Paint Event to respond to
1553 */
1554void 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

Callers

nothing calls this directly

Calls 6

getTactMethod · 0.80
isMovingTrackMethod · 0.80
drawPrimitiveMethod · 0.80
trackContainerViewMethod · 0.45
pixelsPerTactMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected