mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
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:
parent
2b419a2379
commit
02d74b4226
2 changed files with 3 additions and 3 deletions
|
@ -12,6 +12,7 @@ Item
|
|||
{
|
||||
id: detailPage
|
||||
property var packageData: packages.selectedPackage
|
||||
property string title: catalog.i18nc("@header", "Package details")
|
||||
|
||||
RowLayout
|
||||
{
|
||||
|
@ -49,7 +50,7 @@ Item
|
|||
Layout.alignment: Qt.AlignVCenter
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: "Install Plug-ins" //TODO: Depend on package type, and translate.
|
||||
text: detailPage.title
|
||||
font: UM.Theme.getFont("large")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
|
|
|
@ -19,8 +19,6 @@ ListView
|
|||
Component.onCompleted: model.updatePackages()
|
||||
Component.onDestruction: model.abortUpdating()
|
||||
|
||||
//ScrollBar.vertical.policy: ScrollBar.AlwaysOff
|
||||
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
|
||||
section.property: "package.sectionTitle"
|
||||
|
@ -88,6 +86,7 @@ ListView
|
|||
PackageDetails
|
||||
{
|
||||
packageData: packages.selectedPackage
|
||||
title: packages.pageTitle
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue