Add sample qml application
[staging/HomeScreen.git] / sample-qml / imports / components / Label.qml
diff --git a/sample-qml/imports/components/Label.qml b/sample-qml/imports/components/Label.qml
new file mode 100644 (file)
index 0000000..e1e0b30
--- /dev/null
@@ -0,0 +1,27 @@
+/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.\r
+ *\r
+ * This Source Code Form is subject to the terms of the Mozilla Public\r
+ * License, v. 2.0. If a copy of the MPL was not distributed with this\r
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\r
+\r
+import QtQuick 2.0\r
+import utils 1.0\r
+\r
+Item {\r
+    // Tracer {}\r
+    width: childrenRect.width\r
+    height: childrenRect.height\r
+    property alias text: text.text\r
+    property alias label: text\r
+    property alias fontSize: text.font.pixelSize\r
+    property alias fontColor: text.color\r
+\r
+    Text {\r
+        id: text\r
+        color: "#ddd"\r
+        font.family: "Source Sans Pro"\r
+        font.pixelSize: 40\r
+        font.capitalization: Font.AllUppercase\r
+        font.weight: Font.Bold\r
+     }\r
+}\r