diff options
author | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-18 14:18:24 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-19 08:12:56 +0000 |
commit | 1b2e2e0a18ca9f0a4a9e63c7b31e215c9a4236f0 (patch) | |
tree | 1ad2d383023c4b8f4ac36e6d506b9cf3e195cd71 | |
parent | 5edc0fc23de47abf7d689a6e8c7a2c2b0e58d697 (diff) |
center text
Change-Id: I8765e4a1a4c985c22afa2e34fe8e568bafd4c41a
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
-rw-r--r-- | qml/LaunchScreen.qml | 4 | ||||
-rw-r--r-- | qml/Main.qml | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/qml/LaunchScreen.qml b/qml/LaunchScreen.qml index a0ef627..bf21ae2 100644 --- a/qml/LaunchScreen.qml +++ b/qml/LaunchScreen.qml @@ -35,6 +35,7 @@ Item { property real cellHeight: (list.height / root.itemsPerScreen) maximumFlickVelocity: 5000 + pathItemCount: list.count model: applicationsModel; @@ -76,7 +77,8 @@ Item { Text { id: nameLabel - x: list.width/4 + engine.mm(2) + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter y: list.cellHeight + engine.mm(10) width: list.cellWidth - engine.mm(2) font.pixelSize: engine.fontSize() diff --git a/qml/Main.qml b/qml/Main.qml index 1c8ed0f..e8e3ba3 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -403,7 +403,7 @@ Window { Text { id: urlLabel; anchors.bottom: parent.bottom - x: appGrid.width/4 + anchors.horizontalCenter: parent.horizontalCenter text: "Visit Qt.io/qt-for-device-creation" color: qtgreen font.pixelSize: engine.sensibleButtonSize() * 0.2 |