From 0368834d2c3e48bf985ef3007faf9d63a58c2d01 Mon Sep 17 00:00:00 2001 From: Yari Polla Date: Tue, 17 May 2022 22:01:04 +0200 Subject: [PATCH] components/marqueelabel: avoid useless double binding --- components/mobileshell/qml/components/MarqueeLabel.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/mobileshell/qml/components/MarqueeLabel.qml b/components/mobileshell/qml/components/MarqueeLabel.qml index 97ef8106..e4288bcf 100644 --- a/components/mobileshell/qml/components/MarqueeLabel.qml +++ b/components/mobileshell/qml/components/MarqueeLabel.qml @@ -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) }