~aacid/ubuntu-ui-toolkit/nonsquareicons

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/ListItems/Base.qml

  • Committer: Tarmac
  • Author(s): Gerry Boland
  • Date: 2012-10-09 15:14:58 UTC
  • mfrom: (102.1.8 li-icon-vert-position)
  • Revision ID: tarmac-20121009151458-pqgvwhe5qff1zkjt
Add private verticalCenterOffset property to ListItems, to allow theme to decide how contents are positioned
To do this had to change IconVisual, so it doesn't doesn't position itself.. Approved by jenkins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    // FIXME: Remove this when the setting becomes part of the theming engine
90
90
    property alias __rightIconMargin: iconHelper.rightIconMargin
91
91
 
 
92
    /*!
 
93
      \internal
 
94
      Offset from vertical center to position the ListItem contents
 
95
     */
 
96
    // FIXME: Remove this when the setting becomes part of the theming engine
 
97
    property int __verticalCenterOffset: 0
 
98
 
92
99
    IconVisual {
93
100
        id: iconHelper
 
101
        anchors {
 
102
            left: parent.left
 
103
            verticalCenter: parent.verticalCenter
 
104
            verticalCenterOffset: __verticalCenterOffset
 
105
        }
94
106
    }
95
107
 
96
108
    /*!