Guest User

Untitled

a guest
Dec 30th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3.  
  4. Component
  5. {
  6.     id: channelDelegate
  7.  
  8.     Item
  9.     {
  10.         width: parent.width
  11.         height: 130
  12.         id: channels
  13.  
  14.         Image
  15.         {
  16.             id: thumb
  17.             source: channelImage
  18.             sourceSize.height: 120
  19.             sourceSize.width: 120
  20.             asynchronous: true
  21.             anchors.verticalCenter: parent.verticalCenter
  22.             anchors.left: parent.left
  23.             anchors.leftMargin: 0
  24.             width: 120
  25.             height: 120
  26.         }
  27.  
  28.         Column
  29.         {
  30.             anchors.top: parent.top
  31.             anchors.topMargin: 5
  32.             anchors.rightMargin: 10
  33.             anchors.left: thumb.right
  34.             anchors.leftMargin: 20
  35.             spacing: 4
  36.  
  37.             Label
  38.             {
  39.                 id: channelNameLabel
  40.                 text: channelName;
  41.                 font.pixelSize: 28;
  42.                 font.weight: Font.Bold;
  43.                 anchors.left: parent.left
  44.                 anchors.right: parent.right
  45.                 color: Theme.primaryColor
  46.             }
  47.  
  48.             Label
  49.             {
  50.                 id: channelDescriptionLabel
  51.                 text: channelDescription;
  52.                 width: parent.width
  53.                 font.pixelSize: 20;
  54.                 font.weight: Font.Light;
  55.                 maximumLineCount: 2
  56.                 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
  57.                 anchors.top: channelNameLabel.bottom
  58.                 anchors.left: parent.left
  59.                 anchors.right: parent.right
  60.             }
  61.  
  62.             Label
  63.             {
  64.                 id: channelSongLabel
  65.                 text: song;
  66.                 font.pixelSize: 24;
  67.                 font.weight: Font.Bold;
  68.                 maximumLineCount: 1
  69.                 wrapMode: Text.WrapAtWordBoundaryOrAnywhere
  70.                 anchors.top: channelDescriptionLabel.bottom
  71.                 anchors.left: parent.left
  72.                 anchors.right: parent.right
  73.             }
  74.         }
  75.     }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment