From e52dca36559bf7472b8a2394fd9b52058a523c0e Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Wed, 15 Jan 2014 22:51:53 +0200 Subject: Add convenience method QTextFormat::isEmpty() Change-Id: I30e74de6853908d1fec399131637848e3c2faabe Reviewed-by: Lars Knoll --- src/gui/text/qtextformat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/text/qtextformat.h') diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index 2098369811..c04ac3876b 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -295,6 +295,7 @@ public: void merge(const QTextFormat &other); inline bool isValid() const { return type() != InvalidFormat; } + inline bool isEmpty() const { return propertyCount() == 0; } int type() const; -- cgit v1.2.3