]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/phononwidget.cpp
Use capitalized KDE includes
[dolphin.git] / src / panels / information / phononwidget.cpp
index 798a4a35b22691c80cef643450cd51c48efb7db0..b6da339eaf6da36065e3c1b100f02f11ef290a89 100644 (file)
 #include <Phonon/SeekSlider>
 #include <Phonon/VideoPlayer>
 
-#include <QtGui/QVBoxLayout>
-#include <QtGui/QHBoxLayout>
-#include <QtGui/QShowEvent>
-#include <QtGui/QToolButton>
+#include <QVBoxLayout>
+#include <QHBoxLayout>
+#include <QShowEvent>
+#include <QToolButton>
 
-#include <kdialog.h>
-#include <kicon.h>
-#include <kurl.h>
-#include <klocale.h>
+#include <KDialog>
+#include <KIcon>
+#include <KUrl>
+#include <KLocale>
 
 class EmbeddedVideoPlayer : public Phonon::VideoPlayer
 {
@@ -41,13 +41,11 @@ class EmbeddedVideoPlayer : public Phonon::VideoPlayer
         EmbeddedVideoPlayer(Phonon::Category category, QWidget *parent = 0) :
             Phonon::VideoPlayer(category, parent)
         {
-            setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
         }
 
         void setSizeHint(const QSize& size)
         {
             m_sizeHint = size;
-            setFixedHeight(size.height());
             updateGeometry();
         }
 
@@ -153,7 +151,7 @@ void PhononWidget::showEvent(QShowEvent *event)
 
         // Creating an audio player or video player instance might take up to
         // 2 seconds when doing it the first time. To prevent that the user
-        // interface gets noticable blocked, the creation is delayed until
+        // interface gets noticeable blocked, the creation is delayed until
         // the play button has been pressed (see PhononWidget::play()).
     }
 }
@@ -193,6 +191,7 @@ void PhononWidget::play()
         }
         m_media = m_audioMedia;
         m_media->setCurrentSource(m_url);
+        m_media->play();
         break;
 
     case Video: