From 12d3882879401372e6fd5296144dca0c7368dc49 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Fri, 4 Sep 2020 20:31:33 +0200 Subject: Native style: set a sensible default width for TextField Set the default width of an empty TextField to 90px (which is a number found by creating an NSTextField in XCode and measuring it with pixeltool). This should also make tst_QQuickPopup::macOS::cursorShape() pass. Change-Id: Ia2a059668c2e1eaea3eef20015a8ea99468dd8ad Reviewed-by: Mitch Curtis --- tests/auto/qquickpopup/tst_qquickpopup.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index fb91915c..ff04c99d 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -983,6 +983,7 @@ void tst_QQuickPopup::cursorShape() // Move the mouse over the text field. const QPoint textFieldPos(popup->x() - 10, textField->height() / 2); + QVERIFY(textField->contains(textField->mapFromScene(textFieldPos))); QTest::mouseMove(window, textFieldPos); QCOMPARE(window->cursor().shape(), textField->cursor().shape()); -- cgit v1.2.3