]> git.sesse.net Git - vlc/commitdiff
Qt: Add icons on open dialog tabs.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 3 Jun 2009 22:51:45 +0000 (00:51 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 3 Jun 2009 22:51:45 +0000 (00:51 +0200)
Idea and code from Francois Cartegnie

modules/gui/qt4/dialogs/open.cpp

index 372cb060705a0caf1368bc11e28aa512254cb93e..0670580dbe54de8fad7f48bb4008eb99e6a53a7a 100644 (file)
@@ -97,10 +97,13 @@ OpenDialog::OpenDialog( QWidget *parent,
     captureOpenPanel = new CaptureOpenPanel( this, p_intf );
 
     /* Insert the tabs */
-    ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, qtr( "&File" ) );
-    ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, qtr( "&Disc" ) );
-    ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, qtr( "&Network" ) );
-    ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel,
+    ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, QIcon( ":/folder-grey" ),
+                       qtr( "&File" ) );
+    ui.Tab->insertTab( OPEN_DISC_TAB, discOpenPanel, QIcon( ":/disc" ),
+                       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" ) );
 
     /* Hide the Slave input widgets */