Make header of detail page depend on header of origin

It's the same as the list of packages you came from, now.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 19:41:25 +01:00 committed by Jelle Spijker
parent 2b419a2379
commit 02d74b4226
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A
2 changed files with 3 additions and 3 deletions

View File

@ -12,6 +12,7 @@ Item
{ {
id: detailPage id: detailPage
property var packageData: packages.selectedPackage property var packageData: packages.selectedPackage
property string title: catalog.i18nc("@header", "Package details")
RowLayout RowLayout
{ {
@ -49,7 +50,7 @@ Item
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true Layout.fillWidth: true
text: "Install Plug-ins" //TODO: Depend on package type, and translate. text: detailPage.title
font: UM.Theme.getFont("large") font: UM.Theme.getFont("large")
color: UM.Theme.getColor("text") color: UM.Theme.getColor("text")
} }

View File

@ -19,8 +19,6 @@ ListView
Component.onCompleted: model.updatePackages() Component.onCompleted: model.updatePackages()
Component.onDestruction: model.abortUpdating() Component.onDestruction: model.abortUpdating()
//ScrollBar.vertical.policy: ScrollBar.AlwaysOff
spacing: UM.Theme.getSize("default_margin").height spacing: UM.Theme.getSize("default_margin").height
section.property: "package.sectionTitle" section.property: "package.sectionTitle"
@ -88,6 +86,7 @@ ListView
PackageDetails PackageDetails
{ {
packageData: packages.selectedPackage packageData: packages.selectedPackage
title: packages.pageTitle
} }
} }