Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
a7fa3cb2
Commit
a7fa3cb2
authored
Apr 13, 2010
by
Hugo Beauzée-Luyssen
Browse files
Clip: Adding a isChild method.
parent
05e0cd20
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Media/Clip.cpp
View file @
a7fa3cb2
...
...
@@ -334,3 +334,17 @@ Clip::fullId() const
}
return
id
;
}
bool
Clip
::
isChild
(
const
QUuid
&
uuid
)
const
{
Clip
*
c
=
m_parent
;
while
(
c
!=
NULL
)
{
if
(
c
->
m_uuid
==
uuid
)
return
true
;
c
=
c
->
m_parent
;
}
return
false
;
}
src/Media/Clip.h
View file @
a7fa3cb2
...
...
@@ -135,6 +135,11 @@ class Clip : public QObject
*/
QString
fullId
()
const
;
/**
* \return true if the clip is a child of the given clip uuid
*/
bool
isChild
(
const
QUuid
&
uuid
)
const
;
private:
Media
*
m_media
;
/**
...
...
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