Scale all QML elements according to the current display size
This commit is contained in:
parent
9e7a55fc20
commit
bcdf3d94f2
15 changed files with 278 additions and 109 deletions
|
|
@ -6,7 +6,7 @@ import QtQuick.Controls 2.4
|
|||
*/
|
||||
Item {
|
||||
id: container
|
||||
property int margins: 20
|
||||
property int margins: StyleMargins.defaultMargin
|
||||
RoundImageButton{
|
||||
id: back
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ Item {
|
|||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
height: 210
|
||||
height: StyleSizes.navigationListHeight
|
||||
|
||||
color: "#99ffffff"
|
||||
|
||||
|
|
@ -51,12 +51,12 @@ Item {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: 20
|
||||
anchors.margins: StyleMargins.defaultMargin
|
||||
|
||||
height: parent.height - 40
|
||||
height: parent.height - 2*StyleMargins.defaultMargin
|
||||
|
||||
model: navigationList.pModelItems
|
||||
spacing: 20
|
||||
spacing: StyleSpacings.defaultSpacing
|
||||
orientation: ListView.Horizontal
|
||||
delegate: NavigationListDelegate{
|
||||
id: delegate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue