fix title text to fixed length
This commit is contained in:
parent
e74c3ce04b
commit
208a58f2b8
@ -38,6 +38,7 @@ Rectangle {
|
|||||||
CustomText {
|
CustomText {
|
||||||
id: titleText
|
id: titleText
|
||||||
Layout.rightMargin: 10
|
Layout.rightMargin: 10
|
||||||
|
Layout.maximumWidth: 300
|
||||||
text: root.activeWindow ? root.activeWindow.activated ? root.activeWindow.title : "Desktop" : "Desktop"
|
text: root.activeWindow ? root.activeWindow.activated ? root.activeWindow.title : "Desktop" : "Desktop"
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
console.log(root.activeWindow.title);
|
console.log(root.activeWindow.title);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user