Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/SwipeListItem.qml
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 232 | Behavior on opacity { | |||
---|---|---|---|---|---|
233 | OpacityAnimator { | 233 | OpacityAnimator { | ||
234 | duration: Units.longDuration | 234 | duration: Units.longDuration | ||
235 | easing.type: Easing.InOutQuad | 235 | easing.type: Easing.InOutQuad | ||
236 | } | 236 | } | ||
237 | } | 237 | } | ||
238 | anchors { | 238 | anchors { | ||
239 | right: parent.right | 239 | right: parent.right | ||
240 | verticalCenter: parent.verticalCenter | 240 | verticalCenter: parent.verticalCenter | ||
241 | rightMargin: Units.gridUnit | 241 | rightMargin: !Settings.isMobile && behindItem.view && behindItem.view.T2.ScrollBar && behindItem.view.T2.ScrollBar.vertical && behindItem.view.T2.ScrollBar.vertical.visible ? behindItem.view.T2.ScrollBar.vertical.width : Units.smallSpacing | ||
apol: Wouldn't checking for scrollbar visibility be enough? if there's a scrollbar but isMobile we… | |||||
242 | } | 242 | } | ||
243 | height: Math.min( parent.height / 1.5, Units.iconSizes.smallMedium) | 243 | height: Math.min( parent.height / 1.5, Units.iconSizes.smallMedium) | ||
244 | width: childrenRect.width | 244 | width: childrenRect.width | ||
245 | property bool exclusive: false | 245 | property bool exclusive: false | ||
246 | property Item checkedButton | 246 | property Item checkedButton | ||
247 | spacing: Units.largeSpacing | 247 | spacing: Settings.tabletMode ? Units.largeSpacing : 0 | ||
248 | property int visibleActions: 0 | 248 | property int visibleActions: 0 | ||
249 | Repeater { | 249 | Repeater { | ||
250 | model: { | 250 | model: { | ||
251 | if (listItem.actions.length === 0) { | 251 | if (listItem.actions.length === 0) { | ||
252 | return null; | 252 | return null; | ||
253 | } else { | 253 | } else { | ||
254 | return listItem.actions[0].text !== undefined && | 254 | return listItem.actions[0].text !== undefined && | ||
255 | listItem.actions[0].trigger !== undefined ? | 255 | listItem.actions[0].trigger !== undefined ? | ||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |
Wouldn't checking for scrollbar visibility be enough? if there's a scrollbar but isMobile we still want the different spacing.