diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-03-01 15:34:47 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-03-19 14:30:22 +0000 |
commit | 09d629199fa153ea7954321d81f647d5eb52fb6c (patch) | |
tree | 8d24a5736bee0e6e213a44a5ce879e7937ba9ee5 | |
parent | 8d66348cf119204564e24611e869a21f7ed8bcae (diff) |
Show settings on center of the screen
Instead of fixed margins, put the settings to the center of the screen,
which looks better on different resolution embedded screens.
Change-Id: I38c3c41d2e5e522ff64b28d8875d7a514b6592d2
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
-rw-r--r-- | src/qml/SettingsView.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/SettingsView.qml b/src/qml/SettingsView.qml index 0e955a3..f01a5a8 100644 --- a/src/qml/SettingsView.qml +++ b/src/qml/SettingsView.qml @@ -100,13 +100,12 @@ Rectangle { ListView { id: listView - leftMargin: 230 - rightMargin: leftMargin anchors.fill: parent model: listModel delegate: Rectangle { height: 100 width: 560 + anchors.horizontalCenter: parent.horizontalCenter Text { anchors.verticalCenter: parent.verticalCenter font.family: defaultFontFamily |