qtdeclarative/examples/quickcontrols2
Luca Di Sera 325938018b Remove deprecated usage of QQmlFileSelector::get in texteditor example
The text editor example adds a "touch" file selector to the qml engine
that is used for the application such as to be able to provide an
interface for touch based devices.

The extra selectors were added by retrieving the engine's file selector
trough QQmlFileSelector::get, which was deprecated in Qt 6.0, see commit
75563fa761.

This resulted in a deprecation warning when the example was built.

To avoid the warning and the use of deprecated methods in examples, the
example was modified to use the suggested replacement, `QQmlApplicationEngine::setExtraFileSelectors`.

A line suggesting the use of the deprecated method was removed
from `QQmlFileSelector`'s documentaton page.

Fixes: QTBUG-97462
Pick-to: 6.2
Change-Id: I6ee0306647fe16e75c2cd72f3b37be6c7c5f9261
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-10-22 07:36:35 +00:00
..
chattutorial Replace 0 pointer constants with nullptr 2021-10-18 12:39:28 +02:00
contactlist Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
flatstyle Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
gallery Gallery example: remove binding loop from TextArea page 2021-09-13 14:42:09 +02:00
imagine Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
sidepanel Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
swipetoremove Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
texteditor Remove deprecated usage of QQmlFileSelector::get in texteditor example 2021-10-22 07:36:35 +00:00
wearable Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 13:48:14 +02:00
CMakeLists.txt Conversion of QtQuickControls2 examples 2019-10-08 16:25:53 +00:00
quickcontrols2.pro Fix duplicate entry in projcet list 2019-09-20 17:10:09 +02:00