Advertisement
Guest User

Untitled

a guest
Nov 7th, 2017
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.79 KB | None | 0 0
  1. /*** QQC2 w/ suru components ***/
  2.  
  3. // Example #1
  4. ItemDelegate {
  5.     width: parent.width
  6.     text: qsTr("Usage mode")
  7.     indicator: SubPageIndicator {}
  8. }
  9.  
  10. // Example #2
  11. SwitchDelegate {
  12.     width: parent.width
  13.     contentItem: DelegateTextLayout {
  14.         title.text: qsTr("Enable the launcher")
  15.         summary.text: qsTr("Enable or disable the launcher")
  16.     }
  17. }
  18.  
  19.  
  20. /*** UITK components (current) ***/
  21.  
  22. // Example #1
  23. ListItem {
  24.     ListItemLayout {
  25.         title.text: i18n.tr("Usage mode")
  26.         ProgressionSlot {}
  27.     }
  28. }
  29.  
  30. // Example #2
  31. ListItem {
  32.     ListItemLayout {
  33.         title.text: i18n.tr("Enable the launcher")
  34.         summary.text: i18n.tr("Enable or disable the launcher")
  35.         Switch {
  36.             SlotsLayout.position: SlotsLayout.Last
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement