Commit cac12428 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Add icons on open dialog tabs.

Idea and code from Francois Cartegnie
(cherry picked from commit efb68637)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ec814a4a
...@@ -97,10 +97,13 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -97,10 +97,13 @@ OpenDialog::OpenDialog( QWidget *parent,
captureOpenPanel = new CaptureOpenPanel( this, p_intf ); captureOpenPanel = new CaptureOpenPanel( this, p_intf );
/* Insert the tabs */ /* Insert the tabs */
ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, qtr( "&File" ) ); ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, QIcon( ":/folder-grey" ),
ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, qtr( "&Disc" ) ); qtr( "&File" ) );
ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, qtr( "&Network" ) ); ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, QIcon( ":/disc" ),
ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel, qtr( "&Disc" ) );
ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, QIcon( ":/network" ),
qtr( "&Network" ) );
ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel, QIcon( ":/capture-card" ),
qtr( "Capture &Device" ) ); qtr( "Capture &Device" ) );
/* Hide the Slave input widgets */ /* Hide the Slave input widgets */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment