[vlc-devel] [PATCH] gui: Added icons in the SysTrayMenu (Increase Volume / Decrease Volume / Mute / Speed->Faster(fine) / Speed->Slower(fine)). modified: menus.cpp -> void VLCMenuBar::PopupMenuControlEntries, static inline void VolumeEntries
Lukas Juhrich
ljuhrich.yahoo at gmail.com
Fri Feb 28 22:37:50 CET 2014
Used Existing resources, nothing more added.
NOTE: Please correct me if I made a formal mistake in this patch (newbie)!
---
modules/gui/qt4/menus.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 6278104..7c25c04 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -586,13 +586,13 @@ static inline void VolumeEntries( intf_thread_t *p_intf, QMenu *current )
{
current->addSeparator();
- QAction *action = current->addAction( qtr( "&Increase Volume" ),
+ QAction *action = current->addAction( QIcon( ":/toolbar/volume-high" ), qtr( "&Increase Volume" ),
ActionsManager::getInstance( p_intf ), SLOT( AudioUp() ) );
action->setData( VLCMenuBar::ACTION_STATIC );
- action = current->addAction( qtr( "&Decrease Volume" ),
+ action = current->addAction( QIcon( ":/toolbar/volume-low" ), qtr( "&Decrease Volume" ),
ActionsManager::getInstance( p_intf ), SLOT( AudioDown() ) );
action->setData( VLCMenuBar::ACTION_STATIC );
- action = current->addAction( qtr( "&Mute" ),
+ action = current->addAction( QIcon( ":/toolbar/volume-muted" ), qtr( "&Mute" ),
ActionsManager::getInstance( p_intf ), SLOT( toggleMuteAudio() ) );
action->setData( VLCMenuBar::ACTION_STATIC );
}
@@ -868,7 +868,7 @@ void VLCMenuBar::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf,
action->setData( ACTION_STATIC );
}
- action = rateMenu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(),
+ action = rateMenu->addAction( QIcon( ":/toolbar/faster2" ), qtr( "Faster (fine)" ), THEMIM->getIM(),
SLOT( littlefaster() ) );
action->setData( ACTION_STATIC );
@@ -876,7 +876,7 @@ void VLCMenuBar::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf,
SLOT( normalRate() ) );
action->setData( ACTION_STATIC );
- action = rateMenu->addAction( qtr( "Slower (fine)" ), THEMIM->getIM(),
+ action = rateMenu->addAction( QIcon( ":/toolbar/slower2" ), qtr( "Slower (fine)" ), THEMIM->getIM(),
SLOT( littleslower() ) );
action->setData( ACTION_STATIC );
--
1.7.9.5
More information about the vlc-devel
mailing list