Bug 551573 - fix layout in compare editor

The content comparison pane has a long label in its header, next to
the comparison algorithm selector. That label is normally hidden; it
is shown only when the diff was truncated. The layout was still
computed as if the label was visible, though, and thus the toolbar
at the right was placed far too often on a new line.

Give this label (and its icon) a RowData layout data and exclude it
from the RowLayout of its container when not visible. That way this
label is considered for layout only when it is actually visible. Do
the same for the ToolItem for the drop-down menu.

The label contains a link, when clicked, it recomputes the diff
without any limits. But the label remained visible even afterwards.
Therefore also hide the link when clicked.

Change-Id: I8e077324128f57b8614b6cd17e7aa38548742cd2
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
1 file changed