tst_qquickpopup: Fix child button position

Make sure the button is positioned in the center, where the test
expects it to be, no matter the size of the popup.

Change-Id: I9dd6a69aea758d77686eddb5f54851e06e1e07ca
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit fe44ee9ac8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Doris Verria 2022-07-14 00:53:56 +02:00 committed by Qt Cherry-pick Bot
parent b0e67cd7bb
commit 00ab0e3bcc
2 changed files with 11 additions and 2 deletions

View File

@ -68,9 +68,14 @@ ApplicationWindow {
id: popup
x: 1
y: 1
padding: 1
leftPadding: 1
rightPadding: 1
topPadding: 1
bottomPadding: 1
Button {
anchors.centerIn: parent
id: childButton
text: "Child"
}

View File

@ -69,9 +69,13 @@ Window {
id: popup
x: 1
y: 1
padding: 1
topPadding: 1
bottomPadding: 1
leftPadding: 1
rightPadding: 1
Button {
anchors.centerIn: parent
id: childButton
text: "Child"
}