Commit 0368834d authored by Yari Polla's avatar Yari Polla Committed by Devin Lin
Browse files

components/marqueelabel: avoid useless double binding

parent 6b058ec9
Pipeline #177797 passed with stage
in 56 seconds
......@@ -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)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment