diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2014-08-21 15:36:30 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-08-24 09:56:59 +0200 |
commit | 4f98d16c66816e3097cf4b1764e2bf3d0f75ddf3 (patch) | |
tree | 864e5e73437445ad5ff8923249e5456df6e0d75a /src/qml/qml/qqmlfileselector.cpp | |
parent | 23776181b8e73dc7f18c3042fcc37c9f018f29c5 (diff) |
Add const & to arguments
Change-Id: I1bcf69638fee32b6e6565b8ea828c0adcff48a67
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlfileselector.cpp')
-rw-r--r-- | src/qml/qml/qqmlfileselector.cpp | 12 |
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. */ |