1 | // Copyright (C) 2016 BlackBerry Limited. All rights reserved. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QQMLFILESELECTOR_H |
5 | #define QQMLFILESELECTOR_H |
6 | |
7 | #include <QtCore/QObject> |
8 | #include <QtCore/QUrl> |
9 | #include <QtQml/QQmlEngine> |
10 | #include <QtQml/qtqmlglobal.h> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class QFileSelector; |
15 | class QQmlFileSelectorPrivate; |
16 | class Q_QML_EXPORT QQmlFileSelector : public QObject |
17 | { |
18 | Q_OBJECT |
19 | Q_DECLARE_PRIVATE(QQmlFileSelector) |
20 | public: |
21 | explicit QQmlFileSelector(QQmlEngine *engine, QObject *parent = nullptr); |
22 | ~QQmlFileSelector() override; |
23 | QFileSelector *selector() const noexcept; |
24 | void setSelector(QFileSelector *selector); |
25 | void setExtraSelectors(const QStringList &strings); |
26 | |
27 | #if QT_DEPRECATED_SINCE(6, 0) |
28 | QT_DEPRECATED static QQmlFileSelector *get(QQmlEngine*); |
29 | #endif |
30 | |
31 | private: |
32 | Q_DISABLE_COPY(QQmlFileSelector) |
33 | }; |
34 | |
35 | QT_END_NAMESPACE |
36 | |
37 | #endif |
38 |