Harmattan font changes completed
[marketstoday] / src / qml / StockDetailsRow.qml
index 071c8e1..3b3414d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-@version: 0.2
+@version: 0.5
 @author: Sudheer K. <scifi1947 at gmail.com>
 @license: GNU General Public License
 */
@@ -13,15 +13,19 @@ Row{
     property string label2
     property string value2
     property int cell2Width
+    property int fontSize: 20
+    property bool multilineLabel1:false
+    property bool multilineLabel2:false
+    property bool landscape: false
 
-    height: 30
+    height: (multilineLabel1|multilineLabel2) && !landscape? 50:25
     spacing: 5
 
     Text{
         width: cell1Width
         height: itemHeight
-        horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
-        font.pixelSize: 14;font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+        horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignTop
+        font.pixelSize: fontSize;font.bold: false; style: Text.Raised; styleColor: "black"; wrapMode: multilineLabel1?Text.Wrap:Text.NoWrap
         color: "#ffffff";
         text: label1+": " + value1
     }
@@ -29,8 +33,8 @@ Row{
     Text{
         width: cell2Width
         height: itemHeight
-        horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
-        font.pixelSize: 14; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
+        horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignTop
+        font.pixelSize: fontSize; font.bold: false; style: Text.Raised; styleColor: "black"; wrapMode: multilineLabel2?Text.Wrap:Text.NoWrap
         color: "#ffffff";
         text: label2+": " + value2
     }