Advertisement
Guest User

Untitled

a guest
May 9th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.31 KB | None | 0 0
  1. ListView {
  2.             id: listView
  3.             anchors.centerIn: parent
  4.             anchors.fill: parent
  5.  
  6.             model: docsDb.getAll()
  7.  
  8.             Component {
  9.                 id: docsDelegate
  10.  
  11.                 Rectangle {
  12.                     color: menu.color
  13.                     height: t.paintedHeight; width: rectListView.width
  14.  
  15.                     Text {
  16.                         id: t
  17.                         anchors.fill: parent
  18.                         text: nome
  19.                         font.pixelSize: 15 * dp
  20.                         color: navMenu.iconColor
  21.                         font.bold: true
  22.  
  23.                         Text {
  24.                             font.family: "FontAwesome"
  25.                             text: "\uf054"
  26.                             color: navMenu.iconColor
  27.                             x: rectListView.width - (10 * dp)
  28.                             y: 3 * dp
  29.                             font.pixelSize: parent.font.pixelSize
  30.                         }
  31.                     }
  32.  
  33.                     MouseArea {
  34.                         anchors.fill: parent
  35.                         onClicked: {
  36.                             console.log(html)
  37.                         }
  38.                     }
  39.                 }
  40.             }
  41.  
  42.             delegate: docsDelegate
  43.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement