[vlc-commits] [Git][videolan/vlc][master] qt: Enable ExtraMetaPanel column headers

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Apr 24 08:24:49 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
bb419755 by FeRD (Frank Dana) at 2023-04-24T07:55:51+00:00
qt: Enable ExtraMetaPanel column headers

Having visible headers allows interactive resizing of the column
widths by dragging the column separator.

Signed-off-by: FeRD (Frank Dana) <ferdnyc at gmail.com>

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/dialogs/mediainfo/info_panels.cpp
=====================================
@@ -368,7 +368,7 @@ void MetaPanel::fingerprintUpdate( input_item_t *p_item )
 }
 
 /**
- * Second Panel - Shows the extra metadata in a tree, non editable.
+ * Second Panel - Shows the extra metadata in a table, non editable.
  **/
 ExtraMetaPanel::ExtraMetaPanel( QWidget *parent ) : QWidget( parent )
 {
@@ -380,11 +380,12 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent ) : QWidget( parent )
      layout->addWidget( topLabel, 0, 0 );
 
      extraMeta = new QTableWidget( this );
-     extraMeta->setAlternatingRowColors( true );
-     extraMeta->setColumnCount( 2 );
-     extraMeta->horizontalHeader()->hide();
      extraMeta->verticalHeader()->hide();
+     extraMeta->setAlternatingRowColors( true );
 
+     extraMeta->setColumnCount( 2 );
+     extraMeta->setHorizontalHeaderLabels({ qtr( "Property" ),
+                                            qtr( "Value" ) });
      extraMeta->horizontalHeader()->setStretchLastSection(true);
      extraMeta->resizeRowsToContents();
 



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

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


VideoLAN code repository instance


More information about the vlc-commits mailing list