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

KTD-S0057-I
Page 257 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
Item
{
id:
returnKey
Keys.onReturnPressed:
container.accept
()
Keys.onEnterPressed:
container.accept
()
Keys.onEscapePressed: titleBar.state = ""
}
}
}
states:
State
{
name:
"Tags"
PropertyChanges
{
target:
container
x: -tagButton.x + 5
}
PropertyChanges
{
target:
tagButton
text:
"OK"
}
PropertyChanges
{
target:
editor
focus:
true
}
}
transitions:
Transition
{
NumberAnimation
{
properties:
"x"
easing.type:
Easing.InOutQuad
}
}
}
File ToolBar.qml (header with Qt
TM
license see 'main.cpp'):
import QtQuick 1.0
Item
{
id:
toolbar
property alias button1Label: button1.text
property alias button2Label: button2.text
property alias button2Visible: button2.visible
signal
button1Clicked
signal
button2Clicked