Skip to content

Commit

Permalink
Force text fields position to start of string
Browse files Browse the repository at this point in the history
Prevents some of the longer strings from looking strange showing the
end of the setting value when they load
  • Loading branch information
steveatinfincia committed Oct 12, 2019
1 parent b5e1f3c commit 81a6553
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qml/ui/TextSettingDelegate.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ Rectangle {
anchors.rightMargin: 12
width: 192
height: 32
Component.onCompleted: text = model.value
// @disable-check M223
Component.onCompleted: {
text = model.value
cursorPosition = 0
}
// @disable-check M223
onTextChanged: {
model.value = text;
Expand Down

0 comments on commit 81a6553

Please sign in to comment.