Commit a0e6a34f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Better startup layout for smaller screens

parent 2afca10f
...@@ -3301,5 +3301,5 @@ void Bin::invalidateClip(const QString &binId) ...@@ -3301,5 +3301,5 @@ void Bin::invalidateClip(const QString &binId)
QSize Bin::sizeHint() const QSize Bin::sizeHint() const
{ {
return QSize(350, 800); return QSize(350, pCore->window()->height() / 2);
} }
...@@ -1562,10 +1562,7 @@ bool MainWindow::readOptions() ...@@ -1562,10 +1562,7 @@ bool MainWindow::readOptions()
QStyle *style = qApp->style(); QStyle *style = qApp->style();
trackHeight += style->pixelMetric(QStyle::PM_ToolBarIconSize) + 2 * style->pixelMetric(QStyle::PM_ToolBarItemMargin) + trackHeight += style->pixelMetric(QStyle::PM_ToolBarIconSize) + 2 * style->pixelMetric(QStyle::PM_ToolBarItemMargin) +
style->pixelMetric(QStyle::PM_ToolBarItemSpacing) + 2; style->pixelMetric(QStyle::PM_ToolBarItemSpacing) + 2;
KdenliveSettings::setTrackheight(trackHeight); KdenliveSettings::setTrackheight(trackHeight == 0 ? 50 : trackHeight);
}
if (KdenliveSettings::trackheight() == 0) {
KdenliveSettings::setTrackheight(50);
} }
bool firstRun = false; bool firstRun = false;
KConfigGroup initialGroup(config, "version"); KConfigGroup initialGroup(config, "version");
......
...@@ -36,7 +36,7 @@ TimelineContainer::TimelineContainer(QWidget *parent) ...@@ -36,7 +36,7 @@ TimelineContainer::TimelineContainer(QWidget *parent)
QSize TimelineContainer::sizeHint() const QSize TimelineContainer::sizeHint() const
{ {
return QSize(800, 200); return QSize(800, pCore->window()->height() / 2);
} }
TimelineTabs::TimelineTabs(QWidget *parent) TimelineTabs::TimelineTabs(QWidget *parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment