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
8d17c211
Commit
8d17c211
authored
Mar 05, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPGItem: fix gradient reference
parent
c0a8feb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/gui/qt4/components/epg/EPGItem.cpp
modules/gui/qt4/components/epg/EPGItem.cpp
+2
-1
No files found.
modules/gui/qt4/components/epg/EPGItem.cpp
View file @
8d17c211
...
...
@@ -55,7 +55,6 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *option,
{
QPen
pen
;
QColor
gradientColor
;
QLinearGradient
gradient
(
m_boundingRect
.
topLeft
(),
m_boundingRect
.
bottomLeft
()
);
// Draw in view's coordinates
painter
->
setWorldMatrixEnabled
(
false
);
...
...
@@ -67,6 +66,8 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *option,
QTransform
viewPortTransform
=
m_view
->
viewportTransform
();
QRectF
mapped
=
deviceTransform
(
viewPortTransform
).
mapRect
(
boundingRect
()
);
QLinearGradient
gradient
(
mapped
.
topLeft
(),
mapped
.
bottomLeft
()
);
if
(
m_current
||
m_simultaneous
)
gradientColor
.
setRgb
(
244
,
125
,
0
,
m_simultaneous
?
192
:
255
);
else
...
...
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