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

Page 258

Advertising
background image

KTD-S0057-I

Page 254 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide


Rectangle
{

id:

handle

smooth:

true

y:

2

width:

30

height: slider.height - 4

radius:

6

gradient:

Gradient

{

GradientStop

{

position:

0.0

color:

"lightgray"

}

GradientStop

{

position:

1.0

color:

"gray"

}

}

MouseArea

{

id:

mouse

anchors.fill:

parent

drag.target:

parent

drag.axis:

Drag.XAxis

drag.minimumX:

2

drag.maximumX: slider.xMax + 2

onPositionChanged:

{

value = (maximum - minimum) * (handle.x - 2) / slider.xMax + minimum

}

}

}
}


File TitleBar.qml (header with Qt

TM

license see 'main.cpp'):

import QtQuick 1.0

Item
{
id:

titleBar

property string untaggedString: "Uploads from everyone"

property string taggedString: "Recent uploads tagged "

Advertising
This manual is related to the following products: