author | simon <simon> | 2002-12-09 13:42:19 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 13:42:19 (UTC) |
commit | 374d7ba11f669449900c7e93f7929d724eb85f26 (patch) (side-by-side diff) | |
tree | 1372975b6953972e5ce622da5e967fd452be7f14 | |
parent | d0d993b584bba77905955466897a50cea758103c (diff) | |
download | opie-374d7ba11f669449900c7e93f7929d724eb85f26.zip opie-374d7ba11f669449900c7e93f7929d724eb85f26.tar.gz opie-374d7ba11f669449900c7e93f7929d724eb85f26.tar.bz2 |
- another hardcoded number removed :)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 2081b4f..8659971 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -208,25 +208,25 @@ void AudioWidget::resizeEvent( QResizeEvent * ) { slider.setFixedWidth( w - 110 ); slider.setGeometry( QRect( 15, h - 22, w - 90, 20 ) ); slider.setBackgroundOrigin( QWidget::ParentOrigin ); time.setGeometry( QRect( w - 85, h - 30, 70, 20 ) ); upperLeftOfButtonMask.rx() = ( w - imgUp.width() ) / 2; upperLeftOfButtonMask.ry() = (( h - imgUp.height() ) / 2) - 10; QPoint p = upperLeftOfButtonMask; QPixmap pixUp = combineImageWithBackground( imgUp, pixBg, p ); QPixmap pixDn = combineImageWithBackground( imgDn, pixBg, p ); - for ( int i = 0; i < 10; i++ ) { + for ( uint i = 0; i < masks.size(); i++ ) { if ( !masks[i].isNull() ) { buttonPixUp[i] = maskPixToMask( pixUp, masks[i] ); buttonPixDown[i] = maskPixToMask( pixDn, masks[i] ); } } } void AudioWidget::sliderPressed() { audioSliderBeingMoved = TRUE; } |