vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Aug 27 13:40:24 2012 +0200| [b216ade19af2aeba136bca8f251f8c675960357c] | committer: Jean-Baptiste Kempf
Qt view mode are exclusives > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b216ade19af2aeba136bca8f251f8c675960357c --- modules/gui/qt4/components/playlist/standardpanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index a676924..4fac9f2 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -261,11 +261,13 @@ bool StandardPLPanel::popup( const QModelIndex & index, const QPoint &point, con QSignalMapper *viewSelectionMapper = new QSignalMapper( this ); CONNECT( viewSelectionMapper, mapped( int ), this, showView( int ) ); + QActionGroup *viewGroup = new QActionGroup( this ); # define MAX_VIEW StandardPLPanel::VIEW_COUNT for( int i = 0; i < MAX_VIEW; i++ ) { QAction *action = viewMenu->addAction( viewNames[i] ); action->setCheckable( true ); + viewGroup->addAction( action ); viewSelectionMapper->setMapping( action, i ); CONNECT( action, triggered(), viewSelectionMapper, map() ); if( currentViewIndex() == i ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
