Merge pull request #1690 from curlymorphic/821

Renamed parameters on selectRegionFromPixels
This commit is contained in:
Lukas W
2015-01-26 14:17:25 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ public slots:
/// \param x
/// \param y
/// Use the rubber band to select TCO from all tracks using x, y pixels
void selectRegionFromPixels(int x, int y);
void selectRegionFromPixels(int xStart, int xEnd);
///
/// \brief stopRubberBand

View File

@@ -314,11 +314,11 @@ void TrackContainerView::dragEnterEvent( QDragEnterEvent * _dee )
arg( Track::SampleTrack ) );
}
void TrackContainerView::selectRegionFromPixels(int x, int y)
void TrackContainerView::selectRegionFromPixels(int xStart, int xEnd)
{
m_rubberBand->setEnabled( true );
m_rubberBand->show();
m_rubberBand->setGeometry( min( x, y ), 0, max( x, y ) - min( x, y ), std::numeric_limits<int>::max() );
m_rubberBand->setGeometry( min( xStart, xEnd ), 0, max( xStart, xEnd ) - min( xStart, xEnd ), std::numeric_limits<int>::max() );
}
void TrackContainerView::stopRubberBand()