aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlfileselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlfileselector.cpp')
-rw-r--r--src/qml/qml/qqmlfileselector.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlfileselector.cpp b/src/qml/qml/qqmlfileselector.cpp
index 8498a4d67d..ffda7a3cf9 100644
--- a/src/qml/qml/qqmlfileselector.cpp
+++ b/src/qml/qml/qqmlfileselector.cpp
@@ -162,6 +162,18 @@ void QQmlFileSelector::setExtraSelectors(QStringList &strings)
d->selector->setExtraSelectors(strings);
}
+
+/*!
+ Adds extra selectors contained in \a strings to the current QFileSelector being used.
+ Use this when extra selectors are all you need to avoid having to create your own
+ QFileSelector instance.
+*/
+void QQmlFileSelector::setExtraSelectors(const QStringList &strings)
+{
+ Q_D(QQmlFileSelector);
+ d->selector->setExtraSelectors(strings);
+}
+
/*!
Gets the QQmlFileSelector currently active on the target \a engine.
*/