Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | 370 | onClicked: { | |||
---|---|---|---|---|---|
371 | seekSlider.value = 0 // Let the media start from beginning. Bug 362473 | 371 | seekSlider.value = 0 // Let the media start from beginning. Bug 362473 | ||
372 | root.action_previous() | 372 | root.action_previous() | ||
373 | } | 373 | } | ||
374 | } | 374 | } | ||
375 | 375 | | |||
376 | PlasmaComponents.ToolButton { | 376 | PlasmaComponents.ToolButton { | ||
377 | width: Math.round(expandedRepresentation.controlSize * 1.5) | 377 | width: Math.round(expandedRepresentation.controlSize * 1.5) | ||
378 | height: width | 378 | height: width | ||
379 | enabled: playerControls.enabled | 379 | enabled: root.state == "playing" ? root.canPause : root.canPlay | ||
380 | iconSource: root.state == "playing" ? "media-playback-pause" : "media-playback-start" | 380 | iconSource: root.state == "playing" ? "media-playback-pause" : "media-playback-start" | ||
381 | onClicked: root.action_playPause() | 381 | onClicked: root.action_playPause() | ||
382 | } | 382 | } | ||
383 | 383 | | |||
384 | PlasmaComponents.ToolButton { | 384 | PlasmaComponents.ToolButton { | ||
385 | anchors.verticalCenter: parent.verticalCenter | 385 | anchors.verticalCenter: parent.verticalCenter | ||
386 | width: expandedRepresentation.controlSize | 386 | width: expandedRepresentation.controlSize | ||
387 | height: width | 387 | height: width | ||
Show All 10 Lines |