4#include <QtCore/QFileSelector>
5#include <QtQml/QQmlAbstractUrlInterceptor>
6#include <QtQml/private/qqmlengine_p.h>
7#include <QtQml/private/qqmlapplicationengine_p.h>
71 d->engine->addUrlInterceptor(
d->myInstance.data());
81 d->engine->removeUrlInterceptor(
d->myInstance.data());
120 if (
d->ownSelector) {
122 d->ownSelector =
false;
126 if (!
d->ownSelector) {
127 d->ownSelector =
true;
141 d->selector->setExtraSelectors(
strings);
144#if QT_DEPRECATED_SINCE(6, 0)
164 if (qobject_cast<QQmlApplicationEngine *>(
engine)) {
195 if (!
path.isEmpty() && !
path.isValid())
205#include "moc_qqmlfileselector.cpp"
QString select(const QString &filePath) const
This function returns the selected version of the path, based on the conditions at runtime.
DataType
Specifies where URL interception is taking place.
static QQmlEnginePrivate * get(QQmlEngine *e)
The QQmlEngine class provides an environment for instantiating QML components.
QQmlFileSelectorPrivate * d
QQmlFileSelectorInterceptor(QQmlFileSelectorPrivate *pd)
QUrl intercept(const QUrl &path, DataType type) override
QScopedPointer< QQmlFileSelectorInterceptor > myInstance
QQmlFileSelectorPrivate()
~QQmlFileSelectorPrivate()
A class for applying a QFileSelector to QML file loading.
QQmlFileSelector(QQmlEngine *engine, QObject *parent=nullptr)
Creates a new QQmlFileSelector with parent object parent, which includes its own QFileSelector.
void setExtraSelectors(const QStringList &strings)
Adds extra selectors contained in strings to the current QFileSelector being used.
~QQmlFileSelector() override
Destroys the QQmlFileSelector object.
QFileSelector * selector() const noexcept
void setSelector(QFileSelector *selector)
Sets the QFileSelector instance for use by the QQmlFileSelector to selector.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
Combined button and popup list for selecting options.
GLsizei const GLchar ** strings
[1]
GLdouble GLdouble GLdouble GLdouble q
GLsizei const GLchar *const * path
QLatin1StringView QLatin1String
QFileSelector selector
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent