diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2014-01-15 22:51:53 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 02:42:31 +0100 |
commit | e52dca36559bf7472b8a2394fd9b52058a523c0e (patch) | |
tree | 4b9d770a49e7f29369d9d0f4774df8fa065af8aa /src/gui/text/qtextformat.cpp | |
parent | c5192b300e7f3e24720a5886a25ed932e0e7f335 (diff) |
Add convenience method QTextFormat::isEmpty()
Change-Id: I30e74de6853908d1fec399131637848e3c2faabe
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/gui/text/qtextformat.cpp')
-rw-r--r-- | src/gui/text/qtextformat.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index 2389427da0..3d70befda3 100644 --- a/src/gui/text/qtextformat.cpp +++ b/src/gui/text/qtextformat.cpp @@ -706,6 +706,15 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt) */ /*! + \fn bool QTextFormat::isEmpty() const + \since 5.3 + + Returns true if the format does not store any properties; false otherwise. + + \sa propertyCount(), properties() +*/ + +/*! \fn bool QTextFormat::isCharFormat() const Returns \c true if this text format is a \c CharFormat; otherwise |