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 {
|
2016-01-01 18:39:43 +03:00
|
|
|
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
|
2016-01-01 18:39:43 +03:00
|
|
|
height: width / 2
|
|
|
|
}
|
|
|
|
|
|
|
|
ScaleToise {
|
|
|
|
id: toise
|
2016-01-01 20:43:42 +03:00
|
|
|
anchors.top: meter.bottom
|
|
|
|
anchors.topMargin: h_margin
|
2016-01-01 18:39:43 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|