mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
2359ea2bde
commit
ed0df8dc1f
2 changed files with 1 additions and 3 deletions
|
@ -712,7 +712,7 @@ void InformationPanel::updatePhononWidget()
|
||||||
: PhononWidget::Audio;
|
: PhononWidget::Audio;
|
||||||
m_phononWidget->setMode(mode);
|
m_phononWidget->setMode(mode);
|
||||||
m_phononWidget->setUrl(item.url());
|
m_phononWidget->setUrl(item.url());
|
||||||
if (mode == PhononWidget::Video) {
|
if ((mode == PhononWidget::Video) && m_preview->isVisible()) {
|
||||||
m_phononWidget->setVideoSize(m_preview->size());
|
m_phononWidget->setVideoSize(m_preview->size());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -41,13 +41,11 @@ class EmbeddedVideoPlayer : public Phonon::VideoPlayer
|
||||||
EmbeddedVideoPlayer(Phonon::Category category, QWidget *parent = 0) :
|
EmbeddedVideoPlayer(Phonon::Category category, QWidget *parent = 0) :
|
||||||
Phonon::VideoPlayer(category, parent)
|
Phonon::VideoPlayer(category, parent)
|
||||||
{
|
{
|
||||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSizeHint(const QSize& size)
|
void setSizeHint(const QSize& size)
|
||||||
{
|
{
|
||||||
m_sizeHint = size;
|
m_sizeHint = size;
|
||||||
setFixedHeight(size.height());
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue