From e5edeb7446c0ec60d0962fb5cd0077c374a472ef Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 31 Jan 2009 13:04:40 +0000 Subject: Postpone the creating of the media object until the play- or stop-button has been pressed. This solves the issue that Dolphin might get blocked during hovering media files. Dolphin still gets blocked when requesting a media object the first time, but for the user this "just" means that after pressing the play-button the first time, that the playing starts a little bit later. CCMAIL: kretz@kde.org CCMAIL: kdedevel@etotheipiplusone.com svn path=/trunk/KDE/kdebase/apps/; revision=919063 --- src/panels/information/phononwidget.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/panels/information/phononwidget.h') diff --git a/src/panels/information/phononwidget.h b/src/panels/information/phononwidget.h index 5c43e7e49..320ecbe6d 100644 --- a/src/panels/information/phononwidget.h +++ b/src/panels/information/phononwidget.h @@ -21,6 +21,8 @@ #ifndef PHONONWIDGET_H #define PHONONWIDGET_H +#include + #include #include @@ -32,7 +34,6 @@ namespace Phonon } // namespace Phonon class QToolButton; -class KUrl; class PhononWidget : public QWidget { @@ -43,8 +44,14 @@ class PhononWidget : public QWidget private slots: void stateChanged(Phonon::State); + void play(); + void stop(); + + private: + void requestMedia(); private: + KUrl m_url; QToolButton *m_playButton; QToolButton *m_stopButton; Phonon::MediaObject *m_media; -- cgit v1.3