Change page title depending on selected tab

Contributes to issue CURA-8557.
This commit is contained in:
Ghostkeeper 2021-10-29 15:51:41 +02:00
parent 73bb311293
commit 03e1fc34b4
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A
2 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,7 @@ Window
font: UM.Theme.getFont("large")
color: UM.Theme.getColor("text")
text: catalog.i18nc("@header", "Install Plugins")
text: pageSelectionTabBar.currentItem.pageTitle
}
}
@ -84,12 +84,14 @@ Window
{
width: implicitWidth
text: catalog.i18nc("@button", "Plug-ins")
pageTitle: catalog.i18nc("@header", "Install Plugins")
onClicked: content.source = "Plugins.qml"
}
PackageTypeTab
{
width: implicitWidth
text: catalog.i18nc("@button", "Materials")
pageTitle: catalog.i18nc("@header", "Install Materials")
onClicked: content.source = "Materials.qml"
}
}

View File

@ -7,6 +7,8 @@ import UM 1.0 as UM
TabButton
{
property string pageTitle
background: Rectangle
{
anchors.fill: parent