diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-07-09 16:58:24 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-10 05:17:31 +0000 |
commit | 36ef2b73fb5b8ba75ec0926dc3ffde2f0487c5d5 (patch) | |
tree | 3896d1495aa1b9da02ba087c55745c33a13258ad /tests | |
parent | 297d086de02ff1babe792b96e02cb760f7a26a0e (diff) |
Reintroduce File Picker control
- Using FileDialog from QuickDialogs2
- Enabled the UIDelegates test
Task-number: QTBUG-93666
Change-Id: I8438a2498e864bc93abf26f2527d7883ac26ca9b
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 47d57eaa2756a108ae28d9e6226577fe66868cee)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/uidelegates/tst_uidelegates.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/quick/uidelegates/tst_uidelegates.cpp b/tests/auto/quick/uidelegates/tst_uidelegates.cpp index 31ce3401a..4c2fa3b3c 100644 --- a/tests/auto/quick/uidelegates/tst_uidelegates.cpp +++ b/tests/auto/quick/uidelegates/tst_uidelegates.cpp @@ -143,7 +143,6 @@ void tst_UIDelegates::javaScriptDialog() void tst_UIDelegates::fileDialog() { - QSKIP("There is no FilePicker Control in Quick Controls 2."); m_window->show(); QTRY_VERIFY(qApp->focusObject()); QQuickWebEngineView *view = webEngineView(); @@ -152,11 +151,10 @@ void tst_UIDelegates::fileDialog() "<input type='file' id='filePicker'/>" "</body></html>"); QVERIFY(waitForLoadSucceeded(view)); - QString filePickerStr = QStringLiteral("filePicker"); - QPoint filePickerCenter = elementCenter(view, filePickerStr); + QPoint filePickerCenter = elementCenter(view, QStringLiteral("filePicker")); QTest::mouseClick(view->window(), Qt::LeftButton, {}, filePickerCenter); - QTRY_VERIFY(view->findChild<QObject *>(filePickerStr)); + QTRY_VERIFY(view->findChild<QObject *>(QStringLiteral("fileDialog"))); } void tst_UIDelegates::contextMenu() |