Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
229c807c
Commit
229c807c
authored
Jul 20, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PLModel: Move font's contextual style to views
parent
12d6985f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+1
-4
modules/gui/qt4/components/playlist/views.cpp
modules/gui/qt4/components/playlist/views.cpp
+2
-0
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
229c807c
...
...
@@ -363,10 +363,7 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
}
else
if
(
role
==
Qt
::
FontRole
)
{
QFont
f
;
if
(
isCurrent
(
index
)
)
f
.
setBold
(
true
);
return
QVariant
(
f
);
return
QVariant
(
QFont
()
);
}
else
if
(
role
==
Qt
::
ToolTipRole
)
{
...
...
modules/gui/qt4/components/playlist/views.cpp
View file @
229c807c
...
...
@@ -80,6 +80,7 @@ void PlIconViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
QFont
font
(
index
.
data
(
Qt
::
FontRole
).
value
<
QFont
>
()
);
font
.
setPointSize
(
__MAX
(
font
.
pointSize
()
+
i_zoom
,
4
)
);
font
.
setBold
(
option
.
state
&
QStyle
::
State_Selected
);
painter
->
setFont
(
font
);
QFontMetrics
fm
=
painter
->
fontMetrics
();
...
...
@@ -220,6 +221,7 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
//Draw title info
f
.
setItalic
(
true
);
f
.
setPointSize
(
__MAX
(
f
.
pointSize
()
+
i_zoom
,
4
)
);
f
.
setBold
(
option
.
state
&
QStyle
::
State_Selected
);
painter
->
setFont
(
f
);
QFontMetrics
fm
(
painter
->
fontMetrics
()
);
...
...
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