mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:56:01 +08: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
@ -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…
x
Reference in New Issue
Block a user