mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-06 07:14:20 +08:00
Change page title depending on selected tab
Contributes to issue CURA-8557.
This commit is contained in:
parent
73bb311293
commit
03e1fc34b4
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,8 @@ import UM 1.0 as UM
|
||||
|
||||
TabButton
|
||||
{
|
||||
property string pageTitle
|
||||
|
||||
background: Rectangle
|
||||
{
|
||||
anchors.fill: parent
|
||||
|
Loading…
x
Reference in New Issue
Block a user