mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Add package card to detail page
The card has the wrong layout, but it's a start. The data is communicated in any case. Contributes to issue CURA-8565.
This commit is contained in:
parent
5dd2dcce90
commit
d5cfaa1e0a
2 changed files with 22 additions and 2 deletions
|
@ -9,9 +9,10 @@ import UM 1.4 as UM
|
|||
ListView
|
||||
{
|
||||
id: packages
|
||||
width: parent.width
|
||||
|
||||
property string pageTitle
|
||||
width: parent.width
|
||||
property var selectedPackage
|
||||
|
||||
clip: true
|
||||
|
||||
|
@ -69,7 +70,8 @@ ListView
|
|||
|
||||
onClicked:
|
||||
{
|
||||
contextStack.push(Qt.resolvedUrl("PackageDetails.qml"))
|
||||
packages.selectedPackage = model.package;
|
||||
contextStack.push(packageDetailsComponent);
|
||||
}
|
||||
|
||||
PackageCard
|
||||
|
@ -78,6 +80,16 @@ ListView
|
|||
}
|
||||
}
|
||||
|
||||
Component
|
||||
{
|
||||
id: packageDetailsComponent
|
||||
|
||||
PackageDetails
|
||||
{
|
||||
packageData: packages.selectedPackage
|
||||
}
|
||||
}
|
||||
|
||||
//Wrapper item to add spacing between content and footer.
|
||||
footer: Item
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue