author | simon <simon> | 2002-12-09 16:28:55 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 16:28:55 (UTC) |
commit | 3b31b000db15e7618b3ef06a652bae41d87a1348 (patch) (unidiff) | |
tree | 25360f74f235f016d6ca50f2e4b8cc280a2e3a2e /noncore/multimedia/opieplayer2/mediawidget.cpp | |
parent | eeb797c68aca5cad9989b8438facebee13eede5e (diff) | |
download | opie-3b31b000db15e7618b3ef06a652bae41d87a1348.zip opie-3b31b000db15e7618b3ef06a652bae41d87a1348.tar.gz opie-3b31b000db15e7618b3ef06a652bae41d87a1348.tar.bz2 |
- transition to MediaWidget::Command completed
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 7891a7e..c0ebd63 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -117,2 +117,11 @@ void MediaWidget::paintButton( QPainter &p, const Button &button ) | |||
117 | 117 | ||
118 | void MediaWidget::setToggleButton( Command command, bool down ) | ||
119 | { | ||
120 | for ( ButtonVector::iterator it = buttons.begin(); it != buttons.end(); ++it ) | ||
121 | if ( it->command == command ) { | ||
122 | setToggleButton( *it, down ); | ||
123 | return; | ||
124 | } | ||
125 | } | ||
126 | |||
118 | void MediaWidget::setToggleButton( Button &button, bool down ) | 127 | void MediaWidget::setToggleButton( Button &button, bool down ) |