fixed issue that the video preview size was wrong during resizing the information panel

svn path=/trunk/KDE/kdebase/apps/; revision=958762
This commit is contained in:
Peter Penz 2009-04-24 15:34:42 +00:00
parent 2359ea2bde
commit ed0df8dc1f
2 changed files with 1 additions and 3 deletions

View file

@ -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 {

View 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();
}