summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 22:51:21 (UTC)
committer simon <simon>2002-12-02 22:51:21 (UTC)
commitb3bf297da8836a678a21f2ebe83e0f1961f91d97 (patch) (side-by-side diff)
treefa5fa20421d833816d355c109458661b2f245177
parent649ea9e9586ce51847ebeb9c062290137c9248f4 (diff)
downloadopie-b3bf297da8836a678a21f2ebe83e0f1961f91d97.zip
opie-b3bf297da8836a678a21f2ebe83e0f1961f91d97.tar.gz
opie-b3bf297da8836a678a21f2ebe83e0f1961f91d97.tar.bz2
- centralized closeEvent implementation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.h1
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/mediawidget.h2
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp5
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h1
6 files changed, 7 insertions, 12 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 3070bc3..f6e6086 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -439,9 +439,4 @@ void AudioWidget::showEvent( QShowEvent* ) {
-void AudioWidget::closeEvent( QCloseEvent* ) {
- mediaPlayerState.setList();
-}
-
-
void AudioWidget::paintEvent( QPaintEvent * pe ) {
if ( !pe->erased() ) {
diff --git a/noncore/multimedia/opieplayer2/audiowidget.h b/noncore/multimedia/opieplayer2/audiowidget.h
index 1778a30..f092699 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.h
+++ b/noncore/multimedia/opieplayer2/audiowidget.h
@@ -86,5 +86,4 @@ protected:
void mouseReleaseEvent( QMouseEvent *event );
void timerEvent( QTimerEvent *event );
- void closeEvent( QCloseEvent *event );
void keyReleaseEvent( QKeyEvent *e);
private slots:
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp
index 01a7295..2992fd6 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.cpp
+++ b/noncore/multimedia/opieplayer2/mediawidget.cpp
@@ -39,4 +39,9 @@ MediaWidget::~MediaWidget()
}
+void MediaWidget::closeEvent( QCloseEvent * )
+{
+ mediaPlayerState.setList();
+}
+
void MediaWidget::handleCommand( Command command, bool buttonDown )
{
diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h
index 550f0fc..e3f09ce 100644
--- a/noncore/multimedia/opieplayer2/mediawidget.h
+++ b/noncore/multimedia/opieplayer2/mediawidget.h
@@ -46,4 +46,6 @@ signals:
protected:
+ virtual void closeEvent( QCloseEvent * );
+
void handleCommand( Command command, bool buttonDown );
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index b4ecb4c..41dddb7 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -448,9 +448,4 @@ void VideoWidget::paintEvent( QPaintEvent * pe) {
-void VideoWidget::closeEvent( QCloseEvent* ) {
- mediaPlayerState.setList();
-}
-
-
void VideoWidget::keyReleaseEvent( QKeyEvent *e) {
switch ( e->key() ) {
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index 38eb726..149c78e 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -92,5 +92,4 @@ protected:
void mousePressEvent( QMouseEvent *event );
void mouseReleaseEvent( QMouseEvent *event );
- void closeEvent( QCloseEvent *event );
void keyReleaseEvent( QKeyEvent *e);