Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
2b23bde4
Commit
2b23bde4
authored
Mar 19, 2020
by
Jean-Baptiste Mardelle
Browse files
Larger monitor overlay timecode / fps
parent
947a8a61
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/monitor/view/kdenliveclipmonitor.qml
View file @
2b23bde4
...
...
@@ -27,7 +27,7 @@ Item {
property
bool
showAudiothumb
:
false
property
bool
showToolbar
:
false
property
string
clipName
:
controller
.
clipName
property
real
baseUnit
:
fontMetrics
.
font
.
pixelSize
*
0.8
property
real
baseUnit
:
fontMetrics
.
font
.
pixelSize
property
int
duration
:
300
property
int
mouseRulerPos
:
0
property
double
frameSize
:
10
...
...
@@ -39,7 +39,7 @@ Item {
FontMetrics
{
id
:
fontMetrics
font
.family
:
"
Arial
"
font
:
fixedFont
}
signal
editCurrentMarker
()
...
...
@@ -208,34 +208,42 @@ Item {
}
}
Text
{
Label
{
id
:
timecode
font
:
fixedFont
font.family
:
fontMetrics
.
font
.
family
font.pointSize
:
1.5
*
fontMetrics
.
font
.
pointSize
objectName
:
"
timecode
"
color
:
"
white
"
style
:
Text
.
Outline
;
styleColor
:
"
black
"
color
:
"
#ffffff
"
padding
:
2
background
:
Rectangle
{
color
:
"
#66000000
"
}
text
:
controller
.
toTimecode
(
controller
.
position
)
visible
:
root
.
showTimecode
anchors
{
right
:
parent
.
right
bottom
:
parent
.
bottom
bottomMargin
:
(
audioThumb
.
stateVisible
&&
!
audioThumb
.
isAudioClip
)
?
audioThumb
.
height
:
0
rightMargin
:
4
}
}
Text
{
Label
{
id
:
fpsdropped
font
:
fixedFont
font.family
:
fontMetrics
.
font
.
family
font.pointSize
:
1.5
*
fontMetrics
.
font
.
pointSize
objectName
:
"
fpsdropped
"
color
:
root
.
dropped
?
"
red
"
:
"
white
"
style
:
Text
.
Outline
;
styleColor
:
"
black
"
color
:
"
#ffffff
"
padding
:
2
background
:
Rectangle
{
color
:
root
.
dropped
?
"
#99ff0000
"
:
"
#66000000
"
}
text
:
i18n
(
"
%1 fps
"
,
root
.
fps
)
visible
:
root
.
showFps
anchors
{
right
:
timecode
.
visible
?
timecode
.
left
:
parent
.
right
bottom
:
parent
.
bottom
rightMargin
:
10
bottomMargin
:
(
audioThumb
.
stateVisible
&&
!
audioThumb
.
isAudioClip
)
?
audioThumb
.
height
:
0
rightMargin
:
timecode
.
visible
?
0
:
4
}
}
Label
{
...
...
src/monitor/view/kdenlivemonitor.qml
View file @
2b23bde4
...
...
@@ -34,7 +34,7 @@ Item {
FontMetrics
{
id
:
fontMetrics
font
.family
:
"
Arial
"
font
:
fixedFont
}
signal
editCurrentMarker
()
...
...
@@ -116,13 +116,16 @@ Item {
id
:
monitorOverlay
anchors.fill
:
parent
Text
{
Label
{
id
:
timecode
font
:
fixedFont
font.family
:
fontMetrics
.
font
.
family
font.pointSize
:
1.5
*
fontMetrics
.
font
.
pointSize
objectName
:
"
timecode
"
color
:
"
white
"
style
:
Text
.
Outline
;
styleColor
:
"
black
"
color
:
"
#ffffff
"
padding
:
2
background
:
Rectangle
{
color
:
"
#66000000
"
}
text
:
controller
.
toTimecode
(
controller
.
position
)
visible
:
root
.
showTimecode
anchors
{
...
...
@@ -131,19 +134,22 @@ Item {
rightMargin
:
4
}
}
Text
{
Label
{
id
:
fpsdropped
font
:
fixedFont
font.family
:
fontMetrics
.
font
.
family
font.pointSize
:
1.5
*
fontMetrics
.
font
.
pointSize
objectName
:
"
fpsdropped
"
color
:
root
.
dropped
?
"
red
"
:
"
white
"
style
:
Text
.
Outline
;
styleColor
:
"
black
"
color
:
"
#ffffff
"
padding
:
2
background
:
Rectangle
{
color
:
root
.
dropped
?
"
#99ff0000
"
:
"
#66000000
"
}
text
:
i18n
(
"
%1 fps
"
,
root
.
fps
)
visible
:
root
.
showFps
anchors
{
right
:
timecode
.
visible
?
timecode
.
left
:
parent
.
right
bottom
:
parent
.
bottom
rightMargin
:
10
rightMargin
:
timecode
.
visible
?
0
:
4
}
}
Label
{
...
...
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