Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/SwipeListItem.qml
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Line(s) | 59 | //BEGIN properties | |||
---|---|---|---|---|---|
154 | 154 | | |||
155 | default property alias _default: listItem.contentItem | 155 | default property alias _default: listItem.contentItem | ||
156 | 156 | | |||
157 | Theme.colorGroup: behindItem.indicateActiveFocus ? Theme.Active : Theme.Inactive | 157 | Theme.colorGroup: behindItem.indicateActiveFocus ? Theme.Active : Theme.Inactive | ||
158 | 158 | | |||
159 | hoverEnabled: true | 159 | hoverEnabled: true | ||
160 | implicitWidth: contentItem ? contentItem.implicitWidth : Units.gridUnit * 12 | 160 | implicitWidth: contentItem ? contentItem.implicitWidth : Units.gridUnit * 12 | ||
161 | width: parent ? parent.width : implicitWidth | 161 | width: parent ? parent.width : implicitWidth | ||
162 | implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding | 162 | implicitHeight: Math.max(contentItem.implicitHeight, actionsLayout.implicitHeight) + topPadding + bottomPadding | ||
163 | 163 | | |||
164 | padding: Settings.tabletMode ? Units.largeSpacing : Units.smallSpacing | 164 | padding: Settings.tabletMode ? Units.largeSpacing : Units.smallSpacing | ||
165 | 165 | | |||
166 | leftPadding: padding * 2 | 166 | leftPadding: padding * 2 | ||
167 | 167 | | |||
168 | rightPadding: padding * 2 + (handleMouse.visible ? handleMouse.width : (hovered || !supportsMouseEvents) * actionsLayout.width) + handleMouse.anchors.rightMargin | 168 | rightPadding: padding * 2 + (handleMouse.visible ? handleMouse.width : (hovered || !supportsMouseEvents) * actionsLayout.width) + handleMouse.anchors.rightMargin | ||
169 | 169 | | |||
170 | topPadding: padding | 170 | topPadding: padding | ||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |