Advertisement
Guest User

Untitled

a guest
May 1st, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.07 KB | None | 0 0
  1. Row {
  2.                 anchors {
  3.                     horizontalCenter: parent.horizontalCenter
  4.                 }
  5.  
  6.                 spacing: Theme.paddingSmall
  7.  
  8.                 Label {
  9.                     id: prefixLabel
  10.                     font.pixelSize: Theme.fontSizeExtraSmall
  11.                     horizontalAlignment: Text.AlignRight
  12.                     text: qsTr("by")
  13.                 }
  14.  
  15.                 Flow {
  16.                     spacing: Theme.paddingMedium
  17.  
  18.                     Repeater {
  19.                         model: book ? book.authors.length : 0
  20.                         ClickableLabel {
  21.                             label.text: book.authors[index].name
  22.                             label.font.pixelSize: Theme.fontSizeExtraSmall
  23.                             label.horizontalAlignment: Qt.AlignLeft
  24.                             width: label.implicitWidth
  25.                             onClicked: {
  26.                                 //TODO open author page
  27.                             }
  28.                         }
  29.                     }
  30.                 }
  31.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement