From fda44e6fed0062b8ef91d1cfdb10b1ffa6a3d730 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sun, 2 Oct 2016 10:29:39 +0200 Subject: Make a plain AbstractButton calculate suitable implicit size Just like commit 87b21a57 made Control do it, this applies the same logic to AbstractButton. The simple reasoning is that when customizing both the contentItem and the background, it is much better to use the AbstractButton type that does not have any default building blocks. Previously you would have to supply implicit size calculation as well, but this makes it much more convenient to use. [ChangeLog][Controls][AbstractButton] A plain AbstractButton now calculates its implicit size based on the implicit size of the content item plus paddings, and the implicit size of the background item. Change-Id: Ic380366b25940fbb9f28882c4622d58f4c042a07 Reviewed-by: J-P Nurmi --- src/imports/controls/controls.pri | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/controls/controls.pri') diff --git a/src/imports/controls/controls.pri b/src/imports/controls/controls.pri index 788bfe27..dcbcf8e1 100644 --- a/src/imports/controls/controls.pri +++ b/src/imports/controls/controls.pri @@ -9,6 +9,7 @@ SOURCES += \ $$PWD/qquickdialring.cpp QML_CONTROLS = \ + AbstractButton.qml \ ApplicationWindow.qml \ BusyIndicator.qml \ Button.qml \ -- cgit v1.2.3