[vlc-commits] [Git][videolan/vlc][master] qt: re-calculate table row heights in ExtraMetaPanel

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Apr 5 08:25:19 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
937c519e by Eric Li at 2026-04-05T10:08:43+02:00
qt: re-calculate table row heights in ExtraMetaPanel

- - - - -


2 changed files:

- modules/gui/qt/dialogs/mediainfo/info_panels.cpp
- modules/gui/qt/dialogs/mediainfo/info_panels.hpp


Changes:

=====================================
modules/gui/qt/dialogs/mediainfo/info_panels.cpp
=====================================
@@ -381,6 +381,18 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent ) : QWidget( parent )
      layout->addWidget( extraMeta, 1, 0 );
 }
 
+void ExtraMetaPanel::showEvent( QShowEvent * event )
+{
+    extraMeta->resizeRowsToContents();
+    QWidget::showEvent( event );
+}
+
+void ExtraMetaPanel::resizeEvent( QResizeEvent * event )
+{
+    extraMeta->resizeRowsToContents();
+    QWidget::resizeEvent( event );
+}
+
 /**
  * Update the Extra Metadata from p_meta->i_extras
  **/


=====================================
modules/gui/qt/dialogs/mediainfo/info_panels.hpp
=====================================
@@ -99,6 +99,9 @@ class ExtraMetaPanel: public QWidget
     Q_OBJECT
 public:
     ExtraMetaPanel( QWidget * );
+protected:
+    void showEvent( QShowEvent * ) override;
+    void resizeEvent( QResizeEvent * ) override;
 private:
     QTableWidget *extraMeta;
 public slots:



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/937c519e9a8af950b7ad91849dbd1f6aec1f0a21

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/937c519e9a8af950b7ad91849dbd1f6aec1f0a21
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list