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