If we anchor left or right we have to disable horizontal
anchoring.
Actually this is still simpler then what Qt Quick actually
supports, since Qt Quick does support anchoring to the left
and horizontal anchoring.
What is not supported is anchoring to the left, right and
horizontally.
This has to be fixed.
Change-Id: Id38e528d9d8a97961135370b0c9c0151bd4b6f18
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This fixes a regression introduced by
commit 1da0d018c2.
Task-number: QTCREATORBUG-12501
Change-Id: I96dd1c19afa6b6b0a56ef5f6ea5e01272aa1b774
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
I moved the property format into Text section, because
having two sections with even the same name was confusing.
The format property also is not really related to "Text Input".
Since the distinction between plain and rich text is very important,
it makes sense to have this property in the first section.
Change-Id: I4d66ed4a24fe0d99d394c17d149c830db2c6d3b8
Task-number: QTCREATORBUG-12452
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
When evaluating Component.onCompleted the childrenRect.height
was not properly set, yet.
Instead we use onChildRectHeightChanged.
Change-Id: I68f395555fbfccccea35fab4387dcc23ca7f1a92
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Fine tuning of the styling and some minor adjustments.
The TextFields for the state names are always visible now.
Change-Id: I617085bb08fd4bb0e926610b1c3f3020db3c68a8
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Before the code was abusing the anchoring backend.
Change-Id: I716c5cfa7a5c72d500cb5ae8c943c52f84c60e91
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Sometimes there is no trivial mapping between model and values.
Change-Id: I2617f14828b97ba7352aa3a8f3d2ebb9fd2f3809
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Commit any data to the backend if the selection will change.
The signal editingFinished is usually triggered to late.
Change-Id: Ib7adfd32a50ae94b017a7587e81721176440a988
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This patch ensures that we only commit data to the backend
if the text actually changed. The signal onEditingFinished is triggered
even if the user did not edit the string.
Change-Id: I2d54f3d79a1c60525e4c9744b364cc014bd407ce
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
The small ColorCheckButton has to preview the same color as the rest
of the color editor. Before this patch it was showing the color
defined in the backend as rectangle color.
This is not correct in gradient editing mode.
Also the binding in Colorbutton was deleted assigning values
directly.
Task-number: QTCREATORBUG-12204
Change-Id: Iad5263ccccba10fdb4f2b757f6965d500c50ac53
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Instead we connect to the selectionChanged signal and do the setup there.
Change-Id: Ia44887fa794c9726b3c4111e1b1f37ba2baaafc5
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
We have to properly setup the color of the color editor, if we add or
remove a gradient.
Change-Id: I3aac64e9957036343ff304f1b163c4c480b5e976
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
On some systems the fonts are eally huge, so we have
to allow much more space for the leading label.
Task-number: QTCREATORBUG-12106
Change-Id: I7ad6687c4af15b2126efe2c3bd8284d36d9ac633
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
We react to selection change now and keep the selection.
Change-Id: I847b8cf308277df92295822f9cd18ebb58cc2ba0
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
We have to wait until the model is properly set until we react
to currentTextChanged. We also have to guard against binding loops.
Task-number: QTCREATORBUG-12257
Change-Id: Id602f6f192962e83a6166bf24a0711b22baa7868
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Using hasToConvertColor to handle the alpha channel.
Change-Id: I6b6e2ef4361efb7aba3adaf549cbddd625145e33
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>