forked from Shinonome/dots-hyprland
refactor fixed width text
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property alias longestText: longestTextMetrics.text
|
||||
property alias font: longestTextMetrics.font
|
||||
|
||||
implicitWidth: longestTextMetrics.width
|
||||
implicitHeight: longestTextMetrics.height
|
||||
|
||||
TextMetrics {
|
||||
id: longestTextMetrics
|
||||
text: root.longestText
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user