mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
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:
parent
5f884321ea
commit
4191f98440
2 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
11
plugins/Marketplace/resources/qml/Materials.qml
Normal file
11
plugins/Marketplace/resources/qml/Materials.qml
Normal 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
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue