Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual
Page 251

KTD-S0057-I
Page 247 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
anchors
{
bottom:
parent.bottom
bottomMargin:
65
left: parent.left
leftMargin:
25
right:
parent.right
rightMargin:
25
}
onValueChanged:
{
if (bigImage.width * value > flickable.width)
{
var xoff = (flickable.width / 2 + flickable.contentX) * value / prevScale
flickable.contentX = xoff - flickable.width / 2
}
if (bigImage.height * value > flickable.height)
{
var yoff = (flickable.height / 2 + flickable.contentY) * value / prevScale
flickable.contentY = yoff - flickable.height / 2
}
prevScale
=
value
}
}
}
states:
State
{
name:
"Back"
PropertyChanges
{
target:
itemRotation
angle:
180
}
PropertyChanges
{
target:
toolBar
button2Visible:
false
}
PropertyChanges
{
target:
toolBar
button1Label:
"Back"
}
}