SailTuner/qml/TunerScreen.qml

37 lines
580 B
QML
Raw Normal View History

2015-12-27 14:01:07 +03:00
import QtQuick 2.0
/**
* Main tuner screen
*
*/
Item {
/// tuner object
property QtObject tuner
/// theme corresponding to Silica Theme object
property QtObject theme
anchors.fill: parent
2016-01-01 20:43:42 +03:00
property int h_margin: (height - meter.height - toise.height) / 3
2015-12-27 14:01:07 +03:00
CircleMeter {
id: meter
2015-12-27 14:01:07 +03:00
theme: parent.theme
2016-01-01 20:43:42 +03:00
anchors.top: parent.top
anchors.topMargin: h_margin
width: parent.width
height: width / 2
}
ScaleToise {
id: toise
2016-01-01 20:43:42 +03:00
anchors.top: meter.bottom
anchors.topMargin: h_margin
anchors.left: parent.left
width: parent.width
2016-01-01 20:43:42 +03:00
height: width / 10
2015-12-27 14:01:07 +03:00
}
}