qt4 - menus. Try to add some pictures to have more User-friendly menus.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jun 2007 23:11:14 +0000 (23:11 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jun 2007 23:11:14 +0000 (23:11 +0000)
modules/gui/qt4/menus.cpp
modules/gui/qt4/pixmaps/vlc_help_16px.png [new file with mode: 0644]
modules/gui/qt4/pixmaps/vlc_info_16px.png [new file with mode: 0644]
modules/gui/qt4/pixmaps/vlc_next_16px.png [new file with mode: 0644]
modules/gui/qt4/pixmaps/vlc_previous_16px.png [new file with mode: 0644]
modules/gui/qt4/res.qrc

index 03e8015..c2076f7 100644 (file)
@@ -399,7 +399,7 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
 QMenu *QVLCMenu::HelpMenu()
 {
     QMenu *menu = new QMenu();
-    DP_SADD( menu, qtr("Help") , "", "", helpDialog(), "F1" );
+    DP_SADD( menu, qtr("Help") , "", ":/pixmaps/vlc_help_16px.png", helpDialog(), "F1" );
     menu->addSeparator();
     DP_SADD( menu, qtr(I_MENU_ABOUT), "", "", aboutDialog(), "Ctrl+F1");
     return menu;
@@ -437,8 +437,9 @@ QMenu *QVLCMenu::HelpMenu()
         MIM_SADD( menu, qtr("Play"), "", "", togglePlayPause() ); \
     \
     MIM_SADD( menu, qtr("Stop"), "", "", stop() ); \
-    MIM_SADD( menu, qtr("Previous"), "", "", prev() ); \
-    MIM_SADD( menu, qtr("Next"), "", "", next() );
+    MIM_SADD( menu, qtr("Previous"), "", ":/pixmaps/vlc_previous_16px.png", \
+            prev() ); \
+    MIM_SADD( menu, qtr("Next"), "", ":/pixmaps/vlc_next_16px.png", next() );
 
 #define POPUP_STATIC_ENTRIES \
     POPUP_PLAY_ENTRIES( menu ); \
diff --git a/modules/gui/qt4/pixmaps/vlc_help_16px.png b/modules/gui/qt4/pixmaps/vlc_help_16px.png
new file mode 100644 (file)
index 0000000..4996b54
Binary files /dev/null and b/modules/gui/qt4/pixmaps/vlc_help_16px.png differ
diff --git a/modules/gui/qt4/pixmaps/vlc_info_16px.png b/modules/gui/qt4/pixmaps/vlc_info_16px.png
new file mode 100644 (file)
index 0000000..e37b9a3
Binary files /dev/null and b/modules/gui/qt4/pixmaps/vlc_info_16px.png differ
diff --git a/modules/gui/qt4/pixmaps/vlc_next_16px.png b/modules/gui/qt4/pixmaps/vlc_next_16px.png
new file mode 100644 (file)
index 0000000..dfcfddd
Binary files /dev/null and b/modules/gui/qt4/pixmaps/vlc_next_16px.png differ
diff --git a/modules/gui/qt4/pixmaps/vlc_previous_16px.png b/modules/gui/qt4/pixmaps/vlc_previous_16px.png
new file mode 100644 (file)
index 0000000..5531233
Binary files /dev/null and b/modules/gui/qt4/pixmaps/vlc_previous_16px.png differ
index f72a25b..d6c5073 100644 (file)
@@ -18,5 +18,9 @@
   <file>pixmaps/spref_cone_Hotkeys_64.png</file>
   <file>pixmaps/spref_cone_Subtitles_64.png</file>
   <file>pixmaps/spref_cone_Interface_64.png</file>
+  <file>pixmaps/vlc_help_16px.png</file>
+  <file>pixmaps/vlc_info_16px.png</file>
+  <file>pixmaps/vlc_next_16px.png</file>
+  <file>pixmaps/vlc_previous_16px.png</file>
  </qresource>
 </RCC>