Skip to content
GitLab
Menu
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
ee92fedf
Commit
ee92fedf
authored
Dec 04, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix track name font size and collapsed dimensions
parent
7b474696
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/TrackHead.qml
View file @
ee92fedf
...
...
@@ -37,10 +37,10 @@ Rectangle {
property
bool
current
:
false
property
int
myTrackHeight
property
int
trackId
:
-
42
property
int
collapsedHeight
:
nameEdit
.
height
+
2
property
int
iconSize
:
root
.
baseUnit
*
2
property
string
trackTag
property
int
thumbsFormat
:
0
property
int
collapsedHeight
:
expandButton
.
height
border.width
:
1
border.color
:
root
.
frameColor
signal
clicked
()
...
...
@@ -414,7 +414,7 @@ Rectangle {
anchors.left
:
parent
.
left
anchors.leftMargin
:
4
elide
:
Qt
.
ElideRight
font.pointSize
:
root
.
baseUnit
*
0.9
font.pointSize
:
root
.
fontUnit
}
Label
{
id
:
placeHolder
...
...
@@ -425,14 +425,14 @@ Rectangle {
anchors.left
:
parent
.
left
anchors.leftMargin
:
4
elide
:
Qt
.
ElideRight
font.pointSize
:
root
.
baseUnit
*
0.9
font.pointSize
:
root
.
fontUnit
}
TextField
{
id
:
nameEdit
visible
:
false
width
:
parent
.
width
text
:
trackName
font.pointSize
:
root
.
baseUnit
*
0.9
font.pointSize
:
root
.
fontUnit
style
:
TextFieldStyle
{
padding.top
:
0
padding.bottom
:
0
...
...
@@ -497,7 +497,7 @@ Rectangle {
if
(
mouse
.
buttons
===
Qt
.
LeftButton
)
{
parent
.
opacity
=
0.5
var
newHeight
=
originalY
+
(
mapToItem
(
null
,
x
,
y
).
y
-
startY
)
newHeight
=
Math
.
max
(
collapsedHeight
,
newHeight
)
newHeight
=
Math
.
max
(
trackHeadRoot
.
collapsedHeight
,
newHeight
)
trackHeadRoot
.
myTrackHeight
=
newHeight
}
}
...
...
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