Compare commits
2 Commits
master
...
work/dphal
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43bde4c9d2 | ||
|
|
cab57cc656 |
@@ -57,13 +57,18 @@ Item {
|
||||
property int rightAnchorMargin: 0
|
||||
|
||||
Layout.fillWidth: true
|
||||
implicitWidth: container.implicitWidth
|
||||
implicitHeight: container.implicitHeight
|
||||
|
||||
Item {
|
||||
id: container
|
||||
implicitWidth: mediaSizeHelper.currentSize.width
|
||||
implicitHeight: mediaSizeHelper.currentSize.height
|
||||
|
||||
RowLayout {
|
||||
anchors.top: root.top
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Kirigami.Units.smallSpacing
|
||||
anchors.right: root.right
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: root.rightAnchorMargin + Kirigami.Units.smallSpacing
|
||||
|
||||
z: 10
|
||||
@@ -147,7 +152,9 @@ Item {
|
||||
Loader {
|
||||
id: imageLoader
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
|
||||
active: !root.componentAttributes.animated && !_private.hideImage
|
||||
sourceComponent: Image {
|
||||
@@ -163,7 +170,9 @@ Item {
|
||||
Loader {
|
||||
id: animatedImageLoader
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
|
||||
active: (root?.componentAttributes.animated ?? false) && !_private.hideImage
|
||||
sourceComponent: AnimatedImage {
|
||||
@@ -176,10 +185,6 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
QQC2.ToolTip.text: root.display
|
||||
QQC2.ToolTip.visible: hoverHandler.hovered
|
||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
}
|
||||
@@ -210,6 +215,13 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QQC2.ToolTip.text: root.display
|
||||
QQC2.ToolTip.visible: hoverHandler.hovered
|
||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
|
||||
|
||||
|
||||
function downloadAndOpen() {
|
||||
if (_private.downloaded) {
|
||||
|
||||
Reference in New Issue
Block a user