mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 04:03:28 +02:00
39 lines
689 B
QML
39 lines
689 B
QML
import QtQuick 2.1
|
|
|
|
import ".."
|
|
|
|
Item {
|
|
id: root
|
|
property int size: 64
|
|
width: size
|
|
height: size
|
|
property int spacer: size / 3
|
|
property var device
|
|
property color color: 'black'
|
|
|
|
ToggleButton {
|
|
controlId: device.Up
|
|
x: spacer
|
|
width: spacer; height: spacer
|
|
}
|
|
|
|
ToggleButton {
|
|
controlId: device.Left
|
|
y: spacer
|
|
width: spacer; height: spacer
|
|
}
|
|
|
|
ToggleButton {
|
|
controlId: device.Right
|
|
x: spacer * 2; y: spacer
|
|
width: spacer; height: spacer
|
|
}
|
|
|
|
ToggleButton {
|
|
controlId: device.Down
|
|
x: spacer; y: spacer * 2
|
|
width: spacer; height: spacer
|
|
}
|
|
}
|
|
|
|
|