-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index f59772e..8409e5c 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -101,4 +101,5 @@ VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlaye - for ( int i = 0; i < 7; i++ ) { - Button &button = buttons[ i ]; + uint i = 0; + for ( ButtonVector::iterator it = buttons.begin(); it != buttons.end(); ++it, ++i ) { + Button &button = *it; @@ -177,4 +178,4 @@ void VideoWidget::resizeEvent( QResizeEvent * ) { - for ( int i = 0; i < 7; i++ ) { - Button &button = buttons[ i ]; + for ( ButtonVector::iterator it = buttons.begin(); it != buttons.end(); ++it ) { + Button &button = *it; |