summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-09 18:33:53 (UTC)
committer simon <simon>2002-12-09 18:33:53 (UTC)
commit711d8c1af3ebdd6f88ff3e9ffa46624c9b63badd (patch) (side-by-side diff)
tree20ad8855c3e9fcb0e0ec5a79b3d9e934236e1344
parent29b5784bba7b19497b5984418bacee261075ccf7 (diff)
downloadopie-711d8c1af3ebdd6f88ff3e9ffa46624c9b63badd.zip
opie-711d8c1af3ebdd6f88ff3e9ffa46624c9b63badd.tar.gz
opie-711d8c1af3ebdd6f88ff3e9ffa46624c9b63badd.tar.bz2
- another small cleanup in the mouse handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp10
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.h2
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.cpp10
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.h2
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp6
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h1
6 files changed, 13 insertions, 18 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index dda039c..5986a72 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -334,14 +334,4 @@ void AudioWidget::timerEvent( QTimerEvent * ) {
}
-void AudioWidget::mousePressEvent( QMouseEvent *event ) {
- mouseMoveEvent( event );
-}
-
-
-void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) {
- mouseMoveEvent( event );
-}
-
-
void AudioWidget::showEvent( QShowEvent* ) {
QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 );
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h
index 690d1b3..e2e2314 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -77,6 +77,4 @@ protected:
void showEvent( QShowEvent *se );
void resizeEvent( QResizeEvent *re );
- void mousePressEvent( QMouseEvent *event );
- void mouseReleaseEvent( QMouseEvent *event );
void timerEvent( QTimerEvent *event );
void keyReleaseEvent( QKeyEvent *e);
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp
index 3533d74..439ba2e 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.cpp
+++ b/noncore/multimedia/opieplayer2/mediawidget.cpp
@@ -114,4 +114,14 @@ void MediaWidget::mouseMoveEvent( QMouseEvent *event )
}
+void MediaWidget::mousePressEvent( QMouseEvent *event )
+{
+ mouseMoveEvent( event );
+}
+
+void MediaWidget::mouseReleaseEvent( QMouseEvent *event )
+{
+ mouseMoveEvent( event );
+}
+
void MediaWidget::makeVisible()
{
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h
index c261728..9042d5b 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.h
+++ b/noncore/multimedia/opieplayer2/mediawidget.h
@@ -89,4 +89,6 @@ protected:
virtual void mouseMoveEvent( QMouseEvent *event );
+ virtual void mousePressEvent( QMouseEvent *event );
+ virtual void mouseReleaseEvent( QMouseEvent *event );
virtual void makeVisible();
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 26777e6..04b09f9 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -242,8 +242,4 @@ void VideoWidget::updateSlider( long i, long max ) {
}
-void VideoWidget::mousePressEvent( QMouseEvent *event ) {
- mouseMoveEvent( event );
-}
-
void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) {
if ( mediaPlayerState.isFullscreen() ) {
@@ -251,5 +247,5 @@ void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) {
makeVisible();
}
- mouseMoveEvent( event );
+ MediaWidget::mouseReleaseEvent( event );
}
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index bed2116..985c094 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -77,5 +77,4 @@ protected:
void resizeEvent( QResizeEvent * );
void showEvent( QShowEvent *se );
- void mousePressEvent( QMouseEvent *event );
void mouseReleaseEvent( QMouseEvent *event );
void keyReleaseEvent( QKeyEvent *e);