Fix spacing issues in FileDelegate
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user