Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
0368834d
Commit
0368834d
authored
May 17, 2022
by
Yari Polla
Committed by
Devin Lin
May 18, 2022
Browse files
components/marqueelabel: avoid useless double binding
parent
6b058ec9
Pipeline
#177797
passed with stage
in 56 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/components/MarqueeLabel.qml
View file @
0368834d
...
...
@@ -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
)
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment