summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2021-09-08 21:08:24 +0200
committerDavid Faure <david.faure@kdab.com>2021-10-01 14:15:38 +0200
commitccf504abeefe625b65750daa091ec8daf606b990 (patch)
treec851147113431bbd4ae116320ea899c26eeff105 /src/gui/text
parentf2de001d8410b85047ee40ebfff1b307a18889bb (diff)
QTextImageFormat::setQuality: deprecate the default value
Change-Id: Ia4532a7dd6eb6c0356aeea2dca0ae585ab9b1ffd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextformat.h7
1 files changed, 5 insertions, 2 deletions
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); }