feat: async components
This commit is contained in:
parent
9d36f5c314
commit
52e7e9732b
5 changed files with 10 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ Elevation {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
active: item.modelData.trailingIcon.length > 0
|
||||
visible: active
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ StyledRect {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
active: !!root.label
|
||||
visible: active
|
||||
|
||||
|
|
@ -101,6 +102,8 @@ StyledRect {
|
|||
// Tooltip - positioned absolutely, doesn't affect layout
|
||||
Loader {
|
||||
id: tooltipLoader
|
||||
|
||||
asynchronous: true
|
||||
active: root.tooltip !== ""
|
||||
z: 10000
|
||||
width: 0
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ Item {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.centerIn: parent
|
||||
|
||||
opacity: view.count === 0 ? 1 : 0
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ StyledRect {
|
|||
spacing: 0
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
Layout.rightMargin: Appearance.spacing.small
|
||||
active: folder.index > 0
|
||||
sourceComponent: StyledText {
|
||||
|
|
@ -89,6 +90,7 @@ StyledRect {
|
|||
implicitHeight: folderName.implicitHeight + Appearance.padding.small * 2
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
anchors.fill: parent
|
||||
active: folder.index < root.dialog.cwd.length - 1
|
||||
sourceComponent: StateLayer {
|
||||
|
|
@ -103,6 +105,8 @@ StyledRect {
|
|||
Loader {
|
||||
id: homeIcon
|
||||
|
||||
asynchronous: true
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.leftMargin: Appearance.padding.normal
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ Item {
|
|||
Loader {
|
||||
id: loader
|
||||
|
||||
asynchronous: true
|
||||
anchors.fill: parent
|
||||
sourceComponent: root.source ? root.source.toString().startsWith("image://icon/") ? iconImage : cachingImage : null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue