QTextImageFormat::setQuality: deprecate the default value

Change-Id: Ia4532a7dd6eb6c0356aeea2dca0ae585ab9b1ffd
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
David Faure 2021-09-08 21:08:24 +02:00
parent f2de001d84
commit ccf504abee

View File

@ -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); }