Skip to content
Snippets Groups Projects
Commit f0865102 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: Fixing expressions and tr checkbox


The handling of expressions in states was broken in conjunction with states.

This patch fixes a couple of related issues:

*  The notifier of isTranslated (PropertyEditorValue) has to be
   expressionChanged, since this property depends on the expression.

* isTranslated() has to return also true if there is only an expression
  in the base state. If the string is translated in the base state it
  should be translated in other states, too.

* In states the expression set in createPropertyEditorValue() has to be the
  expression of the current stateif there is one.
  We can not just fall back to instanceValue.

* I did a couple of fixes in LineEdit.qml. We cannot bind checked directly,
  since the binding will be deleted when checked is changed by the control.
  I removed all code regarding transactions. We react to onEditingFinished,
  so it is not required. The translated state is properly preserved now, when
  setting the value.

Task-number: QTCREATORBUG-10674
Task-number: QTCREATORBUG-10791
Change-Id: I95721711a37e63c4c7c38e275089d6de0bb92bec
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent c283ecaf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment