Fix spacing issues in FileDelegate

This commit is contained in:
Carl Schwan
2021-05-07 01:51:36 +02:00
parent 07bee8d9de
commit 471b525151

View File

@@ -15,21 +15,19 @@ import NeoChat.Component 1.0
import NeoChat.Dialog 1.0 import NeoChat.Dialog 1.0
import NeoChat.Menu.Timeline 1.0 import NeoChat.Menu.Timeline 1.0
RowLayout { RowLayout {
id: root id: root
property bool openOnFinished: false property bool openOnFinished: false
readonly property bool downloaded: progressInfo && progressInfo.completed readonly property bool downloaded: progressInfo && progressInfo.completed
spacing: 4 Layout.margins: Kirigami.Units.largeSpacing
spacing: Kirigami.Units.largeSpacing
onDownloadedChanged: if (downloaded && openOnFinished) { onDownloadedChanged: if (downloaded && openOnFinished) {
openSavedFile(); openSavedFile();
} }
z: -5
ToolButton { ToolButton {
icon.name: progressInfo.completed ? "document-open" : "document-save" icon.name: progressInfo.completed ? "document-open" : "document-save"
onClicked: progressInfo.completed ? openSavedFile() : saveFileAs() onClicked: progressInfo.completed ? openSavedFile() : saveFileAs()
@@ -49,7 +47,6 @@ RowLayout {
color: Kirigami.Theme.disabledTextColor color: Kirigami.Theme.disabledTextColor
wrapMode: Label.Wrap wrapMode: Label.Wrap
} }
Layout.rightMargin: Kirigami.Units.largeSpacing
} }
Component { Component {