mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
components/marqueelabel: avoid useless double binding
This commit is contained in:
parent
6b058ec9d9
commit
0368834d2c
1 changed files with 1 additions and 2 deletions
|
|
@ -20,7 +20,6 @@ PlasmaComponents.Label {
|
|||
property int interval: PlasmaCore.Units.longDuration
|
||||
|
||||
readonly property int charactersOverflow: Math.ceil((txtMeter.advanceWidth - root.width) / (txtMeter.advanceWidth / inputText.length))
|
||||
readonly property string displayedText: inputText.substring(step, step + inputText.length - charactersOverflow)
|
||||
property int step: 0
|
||||
|
||||
TextMetrics {
|
||||
|
|
@ -60,5 +59,5 @@ PlasmaComponents.Label {
|
|||
}
|
||||
}
|
||||
|
||||
text: displayedText
|
||||
text: inputText.substring(step, step + inputText.length - charactersOverflow)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue