mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 16:15:12 +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")
|
font: UM.Theme.getFont("large")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
text: catalog.i18nc("@header", "Install Plugins")
|
text: pageSelectionTabBar.currentItem.pageTitle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,12 +84,14 @@ Window
|
|||||||
{
|
{
|
||||||
width: implicitWidth
|
width: implicitWidth
|
||||||
text: catalog.i18nc("@button", "Plug-ins")
|
text: catalog.i18nc("@button", "Plug-ins")
|
||||||
|
pageTitle: catalog.i18nc("@header", "Install Plugins")
|
||||||
onClicked: content.source = "Plugins.qml"
|
onClicked: content.source = "Plugins.qml"
|
||||||
}
|
}
|
||||||
PackageTypeTab
|
PackageTypeTab
|
||||||
{
|
{
|
||||||
width: implicitWidth
|
width: implicitWidth
|
||||||
text: catalog.i18nc("@button", "Materials")
|
text: catalog.i18nc("@button", "Materials")
|
||||||
|
pageTitle: catalog.i18nc("@header", "Install Materials")
|
||||||
onClicked: content.source = "Materials.qml"
|
onClicked: content.source = "Materials.qml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@ import UM 1.0 as UM
|
|||||||
|
|
||||||
TabButton
|
TabButton
|
||||||
{
|
{
|
||||||
|
property string pageTitle
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user