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:
parent
b0e67cd7bb
commit
00ab0e3bcc
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue