Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rectangle {
- id: mainWindow;
- width: Style.screenWidth;
- height: Style.screenHeight - Style.msTopBarHeight;
- color: Style.msBgColor;
- state: "";
- QtObject {
- id: runtime_model
- property string text: "Drifttid"
- property var values: ["1", "2", "3", "4", "5", "6", "7"]
- property string value: "3"
- property string unit: "min"
- property int index: 2
- function maxWidth(width) {
- return mainWindow.width
- }
- }
- QtObject {
- id: stilltime_model
- property string text: "Stilleståndstid"
- property var values: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]
- property string value: "12"
- property string unit: "min"
- property int index: 11
- function maxWidth(width) {
- return mainWindow.width
- }
- }
- ListView {
- anchors.fill: parent
- model: [runtime_model, stilltime_model]
- delegate: TumblerRow {
- height: Style.msRowHeight;
- width: Style.screenWidth;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement