mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Change page title depending on selected tab
Contributes to issue CURA-8557.
This commit is contained in:
parent
73bb311293
commit
03e1fc34b4
2 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue