Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
f93f1f48
Commit
f93f1f48
authored
Sep 24, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now PreviewWidget slider can be used to set the preview starting frame.
parent
16a8ae01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
src/GUI/PreviewWidget.cpp
src/GUI/PreviewWidget.cpp
+0
-5
src/Workflow/MainWorkflow.cpp
src/Workflow/MainWorkflow.cpp
+7
-7
No files found.
src/GUI/PreviewWidget.cpp
View file @
f93f1f48
...
...
@@ -96,11 +96,6 @@ void PreviewWidget::seekSliderPressed()
void
PreviewWidget
::
seekSliderMoved
(
int
)
{
if
(
m_renderer
->
isRendering
()
==
false
)
{
m_ui
->
seekSlider
->
setValue
(
0
);
return
;
}
if
(
m_ui
->
seekSlider
->
value
()
==
m_ui
->
seekSlider
->
maximum
()
)
{
m_endReached
=
true
;
...
...
src/Workflow/MainWorkflow.cpp
View file @
f93f1f48
...
...
@@ -187,13 +187,13 @@ void MainWorkflow::previousFrame()
void
MainWorkflow
::
setPosition
(
float
pos
)
{
if
(
m_renderStarted
==
fals
e
)
return
;
//Since any track can be reactivated, we reactivate all of them, and let them
//unable themself if required.
for
(
unsigned
int
i
=
0
;
i
<
m_trackCount
;
++
i
)
activateTrack
(
i
);
if
(
m_renderStarted
==
tru
e
)
{
//Since any track can be reactivated, we reactivate all of them, and let them
//unable themself if required.
for
(
unsigned
int
i
=
0
;
i
<
m_trackCount
;
++
i
)
activateTrack
(
i
);
}
qint64
frame
=
static_cast
<
qint64
>
(
(
float
)
m_length
*
pos
);
m_currentFrame
=
frame
;
emit
frameChanged
(
frame
);
...
...
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