/*
-@version: 0.2
+@version: 0.5
@author: Sudheer K. <scifi1947 at gmail.com>
@license: GNU General Public License
*/
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
}
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
}