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
cc237837
Commit
cc237837
authored
Jan 14, 2010
by
Clement CHAVANCE
Browse files
Clipcount is now correctly imported
parent
d8eace07
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/Gui/PreviewWidget.cpp
View file @
cc237837
...
...
@@ -189,6 +189,8 @@ void PreviewWidget::createNewClipFromMarkers()
return
;
beg
=
beg
<
0
?
0
:
beg
;
qDebug
()
<<
"PreviewWidget::createNewClipFromMarkers begin"
<<
beg
;
qDebug
()
<<
"PreviewWidget::createNewClipFromMarkers end"
<<
end
;
Clip
*
part
=
new
Clip
(
selectedMedia
,
beg
,
end
);
//Adding the newly created clip to the media
...
...
src/Gui/library/MediaCellView.cpp
View file @
cc237837
...
...
@@ -65,6 +65,11 @@ void MediaCellView::setTitle( const QString& title )
m_ui
->
title
->
setText
(
title
);
}
void
MediaCellView
::
setNbClips
(
int
nbClip
)
{
m_ui
->
clipCount
->
setText
(
QString
::
number
(
nbClip
)
);
}
void
MediaCellView
::
setThumbnail
(
const
QPixmap
&
pixmap
)
{
m_ui
->
thumbnail
->
setScaledContents
(
false
);
...
...
src/Gui/library/MediaCellView.h
View file @
cc237837
...
...
@@ -42,6 +42,7 @@ public:
~
MediaCellView
();
void
setTitle
(
const
QString
&
title
);
void
setNbClips
(
int
nbClip
);
void
setThumbnail
(
const
QPixmap
&
pixmap
);
const
QPixmap
*
getThumbnail
()
const
;
/**
...
...
src/Gui/library/MediaListViewController.cpp
View file @
cc237837
...
...
@@ -55,6 +55,7 @@ void MediaListViewController::newMediaLoaded( const QUuid& uuid )
if
(
media
->
getMetadata
()
!=
Media
::
ParsedWithSnapshot
)
connect
(
media
,
SIGNAL
(
snapshotComputed
(
Media
*
)
),
this
,
SLOT
(
updateCell
(
Media
*
)
)
);
cell
->
setNbClips
(
media
->
clips
()
->
size
()
);
cell
->
setThumbnail
(
media
->
getSnapshot
()
);
cell
->
setTitle
(
media
->
getFileName
()
);
cell
->
setLength
(
media
->
getLengthMS
()
);
...
...
src/Renderer/ClipRenderer.cpp
View file @
cc237837
...
...
@@ -83,6 +83,8 @@ void ClipRenderer::setClip( Clip* clip )
m_selectedMedia
=
clip
->
getParent
();
m_begin
=
clip
->
getBegin
();
m_end
=
clip
->
getEnd
();
qDebug
()
<<
"ClipRenderer::setClip begin"
<<
m_begin
;
qDebug
()
<<
"ClipRenderer::setClip end"
<<
m_end
;
if
(
m_isRendering
==
true
)
m_mediaChanged
=
true
;
else
...
...
Write
Preview
Supports
Markdown
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