OSDN Git Service

dolphin: set the minimum height of the KMediaWidget
authorIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 04:19:00 +0000 (06:19 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 04:19:00 +0000 (06:19 +0200)
to match that of the image preview widget

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

index de8d07b..d382de5 100644 (file)
@@ -75,6 +75,7 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) :
     m_playerWidget->player()->setPlayerID("informationpanel");
     m_playerWidget->hide();
     m_playerWidget->setMinimumWidth(minPreviewWidth);
+    m_playerWidget->setMinimumHeight(KIconLoader::SizeEnormous);
 
     // name
     m_nameLabel = new QLabel(parent);
@@ -351,7 +352,7 @@ void InformationPanelContent::adjustWidgetSizes(int width)
     m_preview->setMaximumSize(QSize(maxWidth, maxWidth));
 
     if (m_playerWidget->isVisible()) {
-        // assure that the size of the video player is the same as the preview size
+        // the size of the video player should match that of the preview size
         m_playerWidget->setMaximumSize(maxWidth, maxWidth);
     }
 }