|
@@ -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
|
|
|
{
|