beautypg.com

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

Page 249

background image

KTD-S0057-I

Page 245 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide


Text

{

color:

"white"

elide:

Text.ElideRight

text: container.photoTags == "" ? "" : "Tags: "

width:

parent.width

}

Text

{

color:

"white"

elide:

Text.ElideRight

text:

container.photoTags

width:

parent.width

}

}

}

back:

Item

{

anchors.fill:

container

Rectangle

{

anchors.fill:

parent

color:

"black"

opacity:

0.4

}

Progress

{

anchors.centerIn:

parent

width:

200

height:

22

progress:

bigImage.progress

visible: bigImage.status != Image.Ready

}

Flickable

{

id:

flickable

anchors.fill:

parent

clip:

true

contentWidth:

imageContainer.width

contentHeight:

imageContainer.height

function updateMinimumScale ()

{

if (bigImage.status == Image.Ready && bigImage.width != 0)

{

slider.minimum = Math.min (flickable.width / bigImage.width, flickable.height / bigImage.height)

if (bigImage.width * slider.value > flickable.width)

{

var xoff = (flickable.width / 2 + flickable.contentX) * slider.value / prevScale

flickable.contentX = xoff - flickable.width / 2

}

This manual is related to the following products: