mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 14:13:05 +02:00
42 lines
771 B
QML
42 lines
771 B
QML
import QtQuick 2.1
|
|
import QtQuick.Controls 1.0
|
|
import QtQuick.Layouts 1.0
|
|
import QtQuick.Dialogs 1.0
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
|