Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
2b0ede49
Commit
2b0ede49
authored
Nov 12, 2009
by
Ludovic Fauvet
Browse files
Timeline: get the FPS value from the settings
parent
284a41ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/GUI/TracksRuler.cpp
View file @
2b0ede49
...
...
@@ -27,13 +27,20 @@
#include
<QPolygon>
#include
"TracksRuler.h"
#include
"TracksView.h"
#include
"SettingsManager.h"
const
int
TracksRuler
::
comboScale
[]
=
{
1
,
2
,
5
,
10
,
25
,
50
,
125
,
250
,
500
,
725
,
1500
,
3000
,
6000
,
12000
};
TracksRuler
::
TracksRuler
(
TracksView
*
tracksView
,
QWidget
*
parent
)
:
QWidget
(
parent
),
m_tracksView
(
tracksView
),
m_duration
(
0
),
m_offset
(
0
)
{
m_fps
=
30
;
//TODO We should really get that from the
// workflow and not directly from the settings.
SettingsManager
*
settings
=
SettingsManager
::
getInstance
();
settings
->
loadDefaultsSettings
();
m_fps
=
qRound
(
settings
->
getValue
(
"default"
,
"VLMCPreviewFPS"
).
toDouble
()
);
m_factor
=
1
;
m_scale
=
3
;
m_littleMarkDistance
=
FRAME_SIZE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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