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
a8c86004
Commit
a8c86004
authored
Jun 16, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt/EPG: use a qgraphicsitem_cast instead of dynamic_cast
parent
a5909adc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
modules/gui/qt4/components/epg/EPGView.cpp
modules/gui/qt4/components/epg/EPGView.cpp
+2
-10
No files found.
modules/gui/qt4/components/epg/EPGView.cpp
View file @
a8c86004
...
@@ -60,11 +60,7 @@ void EPGView::setStartTime( const QDateTime& startTime )
...
@@ -60,11 +60,7 @@ void EPGView::setStartTime( const QDateTime& startTime )
for
(
int
i
=
0
;
i
<
itemList
.
count
();
++
i
)
for
(
int
i
=
0
;
i
<
itemList
.
count
();
++
i
)
{
{
#ifndef WIN32
EPGItem
*
item
=
qgraphicsitem_cast
<
EPGItem
*>
(
itemList
.
at
(
i
)
);
EPGItem
*
item
=
dynamic_cast
<
EPGItem
*>
(
itemList
.
at
(
i
)
);
#else
EPGItem
*
item
=
NULL
;
#endif
if
(
!
item
)
continue
;
if
(
!
item
)
continue
;
item
->
setStart
(
item
->
start
().
addSecs
(
diff
)
);
item
->
setStart
(
item
->
start
().
addSecs
(
diff
)
);
}
}
...
@@ -114,11 +110,7 @@ void EPGView::updateDuration()
...
@@ -114,11 +110,7 @@ void EPGView::updateDuration()
for
(
int
i
=
0
;
i
<
list
.
count
();
++
i
)
for
(
int
i
=
0
;
i
<
list
.
count
();
++
i
)
{
{
#ifndef WIN32
EPGItem
*
item
=
qgraphicsitem_cast
<
EPGItem
*>
(
list
.
at
(
i
)
);
EPGItem
*
item
=
dynamic_cast
<
EPGItem
*>
(
list
.
at
(
i
)
);
#else
EPGItem
*
item
=
NULL
;
#endif
if
(
!
item
)
continue
;
if
(
!
item
)
continue
;
QDateTime
itemEnd
=
item
->
start
().
addSecs
(
item
->
duration
()
);
QDateTime
itemEnd
=
item
->
start
().
addSecs
(
item
->
duration
()
);
...
...
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