Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4f5a4010
Commit
4f5a4010
authored
Mar 03, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: adjust item text position in listView for better readability
parent
4e5dff5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/qt4/components/playlist/icon_view.cpp
modules/gui/qt4/components/playlist/icon_view.cpp
+4
-3
No files found.
modules/gui/qt4/components/playlist/icon_view.cpp
View file @
4f5a4010
...
...
@@ -266,7 +266,7 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
if
(
!
artistAlbum
.
isEmpty
()
)
{
textRect
.
setHeight
(
fm
.
height
()
);
textRect
.
moveBottom
(
option
.
rect
.
center
().
y
()
-
1
);
textRect
.
moveBottom
(
option
.
rect
.
center
().
y
()
-
2
);
}
//Draw children indicator
...
...
@@ -289,7 +289,8 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
painter
->
setFont
(
f
);
fm
=
painter
->
fontMetrics
();
textRect
.
moveTop
(
textRect
.
bottom
()
+
2
);
textRect
.
moveTop
(
textRect
.
bottom
()
+
4
);
textRect
.
setLeft
(
textRect
.
x
()
+
20
);
painter
->
drawText
(
textRect
,
fm
.
elidedText
(
artistAlbum
,
Qt
::
ElideRight
,
textRect
.
width
()
),
...
...
@@ -304,7 +305,7 @@ QSize PlListViewItemDelegate::sizeHint ( const QStyleOptionViewItem & option, co
QFont
f
;
f
.
setBold
(
true
);
QFontMetrics
fm
(
f
);
int
height
=
qMax
(
LISTVIEW_ART_SIZE
,
2
*
fm
.
height
()
+
2
)
+
6
;
int
height
=
qMax
(
LISTVIEW_ART_SIZE
,
2
*
fm
.
height
()
+
4
)
+
6
;
return
QSize
(
0
,
height
);
}
...
...
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