1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Add translation support to main menu

This commit is contained in:
Elias Steurer 2021-09-21 17:26:41 +02:00
parent 811259df27
commit cddf821f89
2 changed files with 7 additions and 1 deletions

View File

@ -78,6 +78,7 @@ Rectangle {
state: "inactive"
name: "Create"
text: qsTr("Create")
iconSource: "qrc:/assets/icons/icon_plus.svg"
onPageClicked: root.onPageChanged(name)
objectName: "createTab"
@ -88,6 +89,7 @@ Rectangle {
state: "inactive"
name: "Workshop"
text: qsTr("Workshop")
iconSource: "qrc:/assets/icons/icon_steam.svg"
onPageClicked: root.onPageChanged(name)
objectName: "workshopTab"
@ -98,6 +100,7 @@ Rectangle {
state: "active"
name: "Installed"
text: qsTr("Installed")
amount: ScreenPlay.installedListModel.count
iconSource: "qrc:/assets/icons/icon_installed.svg"
onPageClicked: root.onPageChanged(name)
@ -109,6 +112,7 @@ Rectangle {
state: "inactive"
name: "Community"
text: qsTr("Community")
iconSource: "qrc:/assets/icons/icon_community.svg"
onPageClicked: root.onPageChanged(name)
objectName: "communityTab"
@ -119,6 +123,7 @@ Rectangle {
state: "inactive"
name: "Settings"
text: qsTr("Settings")
iconSource: "qrc:/assets/icons/icon_settings.svg"
onPageClicked: root.onPageChanged(name)
objectName: "settingsTab"

View File

@ -7,7 +7,8 @@ Item {
id: navigationItem
property string iconSource: "qrc:/assets/icons/icon_installed.svg"
property alias name: txt.text
property string name
property alias text: txt.text
property alias amount: txtAmount.text
property bool enabled: true