diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-04-17 15:06:14 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-04-19 09:34:51 +0000 |
commit | 37ef78bef2a1b8f6de7b196015a0343385ba36aa (patch) | |
tree | 0826cd8c6987bdbf74e20c08e85ed5215bd6f649 /src/imports/controls/fusion/Dialog.qml | |
parent | c2768f0f2aad6dd78bf0e69317575357041cc3eb (diff) |
Dialog: add implicit header and footer size properties
[ChangeLog][Controls][Dialog] Added implicitHeaderWidth, implicitHeaderHeight,
implicitFooterWidth, and implicitFooterHeight properties.
Change-Id: I0435d97cf1b6950d1ecbd5825fed1991549c59e5
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/fusion/Dialog.qml')
-rw-r--r-- | src/imports/controls/fusion/Dialog.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/controls/fusion/Dialog.qml b/src/imports/controls/fusion/Dialog.qml index e8fefa91..98b9bdd9 100644 --- a/src/imports/controls/fusion/Dialog.qml +++ b/src/imports/controls/fusion/Dialog.qml @@ -45,13 +45,13 @@ T.Dialog { id: control implicitWidth: Math.max(implicitBackgroundWidth, - header && header.visible ? header.implicitWidth : 0, - footer && footer.visible ? footer.implicitWidth : 0, - contentWidth > 0 ? contentWidth + leftPadding + rightPadding : 0) + contentWidth + leftPadding + rightPadding, + implicitHeaderWidth, + implicitFooterWidth) implicitHeight: Math.max(implicitBackgroundHeight, - (header && header.visible ? header.implicitHeight + spacing : 0) - + (footer && footer.visible ? footer.implicitHeight + spacing : 0) - + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) + contentHeight + topPadding + bottomPadding + + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0) + + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0)) padding: 6 |