Harmattan font changes completed
[marketstoday] / src / qml / StockDetailsRow.qml
1 /*
2 @version: 0.5
3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
5 */
6
7 import Qt 4.7
8
9 Row{
10     property string label1
11     property string value1
12     property int cell1Width
13     property string label2
14     property string value2
15     property int cell2Width
16     property int fontSize: 20
17     property bool multilineLabel1:false
18     property bool multilineLabel2:false
19     property bool landscape: false
20
21     height: (multilineLabel1|multilineLabel2) && !landscape? 50:25
22     spacing: 5
23
24     Text{
25         width: cell1Width
26         height: itemHeight
27         horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignTop
28         font.pixelSize: fontSize;font.bold: false; style: Text.Raised; styleColor: "black"; wrapMode: multilineLabel1?Text.Wrap:Text.NoWrap
29         color: "#ffffff";
30         text: label1+": " + value1
31     }
32
33     Text{
34         width: cell2Width
35         height: itemHeight
36         horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignTop
37         font.pixelSize: fontSize; font.bold: false; style: Text.Raised; styleColor: "black"; wrapMode: multilineLabel2?Text.Wrap:Text.NoWrap
38         color: "#ffffff";
39         text: label2+": " + value2
40     }
41 }