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
43bcc553
Commit
43bcc553
authored
Jan 06, 2020
by
Jean-Baptiste Mardelle
Browse files
Better qml interface scaling
parent
e480a56d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
43bcc553
...
...
@@ -25,7 +25,7 @@ Rectangle {
FontMetrics
{
id
:
fontMetrics
font
.family
:
"
Arial
"
font
:
smallFont
}
ClipMenu
{
id
:
clipMenu
...
...
@@ -220,7 +220,7 @@ Rectangle {
property
int
headerWidth
:
timeline
.
headerWidth
()
property
int
activeTool
:
0
property
real
baseUnit
:
fontMetrics
.
font
.
pixelSize
property
real
fontUnit
:
fontMetrics
.
font
.
pointSize
*
0.
8
property
real
fontUnit
:
fontMetrics
.
font
.
pointSize
*
0.
9
property
color
selectedTrackColor
:
Qt
.
rgba
(
activePalette
.
highlight
.
r
,
activePalette
.
highlight
.
g
,
activePalette
.
highlight
.
b
,
0.2
)
property
color
frameColor
:
Qt
.
rgba
(
activePalette
.
shadow
.
r
,
activePalette
.
shadow
.
g
,
activePalette
.
shadow
.
b
,
0.3
)
property
bool
autoScrolling
:
timeline
.
autoScroll
...
...
src/timeline2/view/timelinewidget.cpp
View file @
43bcc553
...
...
@@ -133,6 +133,7 @@ void TimelineWidget::setModel(const std::shared_ptr<TimelineItemModel> &model, M
rootContext
()
->
setContextProperty
(
"audiorec"
,
pCore
->
getAudioDevice
());
rootContext
()
->
setContextProperty
(
"guidesModel"
,
pCore
->
projectManager
()
->
current
()
->
getGuideModel
().
get
());
rootContext
()
->
setContextProperty
(
"clipboard"
,
new
ClipboardProxy
(
this
));
rootContext
()
->
setContextProperty
(
"smallFont"
,
QFontDatabase
::
systemFont
(
QFontDatabase
::
SmallestReadableFont
));
setSource
(
QUrl
(
QStringLiteral
(
"qrc:/qml/timeline.qml"
)));
connect
(
rootObject
(),
SIGNAL
(
mousePosChanged
(
int
)),
pCore
->
window
(),
SLOT
(
slotUpdateMousePosition
(
int
)));
connect
(
rootObject
(),
SIGNAL
(
zoomIn
(
bool
)),
pCore
->
window
(),
SLOT
(
slotZoomIn
(
bool
)));
...
...
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