7cc27029d1904a2044e0f1b2946ff4252cd34dad
[marketstoday] / src / qml / StockDetailsRow.qml
1 /*
2 @version: 0.4
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
17     height: 30
18     spacing: 5
19
20     Text{
21         width: cell1Width
22         height: itemHeight
23         horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
24         font.pixelSize: 14;font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
25         color: "#ffffff";
26         text: label1+": " + value1
27     }
28
29     Text{
30         width: cell2Width
31         height: itemHeight
32         horizontalAlignment: Text.AlignLeft; verticalAlignment: Text.AlignVCenter
33         font.pixelSize: 14; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black"
34         color: "#ffffff";
35         text: label2+": " + value2
36     }
37 }