diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2018-04-05 17:30:34 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2018-04-06 15:22:10 +0000 |
commit | ea4dc11ce772d34ee71e4dca0b09f329e2953c68 (patch) | |
tree | 29157a824063f161c44c751de449af06903c7a5a /src/imports | |
parent | f447493bf9a8cf3490da0f5409d76e7f7fc98759 (diff) |
QQuickPopupItem: inherit QQuickPane
Change-Id: Ia32f3004cf540f995344286683d754558369f279
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/controls/Dialog.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/Drawer.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/Popup.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/fusion/Dialog.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/fusion/Drawer.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/fusion/Popup.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/imagine/Dialog.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/imagine/Drawer.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/imagine/Popup.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/material/Dialog.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/material/Drawer.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/material/Popup.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/universal/Dialog.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/universal/Drawer.qml | 3 | ||||
-rw-r--r-- | src/imports/controls/universal/Popup.qml | 3 |
15 files changed, 0 insertions, 45 deletions
diff --git a/src/imports/controls/Dialog.qml b/src/imports/controls/Dialog.qml index 768d3ff1..144e2c48 100644 --- a/src/imports/controls/Dialog.qml +++ b/src/imports/controls/Dialog.qml @@ -51,9 +51,6 @@ T.Dialog { + (footer && footer.visible ? footer.implicitHeight + spacing : 0) + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 12 background: Rectangle { diff --git a/src/imports/controls/Drawer.qml b/src/imports/controls/Drawer.qml index 78199695..ebdb138a 100644 --- a/src/imports/controls/Drawer.qml +++ b/src/imports/controls/Drawer.qml @@ -47,9 +47,6 @@ T.Drawer { implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: control.edge === Qt.BottomEdge leftPadding: control.edge === Qt.RightEdge rightPadding: control.edge === Qt.LeftEdge diff --git a/src/imports/controls/Popup.qml b/src/imports/controls/Popup.qml index f7966be4..1192a65c 100644 --- a/src/imports/controls/Popup.qml +++ b/src/imports/controls/Popup.qml @@ -47,9 +47,6 @@ T.Popup { implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 12 background: Rectangle { diff --git a/src/imports/controls/fusion/Dialog.qml b/src/imports/controls/fusion/Dialog.qml index a2366170..b9052aa2 100644 --- a/src/imports/controls/fusion/Dialog.qml +++ b/src/imports/controls/fusion/Dialog.qml @@ -53,9 +53,6 @@ T.Dialog { + (footer && footer.visible ? footer.implicitHeight + spacing : 0) + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 6 background: Rectangle { diff --git a/src/imports/controls/fusion/Drawer.qml b/src/imports/controls/fusion/Drawer.qml index 2ee18a9b..6feb1692 100644 --- a/src/imports/controls/fusion/Drawer.qml +++ b/src/imports/controls/fusion/Drawer.qml @@ -49,9 +49,6 @@ T.Drawer { implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: control.edge === Qt.BottomEdge leftPadding: control.edge === Qt.RightEdge rightPadding: control.edge === Qt.LeftEdge diff --git a/src/imports/controls/fusion/Popup.qml b/src/imports/controls/fusion/Popup.qml index 1ac87a25..71c506ac 100644 --- a/src/imports/controls/fusion/Popup.qml +++ b/src/imports/controls/fusion/Popup.qml @@ -49,9 +49,6 @@ T.Popup { implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 6 background: Rectangle { diff --git a/src/imports/controls/imagine/Dialog.qml b/src/imports/controls/imagine/Dialog.qml index 241d426f..1c3c4f53 100644 --- a/src/imports/controls/imagine/Dialog.qml +++ b/src/imports/controls/imagine/Dialog.qml @@ -52,9 +52,6 @@ T.Dialog { + (footer && footer.visible ? footer.implicitHeight + spacing : 0) + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: background ? background.topPadding : 0 leftPadding: background ? background.leftPadding : 0 rightPadding: background ? background.rightPadding : 0 diff --git a/src/imports/controls/imagine/Drawer.qml b/src/imports/controls/imagine/Drawer.qml index f653375b..280518b4 100644 --- a/src/imports/controls/imagine/Drawer.qml +++ b/src/imports/controls/imagine/Drawer.qml @@ -47,9 +47,6 @@ T.Drawer { implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: background ? background.topPadding : 0 leftPadding: background ? background.leftPadding : 0 rightPadding: background ? background.rightPadding : 0 diff --git a/src/imports/controls/imagine/Popup.qml b/src/imports/controls/imagine/Popup.qml index 089bc158..e0edc866 100644 --- a/src/imports/controls/imagine/Popup.qml +++ b/src/imports/controls/imagine/Popup.qml @@ -47,9 +47,6 @@ T.Popup { implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: background ? background.topPadding : undefined leftPadding: background ? background.leftPadding : undefined rightPadding: background ? background.rightPadding : undefined diff --git a/src/imports/controls/material/Dialog.qml b/src/imports/controls/material/Dialog.qml index 51d2c654..79258f82 100644 --- a/src/imports/controls/material/Dialog.qml +++ b/src/imports/controls/material/Dialog.qml @@ -53,9 +53,6 @@ T.Dialog { + (footer && footer.visible ? footer.implicitHeight + spacing : 0) + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 24 topPadding: 20 diff --git a/src/imports/controls/material/Drawer.qml b/src/imports/controls/material/Drawer.qml index 1d9314b8..ce9b49a4 100644 --- a/src/imports/controls/material/Drawer.qml +++ b/src/imports/controls/material/Drawer.qml @@ -47,9 +47,6 @@ T.Drawer { implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: !dim && edge === Qt.BottomEdge && Material.elevation === 0 leftPadding: !dim && edge === Qt.RightEdge && Material.elevation === 0 rightPadding: !dim && edge === Qt.LeftEdge && Material.elevation === 0 diff --git a/src/imports/controls/material/Popup.qml b/src/imports/controls/material/Popup.qml index adc070a4..549ba0f0 100644 --- a/src/imports/controls/material/Popup.qml +++ b/src/imports/controls/material/Popup.qml @@ -49,9 +49,6 @@ T.Popup { implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 12 enter: Transition { diff --git a/src/imports/controls/universal/Dialog.qml b/src/imports/controls/universal/Dialog.qml index 3d17e77b..98a5efea 100644 --- a/src/imports/controls/universal/Dialog.qml +++ b/src/imports/controls/universal/Dialog.qml @@ -51,9 +51,6 @@ T.Dialog { + (footer && footer.visible ? footer.implicitHeight + spacing : 0) + (contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0)) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 24 verticalPadding: 18 diff --git a/src/imports/controls/universal/Drawer.qml b/src/imports/controls/universal/Drawer.qml index dbb3f2a9..2fe252e5 100644 --- a/src/imports/controls/universal/Drawer.qml +++ b/src/imports/controls/universal/Drawer.qml @@ -46,9 +46,6 @@ T.Drawer { implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - topPadding: control.edge === Qt.BottomEdge leftPadding: control.edge === Qt.RightEdge rightPadding: control.edge === Qt.LeftEdge diff --git a/src/imports/controls/universal/Popup.qml b/src/imports/controls/universal/Popup.qml index 9d250782..243c793b 100644 --- a/src/imports/controls/universal/Popup.qml +++ b/src/imports/controls/universal/Popup.qml @@ -46,9 +46,6 @@ T.Popup { implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight > 0 ? contentHeight + topPadding + bottomPadding : 0) - contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) - contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) - padding: 12 background: Rectangle { |