Toolbar at bottom

This commit is contained in:
vladest 2018-04-18 20:57:28 +02:00
parent ee1738adac
commit cacb9359c2

View file

@ -36,7 +36,7 @@ OriginalDesktop.Desktop {
}
}
Component { id: toolbarBuilder; Toolbar { } }
Component { id: toolbarBuilder; Toolbar { y: desktop.y - 50 } }
// This used to create sysToolbar dynamically with a call to getToolbar() within onCompleted.
// Beginning with QT 5.6, this stopped working, as anything added to toolbars too early got
// wiped during startup.
@ -47,7 +47,7 @@ OriginalDesktop.Desktop {
anchors.horizontalCenter: settings.constrainToolbarToCenterX ? desktop.horizontalCenter : undefined;
// Literal 50 is overwritten by settings from previous session, and sysToolbar.x comes from settings when not constrained.
x: sysToolbar.x
y: 50
y: desktop.height - 50 - height
buttonModel: tablet.buttons;
shown: tablet.toolbarMode;
}