Small Fix.

This commit is contained in:
Swapnil Tripathi 2021-06-08 02:52:11 +05:30
parent b0bcb9d668
commit 20c10d9380
1 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
*/ */
import QtQuick 2.14 import QtQuick 2.14
import QtQuick.Controls 2.14 import QtQuick.Controls 2.14 as Controls
import QtQuick.Layouts 1.14 import QtQuick.Layouts 1.14
import QtMultimedia 5.15 import QtMultimedia 5.15
import QtGraphicalEffects 1.15 import QtGraphicalEffects 1.15
@ -52,7 +52,7 @@ Rectangle {
// maximumLineCount: 2 // maximumLineCount: 2
font.bold: true font.bold: true
} }
Label { Controls.Label {
text: AudioManager.entry ? AudioManager.entry.feed.name : "No feed" text: AudioManager.entry ? AudioManager.entry.feed.name : "No feed"
Layout.fillWidth: true Layout.fillWidth: true
elide: Text.ElideRight elide: Text.ElideRight
@ -69,8 +69,8 @@ Rectangle {
RowLayout { RowLayout {
property int iconSize: Kirigami.Units.gridUnit property int iconSize: Kirigami.Units.gridUnit
property int buttonSize: playButton.implicitWidth property int buttonSize: playButton.implicitWidth
Button { Controls.Button {
contentItem: Label { contentItem: Controls.Label {
text: AudioManager.playbackRate + "x" text: AudioManager.playbackRate + "x"
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
@ -87,7 +87,7 @@ Rectangle {
implicitWidth: playButton.width * 2 implicitWidth: playButton.width * 2
implicitHeight: playButton.height implicitHeight: playButton.height
} }
Button { Controls.Button {
icon.name: "media-seek-backward" icon.name: "media-seek-backward"
icon.height: parent.iconSize icon.height: parent.iconSize
icon.width: parent.iconSize icon.width: parent.iconSize
@ -97,7 +97,7 @@ Rectangle {
onClicked: AudioManager.skipBackward() onClicked: AudioManager.skipBackward()
enabled: AudioManager.canSkipBackward enabled: AudioManager.canSkipBackward
} }
Button { Controls.Button {
id: playButton id: playButton
icon.name: AudioManager.playbackState === Audio.PlayingState ? "media-playback-pause" : "media-playback-start" icon.name: AudioManager.playbackState === Audio.PlayingState ? "media-playback-pause" : "media-playback-start"
icon.height: parent.iconSize icon.height: parent.iconSize
@ -108,7 +108,7 @@ Rectangle {
onClicked: AudioManager.playbackState === Audio.PlayingState ? AudioManager.pause() : AudioManager.play() onClicked: AudioManager.playbackState === Audio.PlayingState ? AudioManager.pause() : AudioManager.play()
enabled: AudioManager.canPlay enabled: AudioManager.canPlay
} }
Button { Controls.Button {
icon.name: "media-seek-forward" icon.name: "media-seek-forward"
icon.height: parent.iconSize icon.height: parent.iconSize
icon.width: parent.iconSize icon.width: parent.iconSize
@ -118,7 +118,7 @@ Rectangle {
onClicked: AudioManager.skipForward() onClicked: AudioManager.skipForward()
enabled: AudioManager.canSkipForward enabled: AudioManager.canSkipForward
} }
Button { Controls.Button {
icon.name: "media-skip-forward" icon.name: "media-skip-forward"
icon.height: parent.iconSize icon.height: parent.iconSize
icon.width: parent.iconSize icon.width: parent.iconSize
@ -132,10 +132,10 @@ Rectangle {
} }
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
Label { Controls.Label {
text: AudioManager.formattedPosition text: AudioManager.formattedPosition
} }
Slider { Controls.Slider {
id: durationSlider id: durationSlider
enabled: AudioManager.entry enabled: AudioManager.entry
Layout.fillWidth: true Layout.fillWidth: true
@ -150,7 +150,7 @@ Rectangle {
Layout.preferredHeight: endLabel.implicitHeight Layout.preferredHeight: endLabel.implicitHeight
Layout.preferredWidth: endLabel.implicitWidth Layout.preferredWidth: endLabel.implicitWidth
Layout.rightMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing
Label { Controls.Label {
id: endLabel id: endLabel
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter