aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/texteditor.cpp b/examples/quickcontrols2/texteditor/texteditor.cpp
index 9b882dc803..72148c72ea 100644
--- a/examples/quickcontrols2/texteditor/texteditor.cpp
+++ b/examples/quickcontrols2/texteditor/texteditor.cpp
@@ -57,7 +57,6 @@
#include <QDebug>
#include <QQmlApplicationEngine>
#include <QQmlContext>
-#include <QQmlFileSelector>
#include <QQuickStyle>
#include "documenthandler.h"
@@ -87,7 +86,7 @@ int main(int argc, char *argv[])
#endif
QQmlApplicationEngine engine;
- QQmlFileSelector::get(&engine)->setExtraSelectors(selectors);
+ engine.setExtraFileSelectors(selectors);
engine.load(QUrl("qrc:/qml/texteditor.qml"));
if (engine.rootObjects().isEmpty())