aboutsummaryrefslogtreecommitdiff
path: root/components/Label.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/Label.qml')
-rw-r--r--components/Label.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/components/Label.qml b/components/Label.qml
new file mode 100644
index 00000000..35101ff1
--- /dev/null
+++ b/components/Label.qml
@@ -0,0 +1,28 @@
+import QtQuick 2.0
+
+Item {
+ property alias text: label.text
+ property alias color: label.color
+ property int fontSize: 12
+ width: icon.x + icon.width
+ height: icon.height
+
+ Text {
+ id: label
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 2
+ anchors.left: parent.left
+ font.family: "Arial"
+ font.pixelSize: parent.fontSize
+ color: "#555555"
+ }
+
+ Image {
+ id: icon
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.left: label.right
+ anchors.leftMargin: 5
+ source: "../images/whatIsIcon.png"
+ visible: appWindow.whatIsEnable
+ }
+}