Commit 0f3899ce authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Put the Simple Prefs Icons one above the other.

parent 8ff6e867
......@@ -58,11 +58,15 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
{
setIconSize( QSize( ITEM_HEIGHT,ITEM_HEIGHT ) );
setAlternatingRowColors( true );
#define ADD_CATEGORY( id, label, icon ) \
addItem( label ); \
item( id )->setIcon( QIcon( QPixmap( icon ) ) ); \
item( id )->setData( Qt::UserRole, qVariantFromValue( (int)id ) );
setViewMode(QListView::IconMode);
setMaximumWidth(200);
#define ADD_CATEGORY( id, label, icon ) \
addItem( label ); \
item( id )->setIcon( QIcon( QPixmap( icon ) ) ); \
item( id )->setData( Qt::UserRole, qVariantFromValue( (int)id ) ); \
item( id )->setTextAlignment(Qt::AlignHCenter); \
item( id )->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
ADD_CATEGORY( SPrefsVideo, qtr("Video"), video_50x50_xpm );
ADD_CATEGORY( SPrefsAudio, qtr("Audio"), audio_50x50_xpm );
......
......@@ -32,7 +32,6 @@ enum {
SPrefsVideo = 0,
SPrefsAudio,
SPrefsInputAndCodecs,
// SPrefsPlaylist,
SPrefsInterface,
SPrefsSubtitles,
SPrefsHotkeys,
......
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