Switch pages to Materials when tab is clicked

And back to plug-ins when that tab is clicked.
Sadly, linking the content dynamically doesn't seem to work, with a custom property.

Contributes to issue CURA-8557.
This commit is contained in:
Ghostkeeper 2021-10-28 18:23:14 +02:00
parent 5f884321ea
commit 4191f98440
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 14 additions and 0 deletions

View file

@ -74,6 +74,7 @@ Window
TabBar //Page selection.
{
id: pageSelectionTabBar
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
@ -83,11 +84,13 @@ Window
{
width: implicitWidth
text: catalog.i18nc("@button", "Plug-ins")
onClicked: content.source = "Plugins.qml"
}
PackageTypeTab
{
width: implicitWidth
text: catalog.i18nc("@button", "Materials")
onClicked: content.source = "Materials.qml"
}
}
}

View file

@ -0,0 +1,11 @@
// Copyright (c) 2021 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import Marketplace 1.0 as Marketplace
Packages
{
model: Marketplace.PackageList
{
}
}