diff options
Diffstat (limited to 'src/imports/nfc/qdeclarativendeffilter.cpp')
-rw-r--r-- | src/imports/nfc/qdeclarativendeffilter.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/imports/nfc/qdeclarativendeffilter.cpp b/src/imports/nfc/qdeclarativendeffilter.cpp index 3e0bcef2..5d1dd43f 100644 --- a/src/imports/nfc/qdeclarativendeffilter.cpp +++ b/src/imports/nfc/qdeclarativendeffilter.cpp @@ -44,16 +44,15 @@ /*! \qmltype NdefFilter \instantiates QDeclarativeNdefFilter - \brief The NdefFilter type represents a filtering constraint for NDEF message records. + \since 5.2 + \brief Represents a filtering constraint for NDEF message records. \ingroup nfc-qml - \inqmlmodule QtNfc 5.0 + \inqmlmodule QtNfc \sa NearField \sa QNdefFilter - The NdefFilter type was introduced in \b {QtNfc 5.0}. - The NdefFilter type is used with the NearField type to read NDEF messages from NFC Forum tags that match a given structure. @@ -119,6 +118,20 @@ void QDeclarativeNdefFilter::setType(const QString &t) emit typeChanged(); } +QQmlNdefRecord::TypeNameFormat QDeclarativeNdefFilter::typeNameFormat() const +{ + return m_typeNameFormat; +} + +void QDeclarativeNdefFilter::setTypeNameFormat(QQmlNdefRecord::TypeNameFormat format) +{ + if (m_typeNameFormat == format) + return; + + m_typeNameFormat = format; + Q_EMIT(typeNameFormatChanged()); +} + int QDeclarativeNdefFilter::minimum() const { return m_minimum; |