-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 8 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 8 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.h | 2 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 6 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.h | 1 |
6 files changed, 9 insertions, 17 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 10b1e58..2a158a8 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -334,10 +334,2 @@ void AudioWidget::setToggleButton( int i, bool down ) { | |||
334 | 334 | ||
335 | |||
336 | void AudioWidget::toggleButton( int i ) { | ||
337 | buttons[i].isDown = !buttons[i].isDown; | ||
338 | QPainter p(this); | ||
339 | paintButton ( p, i ); | ||
340 | } | ||
341 | |||
342 | |||
343 | void AudioWidget::paintButton( QPainter &p, int i ) { | 335 | void AudioWidget::paintButton( QPainter &p, int i ) { |
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h index a1a839c..4598d51 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.h +++ b/noncore/multimedia/opieplayer2/audiowidget.h | |||
@@ -93,3 +93,2 @@ private slots: | |||
93 | private: | 93 | private: |
94 | void toggleButton( int ); | ||
95 | void setToggleButton( int, bool ); | 94 | void setToggleButton( int, bool ); |
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index ca84019..62266ad 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -70,3 +70,3 @@ bool MediaWidget::isOverButton( const QPoint &position, int buttonId ) const | |||
70 | 70 | ||
71 | void MediaWidget::repaintButton( int buttonId ) | 71 | void MediaWidget::paintButton( int buttonId ) |
72 | { | 72 | { |
@@ -76,2 +76,8 @@ void MediaWidget::repaintButton( int buttonId ) | |||
76 | 76 | ||
77 | void MediaWidget::toggleButton( int buttonId ) | ||
78 | { | ||
79 | buttons[ buttonId ].isDown = !buttons[ buttonId ].isDown; | ||
80 | paintButton( buttonId ); | ||
81 | } | ||
82 | |||
77 | /* vim: et sw=4 ts=4 | 83 | /* vim: et sw=4 ts=4 |
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index 066d2ac..46c304d 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h | |||
@@ -72,2 +72,4 @@ protected: | |||
72 | 72 | ||
73 | void toggleButton( int buttonId ); | ||
74 | |||
73 | MediaPlayerState &mediaPlayerState; | 75 | MediaPlayerState &mediaPlayerState; |
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index 3e677c6..77eab71 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -265,8 +265,2 @@ void VideoWidget::setToggleButton( int i, bool down ) { | |||
265 | 265 | ||
266 | void VideoWidget::toggleButton( int i ) { | ||
267 | buttons[i].isDown = !buttons[i].isDown; | ||
268 | QPainter p(this); | ||
269 | paintButton ( p, i ); | ||
270 | } | ||
271 | |||
272 | void VideoWidget::paintButton( QPainter &p, int i ) { | 266 | void VideoWidget::paintButton( QPainter &p, int i ) { |
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h index 28f720b..24e8741 100644 --- a/noncore/multimedia/opieplayer2/videowidget.h +++ b/noncore/multimedia/opieplayer2/videowidget.h | |||
@@ -110,3 +110,2 @@ private: | |||
110 | virtual void paintButton( QPainter &p, int i ); | 110 | virtual void paintButton( QPainter &p, int i ); |
111 | void toggleButton( int ); | ||
112 | void setToggleButton( int, bool ); | 111 | void setToggleButton( int, bool ); |