[vlc-devel] commit: Qt4: Faster/Slower buttons for whiners. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Sep 21 11:00:43 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Sep 21 02:03:41 2008 -0700| [013aee5fa7f2026b694bf326092d0e330b8fd3eb] | committer: Jean-Baptiste Kempf 

Qt4: Faster/Slower buttons for whiners.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=013aee5fa7f2026b694bf326092d0e330b8fd3eb
---

 modules/gui/qt4/Modules.am                       |    2 ++
 modules/gui/qt4/components/interface_widgets.cpp |    4 ++--
 modules/gui/qt4/pixmaps/faster.png               |  Bin 0 -> 274 bytes
 modules/gui/qt4/pixmaps/slower.png               |  Bin 0 -> 275 bytes
 modules/gui/qt4/vlc.qrc                          |    2 ++
 5 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/Modules.am b/modules/gui/qt4/Modules.am
index d3b0d86..de2a7ed 100644
--- a/modules/gui/qt4/Modules.am
+++ b/modules/gui/qt4/Modules.am
@@ -101,6 +101,8 @@ res_DEPENDENCIES = \
 	pixmaps/noart.png \
 	pixmaps/pause_16px.png \
 	pixmaps/pause.png \
+	pixmaps/faster.png \
+	pixmaps/slower.png \
 	pixmaps/play_16px.png \
 	pixmaps/playlist/add.png \
 	pixmaps/playlist/playlist.png \
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 1b01687..a77f726 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -518,14 +518,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
     slowerButton->setMaximumSize( QSize( 26, 20 ) );
     slowerButton->setFocusPolicy( Qt::NoFocus );
 
-    BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
+    BUTTON_SET_ACT_I( slowerButton, "", slower, qtr( "Slower" ), slower() );
 
     fasterButton = new QToolButton;
     fasterButton->setAutoRaise( true );
     fasterButton->setMaximumSize( QSize( 26, 20 ) );
     fasterButton->setFocusPolicy( Qt::NoFocus );
 
-    BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
+    BUTTON_SET_ACT_I( fasterButton, "", faster, qtr( "Faster" ), faster() );
 
     /* advanced Controls handling */
     b_advancedVisible = b_advControls;
diff --git a/modules/gui/qt4/pixmaps/faster.png b/modules/gui/qt4/pixmaps/faster.png
new file mode 100644
index 0000000..9aec6d1
Binary files /dev/null and b/modules/gui/qt4/pixmaps/faster.png differ
diff --git a/modules/gui/qt4/pixmaps/slower.png b/modules/gui/qt4/pixmaps/slower.png
new file mode 100644
index 0000000..06a30bc
Binary files /dev/null and b/modules/gui/qt4/pixmaps/slower.png differ
diff --git a/modules/gui/qt4/vlc.qrc b/modules/gui/qt4/vlc.qrc
index 579336f..e437e1d 100644
--- a/modules/gui/qt4/vlc.qrc
+++ b/modules/gui/qt4/vlc.qrc
@@ -74,6 +74,8 @@
   <file alias="pause_b">pixmaps/pause.png</file>
   <file alias="play">pixmaps/play_16px.png</file>
   <file alias="play_b">pixmaps/play.png</file>
+  <file alias="faster">pixmaps/faster.png</file>
+  <file alias="slower">pixmaps/slower.png</file>
   <file alias="previous">pixmaps/previous_16px.png</file>
   <file alias="previous_b">pixmaps/previous.png</file>
   <file alias="stop">pixmaps/stop_16px.png</file>




More information about the vlc-devel mailing list