┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/phononwidget.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-01-31 13:04:40 +0000
committerPeter Penz <[email protected]>2009-01-31 13:04:40 +0000
commite5edeb7446c0ec60d0962fb5cd0077c374a472ef (patch)
tree98377f3f501beb62ddcee3bf1a706153ff557e78 /src/panels/information/phononwidget.h
parent68a7ed8bcfafe36676ddb43a5de426a6f600a05d (diff)
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: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=919063
Diffstat (limited to 'src/panels/information/phononwidget.h')
-rw-r--r--src/panels/information/phononwidget.h9
1 files changed, 8 insertions, 1 deletions
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 <kurl.h>
+
#include <QtGui/QWidget>
#include <Phonon/Global>
@@ -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;