author | simon <simon> | 2002-12-09 15:23:45 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 15:23:45 (UTC) |
commit | ab22599627d84a6c6427d2440da4271b48f47c8e (patch) (unidiff) | |
tree | 7afdd78444dc58245a5dd3a110f454354ddd3e2f | |
parent | 47d689545e68f2439cc88630ac78016712f92cc9 (diff) | |
download | opie-ab22599627d84a6c6427d2440da4271b48f47c8e.zip opie-ab22599627d84a6c6427d2440da4271b48f47c8e.tar.gz opie-ab22599627d84a6c6427d2440da4271b48f47c8e.tar.bz2 |
- minor cleanup
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 11 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.h | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 3a44185..b73a5c0 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -98,6 +98,6 @@ bool MediaWidget::isOverButton( const QPoint &position, int buttonId ) const | |||
98 | 98 | ||
99 | void MediaWidget::paintButton( int buttonId ) | 99 | void MediaWidget::paintButton( const Button &button ) |
100 | { | 100 | { |
101 | QPainter p( this ); | 101 | QPainter p( this ); |
102 | paintButton( p, buttons[ buttonId ] ); | 102 | paintButton( p, button ); |
103 | } | 103 | } |
@@ -114,4 +114,7 @@ void MediaWidget::toggleButton( int buttonId ) | |||
114 | { | 114 | { |
115 | buttons[ buttonId ].isDown = !buttons[ buttonId ].isDown; | 115 | Button &button = buttons[ buttonId ]; |
116 | paintButton( buttonId ); | 116 | |
117 | button.isDown = !button.isDown; | ||
118 | |||
119 | paintButton( button ); | ||
117 | } | 120 | } |
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index 8cdaad1..dcf7fb8 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h | |||
@@ -89,3 +89,3 @@ protected: | |||
89 | 89 | ||
90 | void paintButton( int buttonId ); | 90 | void paintButton( const Button &button ); |
91 | void paintButton( QPainter &p, const Button &button ); | 91 | void paintButton( QPainter &p, const Button &button ); |