Fix qml warnings in MimeComponent
This commit is contained in:
@@ -12,6 +12,8 @@ import org.kde.kirigami as Kirigami
|
|||||||
* @brief A component to show media based upon its mime type.
|
* @brief A component to show media based upon its mime type.
|
||||||
*/
|
*/
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
id: root
|
||||||
|
|
||||||
property alias mimeIconSource: icon.source
|
property alias mimeIconSource: icon.source
|
||||||
property alias label: nameLabel.text
|
property alias label: nameLabel.text
|
||||||
property string subLabel: ""
|
property string subLabel: ""
|
||||||
@@ -43,10 +45,10 @@ RowLayout {
|
|||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
text: (subLabel || size || duration || '') && [
|
text: (root.subLabel || root.size || root.duration || '') && [
|
||||||
subLabel,
|
root.subLabel,
|
||||||
size && Format.formatByteSize(size),
|
root.size && Format.formatByteSize(root.size),
|
||||||
duration > 0 && Format.formatDuration(duration),
|
root.duration > 0 && Format.formatDuration(root.duration),
|
||||||
].filter(Boolean).join(" | ")
|
].filter(Boolean).join(" | ")
|
||||||
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|||||||
Reference in New Issue
Block a user