OSDN Git Service

dolphin: do not set the video player maximum size to the current size of the image...
authorIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 04:36:07 +0000 (06:36 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 04:36:07 +0000 (06:36 +0200)
their minimum and maximum sizes are set to match now but their hints differ
on purpose

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
dolphin/src/panels/information/informationpanelcontent.cpp

index d382de5..7272a35 100644 (file)
@@ -159,9 +159,6 @@ void InformationPanelContent::showItem(const KFileItem& item)
         if (m_playerWidget->player()->isMimeSupported(mimeType)) {
             m_playerWidget->show();
             m_playerWidget->open(item.targetUrl().url());
-            if (m_preview->isVisible()) {
-                m_playerWidget->setMaximumSize(m_preview->size());
-            }
             m_preview->setVisible(false);
         } else {
             m_playerWidget->player()->stop();