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

Page 227

Advertising
background image

KTD-S0057-I

Page 223 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide


PropertyAction

{

id: finalX

target:

flickable

property:

"contentX"

value: 0 // set before calling

}

PropertyAction

{

id: finalY

target:

flickable

property:

"contentY"

value: 0 // set before calling

}

PropertyAction

{

target:

webView

property:

"renderingEnabled"

value: true

}

}

onZoomTo: doZoom (zoom, centerX, centerY)

}
}


File Header.qml (header with Qt

TM

license see 'main.cpp'):

import QtQuick 1.0

Image
{
id:

header

property alias editUrl: urlInput.url

property bool urlChanged: false

source:

"pics/titlebar-bg.png"

fillMode:

Image.TileHorizontally

x: webView.contentX < 0 ? -webView.contentX : webView.contentX > webView.contentWidth - webView.width

? -webView.contentX + webView.contentWidth - webView.width : 0

y:
{

if (webView.progress < 1.0)

return

0

else

{

webView.contentY < 0 ? -webView.contentY : webView.contentY > height ? -height : -webView.contentY

}

}

Column
{

width:

parent.width

Advertising
This manual is related to the following products: