Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0f3899ce
Commit
0f3899ce
authored
Mar 02, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the Simple Prefs Icons one above the other.
parent
8ff6e867
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+9
-5
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+0
-1
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
0f3899ce
...
...
@@ -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
);
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
0f3899ce
...
...
@@ -32,7 +32,6 @@ enum {
SPrefsVideo
=
0
,
SPrefsAudio
,
SPrefsInputAndCodecs
,
// SPrefsPlaylist,
SPrefsInterface
,
SPrefsSubtitles
,
SPrefsHotkeys
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment