diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-04-12 08:52:58 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-04-12 09:14:06 +0000 |
commit | 9708f54144f102e4f97334c953a0a890874a6881 (patch) | |
tree | b6f3d87551c079fe5446c12eff155629b4b5c94c /src/imports/controls/imagine/DialogButtonBox.qml | |
parent | 5bd9d44bc7f78ca5946bdef788f1da63b2356a65 (diff) |
Use implicitBackgroundWidth and implicitBackgroundHeight
A simple search'n'replace change without hidden functional changes.
Change-Id: I8e42f8ad30977630005529094eea726efa15a26d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/imagine/DialogButtonBox.qml')
-rw-r--r-- | src/imports/controls/imagine/DialogButtonBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/imagine/DialogButtonBox.qml b/src/imports/controls/imagine/DialogButtonBox.qml index e58d5645..e38ad50b 100644 --- a/src/imports/controls/imagine/DialogButtonBox.qml +++ b/src/imports/controls/imagine/DialogButtonBox.qml @@ -43,9 +43,9 @@ import QtQuick.Controls.Imagine.impl 2.5 T.DialogButtonBox { id: control - implicitWidth: Math.max(background ? background.implicitWidth : 0, + implicitWidth: Math.max(implicitBackgroundWidth, (control.count === 1 ? contentWidth * 2 : contentWidth) + leftPadding + rightPadding) - implicitHeight: Math.max(background ? background.implicitHeight : 0, + implicitHeight: Math.max(implicitBackgroundHeight, contentHeight + topPadding + bottomPadding) topPadding: background ? background.topPadding : 0 |