Skip to content
Commit ff5c77f1 authored by Emil Velikov's avatar Emil Velikov Committed by Nate Graham
Browse files

ApplicationResourceButton: attribute the left/right padding



Currently we expose the label width via implicitTitleTextWidth to the
caller. Who then hard-codes the left/right padding, trying to calculate
the actual minimal width.

Regardless - we shouldn't be doing that, since it also implies that it
should know about the exact layout. Just pass the actual (minimal) width
instead.

Setting Layout.minimumWidth: metric.width for Kirigami.Heading does not
quite work. So instead just use a custom property.

Note: the stackedlayout calculation is off regardless of this patch.
That will be fixed with follow-up commit.

Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent f98b1a6d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment