summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-09 13:42:19 (UTC)
committer simon <simon>2002-12-09 13:42:19 (UTC)
commit374d7ba11f669449900c7e93f7929d724eb85f26 (patch) (side-by-side diff)
tree1372975b6953972e5ce622da5e967fd452be7f14
parentd0d993b584bba77905955466897a50cea758103c (diff)
downloadopie-374d7ba11f669449900c7e93f7929d724eb85f26.zip
opie-374d7ba11f669449900c7e93f7929d724eb85f26.tar.gz
opie-374d7ba11f669449900c7e93f7929d724eb85f26.tar.bz2
- another hardcoded number removed :)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp2
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
@@ -214,13 +214,13 @@ void AudioWidget::resizeEvent( QResizeEvent * ) {
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] );
}
}
}