author | simon <simon> | 2002-12-08 22:53:46 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-08 22:53:46 (UTC) |
commit | df6b6a0222e99736284ed8ebb9a7d8068751339b (patch) (side-by-side diff) | |
tree | ef6c8fea53ae3e2ca8337cbabf1cd3b37089b8cf | |
parent | cb1b7bf6f4dd465cc4f5b268893def8b11ce0bde (diff) | |
download | opie-df6b6a0222e99736284ed8ebb9a7d8068751339b.zip opie-df6b6a0222e99736284ed8ebb9a7d8068751339b.tar.gz opie-df6b6a0222e99736284ed8ebb9a7d8068751339b.tar.bz2 |
- oops, forgot to commit this one
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 1d18d6f..ca84019 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp @@ -47,26 +47,32 @@ void MediaWidget::closeEvent( QCloseEvent * ) void MediaWidget::handleCommand( Command command, bool buttonDown ) { switch ( command ) { case Play: mediaPlayerState.togglePaused(); case Stop: mediaPlayerState.setPlaying(FALSE); return; case Next: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; case Previous: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setPrev(); return; case Loop: mediaPlayerState.setLooping( buttonDown ); return; case VolumeUp: emit moreReleased(); return; case VolumeDown: emit lessReleased(); return; case PlayList: mediaPlayerState.setList(); return; case Forward: emit forwardReleased(); return; case Back: emit backReleased(); return; } } bool MediaWidget::isOverButton( const QPoint &position, int buttonId ) const { return ( position.x() > 0 && position.y() > 0 && position.x() < buttonMask.width() && position.y() < buttonMask.height() && buttonMask.pixelIndex( position.x(), position.y() ) == buttonId + 1 ); } +void MediaWidget::repaintButton( int buttonId ) +{ + QPainter p( this ); + paintButton( p, buttonId ); +} + /* vim: et sw=4 ts=4 */ |