Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.00 KB | None | 0 0
  1.  
  2. Rectangle {
  3.   id: mainWindow;
  4.   width: Style.screenWidth;
  5.   height: Style.screenHeight - Style.msTopBarHeight;
  6.   color: Style.msBgColor;
  7.   state: "";
  8.  
  9.   QtObject {
  10.     id: runtime_model
  11.     property string text: "Drifttid"
  12.     property var values: ["1", "2", "3", "4", "5", "6", "7"]
  13.     property string value: "3"
  14.     property string unit: "min"
  15.     property int index: 2
  16.     function maxWidth(width) {
  17.       return mainWindow.width
  18.     }
  19.   }
  20.  
  21.   QtObject {
  22.     id: stilltime_model
  23.     property string text: "StillestÃ¥ndstid"
  24.     property var values: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"]
  25.     property string value: "12"
  26.     property string unit: "min"
  27.     property int index: 11
  28.     function maxWidth(width) {
  29.       return mainWindow.width
  30.     }
  31.   }
  32.  
  33.   ListView {
  34.     anchors.fill: parent
  35.     model: [runtime_model, stilltime_model]
  36.     delegate: TumblerRow {
  37.       height: Style.msRowHeight;
  38.       width: Style.screenWidth;
  39.     }
  40.   }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement