Skip to content

Commit

Permalink
QTextImageFormat::setQuality: deprecate the default value
Browse files Browse the repository at this point in the history
Change-Id: Ia4532a7dd6eb6c0356aeea2dca0ae585ab9b1ffd
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
dfaure-kdab committed Oct 1, 2021
1 parent f2de001 commit ccf504a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/text/qtextformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,11 @@ class Q_GUI_EXPORT QTextImageFormat : public QTextCharFormat
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); }

Expand Down

0 comments on commit ccf504a

Please sign in to comment.