summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@theqtcompany.com>2016-02-18 14:18:24 +0200
committerKatja Marttila <katja.marttila@theqtcompany.com>2016-02-19 08:12:56 +0000
commit1b2e2e0a18ca9f0a4a9e63c7b31e215c9a4236f0 (patch)
tree1ad2d383023c4b8f4ac36e6d506b9cf3e195cd71
parent5edc0fc23de47abf7d689a6e8c7a2c2b0e58d697 (diff)
center text
Change-Id: I8765e4a1a4c985c22afa2e34fe8e568bafd4c41a Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
-rw-r--r--qml/LaunchScreen.qml4
-rw-r--r--qml/Main.qml2
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