30 Q_PROPERTY(
int index READ index WRITE setIndex NOTIFY indexChanged FINAL)
31 Q_PROPERTY(QString name READ name NOTIFY nameChanged FINAL)
32 Q_PROPERTY(QStringList extensions READ extensions NOTIFY extensionsChanged FINAL)
33 Q_PROPERTY(QStringList globs READ globs NOTIFY globsChanged FINAL)
36 explicit QQuickFileNameFilter(QObject *parent =
nullptr);
39 void setIndex(
int index);
42 QStringList extensions()
const;
43 QStringList globs()
const;
45 QSharedPointer<QFileDialogOptions> options()
const;
46 void setOptions(
const QSharedPointer<QFileDialogOptions> &options);
48 void update(
const QString &filter);
51 void indexChanged(
int index);
52 void nameChanged(
const QString &name);
53 void extensionsChanged(
const QStringList &extensions);
54 void globsChanged(
const QStringList &globs);
57 QStringList nameFilters()
const;
58 QString nameFilter(
int index)
const;
62 QStringList m_extensions;
64 QSharedPointer<QFileDialogOptions> m_options;