RibbonTabBar, RibbonTabButton: Fix translation bug on Qt 6.
This commit is contained in:
parent
cff7e20ac8
commit
6e870bfdbb
|
@ -225,7 +225,7 @@ Item{
|
|||
{
|
||||
let item = stack.contentData[i]
|
||||
if(item instanceof RibbonTabPage){
|
||||
let btn = ribbonTabButton.createObject(bar,{text:qsTranslate("RibbonTabBar", item.title),index:sign})
|
||||
let btn = ribbonTabButton.createObject(bar,{text:item.title,index:sign})
|
||||
item.titleChanged.connect(function(){btn.text=item.title})
|
||||
if (sign===0)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ TabButton {
|
|||
|
||||
Text {
|
||||
id :btn_text
|
||||
text: control.text
|
||||
text: qsTranslate("RibbonTabBar",control.text)
|
||||
font{
|
||||
family: Qt.platform.os === "osx" ? "PingFang SC" : "Microsoft YaHei UI"
|
||||
pixelSize: 13
|
||||
|
|
|
@ -225,7 +225,7 @@ Item{
|
|||
{
|
||||
let item = stack.contentData[i]
|
||||
if(item instanceof RibbonTabPage){
|
||||
let btn = ribbonTabButton.createObject(bar,{text:qsTranslate("RibbonTabBar", item.title),index:sign})
|
||||
let btn = ribbonTabButton.createObject(bar,{text:item.title,index:sign})
|
||||
item.titleChanged.connect(function(){btn.text=item.title})
|
||||
if (sign===0)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ TabButton {
|
|||
|
||||
Text {
|
||||
id :btn_text
|
||||
text: control.text
|
||||
text: qsTranslate("RibbonTabBar",control.text)
|
||||
font{
|
||||
family: Qt.platform.os === "osx" ? "PingFang SC" : "Microsoft YaHei UI"
|
||||
pixelSize: 13
|
||||
|
|
Loading…
Reference in New Issue