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
44676a05
Commit
44676a05
authored
Jun 18, 2010
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt/EPG: Aesthetic modifications.
Feel free to change what you don't like.
parent
1ef8da27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
modules/gui/qt4/components/epg/EPGItem.cpp
modules/gui/qt4/components/epg/EPGItem.cpp
+11
-7
modules/gui/qt4/components/epg/EPGView.hpp
modules/gui/qt4/components/epg/EPGView.hpp
+1
-1
No files found.
modules/gui/qt4/components/epg/EPGItem.cpp
View file @
44676a05
...
@@ -59,15 +59,19 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
...
@@ -59,15 +59,19 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
QTransform
viewPortTransform
=
m_view
->
viewportTransform
();
QTransform
viewPortTransform
=
m_view
->
viewportTransform
();
QRectF
mapped
=
deviceTransform
(
viewPortTransform
).
mapRect
(
boundingRect
()
);
QRectF
mapped
=
deviceTransform
(
viewPortTransform
).
mapRect
(
boundingRect
()
);
painter
->
setPen
(
QPen
(
Qt
::
black
)
);
if
(
m_current
)
if
(
m_current
)
painter
->
setBrush
(
QBrush
(
QColor
(
100
,
100
,
100
)
)
);
{
painter
->
setBrush
(
QBrush
(
QColor
(
244
,
102
,
146
)
)
);
painter
->
setPen
(
QPen
(
QColor
(
244
,
102
,
146
)
)
);
}
else
else
painter
->
setBrush
(
QBrush
(
QColor
(
150
,
150
,
150
)
)
);
{
painter
->
setBrush
(
QBrush
(
QColor
(
201
,
217
,
242
)
)
);
painter
->
drawRect
(
mapped
);
painter
->
setPen
(
QPen
(
QColor
(
201
,
217
,
242
)
)
);
}
mapped
.
adjust
(
1
,
2
,
-
1
,
-
2
);
painter
->
drawRoundedRect
(
mapped
,
10
,
10
);
/* Draw text */
/* Draw text */
...
@@ -80,7 +84,7 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
...
@@ -80,7 +84,7 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
// Adjust the drawing rect
// Adjust the drawing rect
mapped
.
adjust
(
6
,
6
,
-
6
,
-
6
);
mapped
.
adjust
(
6
,
6
,
-
6
,
-
6
);
painter
->
setPen
(
Qt
::
white
);
painter
->
setPen
(
Qt
::
black
);
/* Draw the title. */
/* Draw the title. */
painter
->
drawText
(
mapped
,
Qt
::
AlignTop
|
Qt
::
AlignLeft
,
fm
.
elidedText
(
m_name
,
Qt
::
ElideRight
,
mapped
.
width
()
)
);
painter
->
drawText
(
mapped
,
Qt
::
AlignTop
|
Qt
::
AlignLeft
,
fm
.
elidedText
(
m_name
,
Qt
::
ElideRight
,
mapped
.
width
()
)
);
...
...
modules/gui/qt4/components/epg/EPGView.hpp
View file @
44676a05
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <QGraphicsView>
#include <QGraphicsView>
#include <QList>
#include <QList>
#define TRACKS_HEIGHT
75
#define TRACKS_HEIGHT
60
class
QDateTime
;
class
QDateTime
;
class
EPGView
:
public
QGraphicsView
class
EPGView
:
public
QGraphicsView
...
...
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