! \brief Return the position of the trackContentWidget in Tacts. * * \param mouseX the mouse's current X position in pixels. */
| 1303 | * \param mouseX the mouse's current X position in pixels. |
| 1304 | */ |
| 1305 | MidiTime TrackContentWidget::getPosition( int mouseX ) |
| 1306 | { |
| 1307 | TrackContainerView * tv = m_trackView->trackContainerView(); |
| 1308 | return MidiTime( tv->currentPosition() + |
| 1309 | mouseX * |
| 1310 | MidiTime::ticksPerTact() / |
| 1311 | static_cast<int>( tv->pixelsPerTact() ) ); |
| 1312 | } |
| 1313 | |
| 1314 | |
| 1315 |
nothing calls this directly
no test coverage detected