Commit b08594ec authored by Chupligin Sergey's avatar Chupligin Sergey

[ListViewItemWithAction] add scaling

parent affcc596
...@@ -66,13 +66,13 @@ Item { ...@@ -66,13 +66,13 @@ Item {
Image{ Image{
id: itemIcon id: itemIcon
height: parent.height-10 height: parent.height-size.dp(10)
width: height width: height
anchors{ anchors{
left: parent.left left: parent.left
leftMargin: 20 leftMargin: size.dp(20)
top: parent.top top: parent.top
topMargin: 5 topMargin: size.dp(5)
} }
sourceSize.width: width sourceSize.width: width
...@@ -84,13 +84,13 @@ Item { ...@@ -84,13 +84,13 @@ Item {
Rectangle{ Rectangle{
id: dataArea id: dataArea
width: parent.width-itemIcon.width-arrowItem.width-60 width: parent.width-itemIcon.width-arrowItem.width-size.dp(60)
height: labelItem.height+(description != "" ? descriptionItem.height : 0)+(subdescription != "" ? subDescriptionItem.height : 0) height: labelItem.height+(description != "" ? descriptionItem.height : 0)+(subdescription != "" ? subDescriptionItem.height : 0)
clip: true clip: true
anchors{ anchors{
left:itemIcon.right left:itemIcon.right
leftMargin: 20 leftMargin: size.dp(20)
verticalCenter: itemIcon.verticalCenter verticalCenter: itemIcon.verticalCenter
} }
color: "transparent" color: "transparent"
...@@ -103,7 +103,7 @@ Item { ...@@ -103,7 +103,7 @@ Item {
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
font.pixelSize: 30 font.pixelSize: size.dp(30)
clip: true clip: true
} }
...@@ -116,7 +116,7 @@ Item { ...@@ -116,7 +116,7 @@ Item {
right: parent.right right: parent.right
top: labelItem.bottom top: labelItem.bottom
} }
font.pixelSize: 18 font.pixelSize: size.dp(18)
clip: true clip: true
visible: description != "" visible: description != ""
} }
...@@ -130,13 +130,13 @@ Item { ...@@ -130,13 +130,13 @@ Item {
right: parent.right right: parent.right
top: descriptionItem.bottom top: descriptionItem.bottom
} }
font.pixelSize: 18 font.pixelSize: size.dp(18)
clip: true clip: true
visible: subdescription != "" visible: subdescription != ""
} }
Item{ Item{
width: 15 width: size.dp(15)
height: parent.height height: parent.height
anchors{ anchors{
top: parent.top top: parent.top
...@@ -146,7 +146,7 @@ Item { ...@@ -146,7 +146,7 @@ Item {
LinearGradient{ LinearGradient{
anchors.fill: parent anchors.fill: parent
start: Qt.point(0, 0) start: Qt.point(0, 0)
end: Qt.point(15, 0) end: Qt.point(size.dp(15), 0)
gradient: Gradient { gradient: Gradient {
GradientStop { position: 0.0; color: "transparent" } GradientStop { position: 0.0; color: "transparent" }
GradientStop { position: 1.0; color: "black" } GradientStop { position: 1.0; color: "black" }
...@@ -157,12 +157,12 @@ Item { ...@@ -157,12 +157,12 @@ Item {
Image { Image {
id: arrowItem id: arrowItem
height: parent.height-10 height: parent.height-size.dp(10)
width: height width: height
anchors{ anchors{
right: parent.right right: parent.right
rightMargin: 20 rightMargin: size.dp(20)
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment