[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [elisa] src: asynchronously loads images for the playlist delegates
From:       Matthieu Gallien <matthieu_gallien () yahoo ! fr>
Date:       2016-12-06 22:10:58
Message-ID: E1cENww-00046P-3C () code ! kde ! org
[Download RAW message or body]

Git commit 10fd35dc47f6748e900e8a976ca9b345812c4401 by Matthieu Gallien.
Committed on 06/12/2016 at 21:55.
Pushed by mgallien into branch 'master'.

asynchronously loads images for the playlist delegates

M  +6    -1    src/PlayListEntry.qml

https://commits.kde.org/elisa/10fd35dc47f6748e900e8a976ca9b345812c4401

diff --git a/src/PlayListEntry.qml b/src/PlayListEntry.qml
index 2f6d787..a980928 100644
--- a/src/PlayListEntry.qml
+++ b/src/PlayListEntry.qml
@@ -98,17 +98,22 @@ Rectangle {
 =

                 Image {
                     id: mainIcon
+
                     source: itemDecoration
+
                     Layout.minimumWidth: headerRow.height - 4
                     Layout.maximumWidth: headerRow.height - 4
                     Layout.preferredWidth: headerRow.height - 4
                     Layout.minimumHeight: headerRow.height - 4
                     Layout.maximumHeight: headerRow.height - 4
                     Layout.preferredHeight: headerRow.height - 4
+                    Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
+
                     sourceSize.width: headerRow.height - 4
                     sourceSize.height: parent.height - 4
+
                     fillMode: Image.PreserveAspectFit
-                    Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
+                    asynchronous: true
                 }
 =

                 ColumnLayout {

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic