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
a0e6a34f
Commit
a0e6a34f
authored
Nov 19, 2019
by
Jean-Baptiste Mardelle
Browse files
Better startup layout for smaller screens
parent
2afca10f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
a0e6a34f
...
...
@@ -3301,5 +3301,5 @@ void Bin::invalidateClip(const QString &binId)
QSize
Bin
::
sizeHint
()
const
{
return
QSize
(
350
,
800
);
return
QSize
(
350
,
pCore
->
window
()
->
height
()
/
2
);
}
src/mainwindow.cpp
View file @
a0e6a34f
...
...
@@ -1562,10 +1562,7 @@ bool MainWindow::readOptions()
QStyle
*
style
=
qApp
->
style
();
trackHeight
+=
style
->
pixelMetric
(
QStyle
::
PM_ToolBarIconSize
)
+
2
*
style
->
pixelMetric
(
QStyle
::
PM_ToolBarItemMargin
)
+
style
->
pixelMetric
(
QStyle
::
PM_ToolBarItemSpacing
)
+
2
;
KdenliveSettings
::
setTrackheight
(
trackHeight
);
}
if
(
KdenliveSettings
::
trackheight
()
==
0
)
{
KdenliveSettings
::
setTrackheight
(
50
);
KdenliveSettings
::
setTrackheight
(
trackHeight
==
0
?
50
:
trackHeight
);
}
bool
firstRun
=
false
;
KConfigGroup
initialGroup
(
config
,
"version"
);
...
...
src/timeline2/view/timelinetabs.cpp
View file @
a0e6a34f
...
...
@@ -36,7 +36,7 @@ TimelineContainer::TimelineContainer(QWidget *parent)
QSize
TimelineContainer
::
sizeHint
()
const
{
return
QSize
(
800
,
200
);
return
QSize
(
800
,
pCore
->
window
()
->
height
()
/
2
);
}
TimelineTabs
::
TimelineTabs
(
QWidget
*
parent
)
...
...
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