Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.58 KB | None | 0 0
  1. SilicaListView {
  2.     delegate: Column{
  3.         property string defaultSensor:
  4.             QmlSensors.defaultSensorForType(modelData)
  5.         width: parent.width
  6.         SectionHeader { text: modelData }
  7.         Repeater {
  8.             model: QmlSensors.sensorsForType(modelData)
  9.             delegate: Label {
  10.                 text: modelData + (modelData === defaultSensor ?
  11.                     " " + qsTr("[default]"): "")
  12.                 x: Theme.horizontalPageMargin
  13.                 color: Theme.highlightColor
  14.             }
  15.         }
  16.     }
  17.     model: QmlSensors.sensorTypes()
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement