diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-04 20:31:33 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-07 14:55:15 +0200 |
commit | 12d3882879401372e6fd5296144dca0c7368dc49 (patch) | |
tree | 71df74479afa0e13e6a08838859d01b4eddf2515 /tests | |
parent | 613ec309c1456783ef3a5e29532bdbce06e91a49 (diff) |
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 <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qquickpopup/tst_qquickpopup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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()); |