Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
Show All 31 Lines | 28 | Item { | |||
---|---|---|---|---|---|
32 | Layout.minimumHeight: units.gridUnit * 10 | 32 | Layout.minimumHeight: units.gridUnit * 10 | ||
33 | Layout.preferredWidth: Layout.minimumWidth * 1.5 | 33 | Layout.preferredWidth: Layout.minimumWidth * 1.5 | ||
34 | Layout.preferredHeight: Layout.minimumHeight * 1.5 | 34 | Layout.preferredHeight: Layout.minimumHeight * 1.5 | ||
35 | 35 | | |||
36 | readonly property int controlSize: Math.min(height, width) / 4 | 36 | readonly property int controlSize: Math.min(height, width) / 4 | ||
37 | 37 | | |||
38 | property int position: mpris2Source.currentData.Position || 0 | 38 | property int position: mpris2Source.currentData.Position || 0 | ||
39 | readonly property real rate: mpris2Source.currentData.Rate || 1 | 39 | readonly property real rate: mpris2Source.currentData.Rate || 1 | ||
40 | readonly property int length: currentMetadata ? currentMetadata["mpris:length"] || 0 : 0 | 40 | readonly property double length: currentMetadata ? currentMetadata["mpris:length"] || 0 : 0 | ||
41 | 41 | | |||
42 | property bool disablePositionUpdate: false | 42 | property bool disablePositionUpdate: false | ||
43 | property bool keyPressed: false | 43 | property bool keyPressed: false | ||
44 | 44 | | |||
45 | function retrievePosition() { | 45 | function retrievePosition() { | ||
46 | var service = mpris2Source.serviceForSource(mpris2Source.current); | 46 | var service = mpris2Source.serviceForSource(mpris2Source.current); | ||
47 | var operation = service.operationDescription("GetPosition"); | 47 | var operation = service.operationDescription("GetPosition"); | ||
48 | service.startOperationCall(operation); | 48 | service.startOperationCall(operation); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |