From ccf504abeefe625b65750daa091ec8daf606b990 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 8 Sep 2021 21:08:24 +0200 Subject: QTextImageFormat::setQuality: deprecate the default value Change-Id: Ia4532a7dd6eb6c0356aeea2dca0ae585ab9b1ffd Reviewed-by: Lars Knoll --- src/gui/text/qtextformat.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/text/qtextformat.h') diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index fc48dbe6e2..a849ed7d3b 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -832,8 +832,11 @@ public: inline qreal height() const { return doubleProperty(ImageHeight); } - // TODO Qt7: remove default value; setQuality() with no value reads strange. - inline void setQuality(int quality = 100); + inline void setQuality(int quality); +#if QT_DEPRECATED_SINCE(6, 3) + QT_DEPRECATED_VERSION_X_6_3("Pass a quality value, the default is 100") inline void setQuality() + { setQuality(100); } +#endif inline int quality() const { return intProperty(ImageQuality); } -- cgit v1.2.3