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
11233c1b
Commit
11233c1b
authored
Oct 17, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: dynamic_cast -> qobject_cast
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
46fa336f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+4
-4
modules/gui/qt4/util/pictureflow.cpp
modules/gui/qt4/util/pictureflow.cpp
+2
-2
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
11233c1b
...
...
@@ -245,7 +245,7 @@ void OpenDialog::showTab( int i_tab )
show
();
if
(
ui
.
Tab
->
currentWidget
()
!=
NULL
)
{
OpenPanel
*
panel
=
dynamic
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
currentWidget
()
);
OpenPanel
*
panel
=
qobject
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
currentWidget
()
);
assert
(
panel
);
panel
->
onFocus
();
}
...
...
@@ -285,7 +285,7 @@ void OpenDialog::signalCurrent( int i_tab )
if
(
i_tab
==
OPEN_CAPTURE_TAB
)
captureOpenPanel
->
initialize
();
if
(
ui
.
Tab
->
currentWidget
()
!=
NULL
)
{
OpenPanel
*
panel
=
dynamic
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
currentWidget
()
);
OpenPanel
*
panel
=
qobject
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
currentWidget
()
);
assert
(
panel
);
panel
->
onFocus
();
panel
->
updateMRL
();
...
...
@@ -300,7 +300,7 @@ void OpenDialog::cancel()
{
/* Clear the panels */
for
(
int
i
=
0
;
i
<
OPEN_TAB_MAX
;
i
++
)
dynamic
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
widget
(
i
)
)
->
clear
();
qobject
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
widget
(
i
)
)
->
clear
();
/* Clear the variables */
itemsMRL
.
clear
();
...
...
@@ -359,7 +359,7 @@ void OpenDialog::enqueue( bool b_enqueue )
}
for
(
int
i
=
0
;
i
<
OPEN_TAB_MAX
;
i
++
)
dynamic
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
widget
(
i
)
)
->
onAccept
();
qobject
_cast
<
OpenPanel
*>
(
ui
.
Tab
->
widget
(
i
)
)
->
onAccept
();
/* Sort alphabetically */
itemsMRL
.
sort
();
...
...
modules/gui/qt4/util/pictureflow.cpp
View file @
11233c1b
...
...
@@ -631,9 +631,9 @@ QRect PictureFlowSoftwareRenderer::renderSlide(const SlideInfo &slide, int col1,
QString
artURL
;
PLModel
*
plm
=
dynamic
_cast
<
PLModel
*>
(
state
->
model
);
PLModel
*
plm
=
qobject
_cast
<
PLModel
*>
(
state
->
model
);
#ifdef MEDIA_LIBRARY
MLModel
*
mlm
=
dynamic
_cast
<
MLModel
*>
(
state
->
model
);
MLModel
*
mlm
=
qobject
_cast
<
MLModel
*>
(
state
->
model
);
#endif
if
(
plm
!=
0
)
{
...
...
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