Add sample qml application
[staging/HomeScreen.git] / sample-qml / imports / components / AwesomeIcon.qml
diff --git a/sample-qml/imports/components/AwesomeIcon.qml b/sample-qml/imports/components/AwesomeIcon.qml
new file mode 100644 (file)
index 0000000..542fb0f
--- /dev/null
@@ -0,0 +1,26 @@
+/* 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 system 1.0\r
+import components 1.0\r
+import utils 1.0\r
+\r
+Item {\r
+    height: icon.height\r
+    width: icon.height\r
+\r
+    property alias iconSize: icon.font.pixelSize\r
+    property alias ucKey: icon.text\r
+    property alias iconColor: icon.color\r
+\r
+    Text {\r
+        id: icon\r
+        font.family: "FontAwesome"\r
+        color: "white"\r
+    }\r
+}\r
+\r