From ed0df8dc1fc9576e36c920882e7f4b00a2811113 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 24 Apr 2009 15:34:42 +0000 Subject: [PATCH] fixed issue that the video preview size was wrong during resizing the information panel svn path=/trunk/KDE/kdebase/apps/; revision=958762 --- src/panels/information/informationpanel.cpp | 2 +- src/panels/information/phononwidget.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 2349a6cffc..1b8724f465 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -712,7 +712,7 @@ void InformationPanel::updatePhononWidget() : PhononWidget::Audio; m_phononWidget->setMode(mode); m_phononWidget->setUrl(item.url()); - if (mode == PhononWidget::Video) { + if ((mode == PhononWidget::Video) && m_preview->isVisible()) { m_phononWidget->setVideoSize(m_preview->size()); } } else { diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 798a4a35b2..7f2ca95648 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -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(); }