]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/phononwidget.cpp
The &-shortcut from another action is not set until the action has been shown at...
[dolphin.git] / src / panels / information / phononwidget.cpp
index 798a4a35b22691c80cef643450cd51c48efb7db0..a0bbcf2106289f9f102c819705118e5d73f0b359 100644 (file)
@@ -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: