diff options
author | André Klitzing <aklitzing@gmail.com> | 2016-01-12 16:06:12 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-01-21 08:23:56 +0000 |
commit | 706238e037da37a28514336e1e264709f049fba7 (patch) | |
tree | 176ca08d92ab281cc99a2682353364b1654c3d6b /src/qml/qml/qqmlfileselector.cpp | |
parent | 38ec3bd755fd07ce860ef28c44f4c7148559de7c (diff) |
Add selector() to get underlying FileSelector
Change-Id: If33a23e7ba06523e964d8299365f43e8125c1619
Task-number: QTBUG-45983
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlfileselector.cpp')
-rw-r--r-- | src/qml/qml/qqmlfileselector.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlfileselector.cpp b/src/qml/qml/qqmlfileselector.cpp index d86f0ceec6..461ca33b3e 100644 --- a/src/qml/qml/qqmlfileselector.cpp +++ b/src/qml/qml/qqmlfileselector.cpp @@ -121,6 +121,16 @@ QQmlFileSelector::~QQmlFileSelector() interceptorInstances()->remove(d->myInstance.data()); } +/*! + \since 5.7 + Returns the QFileSelector instance used by the QQmlFileSelector. +*/ +QFileSelector *QQmlFileSelector::selector() const Q_DECL_NOTHROW +{ + Q_D(const QQmlFileSelector); + return d->selector; +} + QQmlFileSelectorPrivate::QQmlFileSelectorPrivate() { Q_Q(QQmlFileSelector); |