Commit 9eed4949 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4 - Playlist: move the column selection to a submenu.

parent 4c813447
......@@ -959,8 +959,10 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
ContextUpdateMapper = new QSignalMapper(this);
QMenu *selectColMenu = new QMenu( qtr("Show columns") );
#define ADD_META_ACTION( meta ) { \
QAction* option = menu->addAction( qfu(VLC_META_##meta) ); \
QAction* option = selectColMenu->addAction( qfu(VLC_META_##meta) ); \
option->setCheckable( true ); \
option->setChecked( rootItem->i_showflags & VLC_META_ENGINE_##meta ); \
ContextUpdateMapper->setMapping( option, VLC_META_ENGINE_##meta ); \
......@@ -978,7 +980,7 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
ADD_META_ACTION( DESCRIPTION );
#undef ADD_META_ACTION
menu->addMenu( selectColMenu );
menu->popup( point );
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment