Minor optimization to QWidgetPrivate::setFont_helper()
There is no sense in comparing fonts with different resolve_mask-s. Change-Id: Icfdaf494fce8a59b7138d96fdf7354cc0514ca6a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
7443b3c949
commit
af217e67fa
@ -358,7 +358,7 @@ public:
|
|||||||
|
|
||||||
void updateFont(const QFont &);
|
void updateFont(const QFont &);
|
||||||
inline void setFont_helper(const QFont &font) {
|
inline void setFont_helper(const QFont &font) {
|
||||||
if (data.fnt == font && data.fnt.resolve() == font.resolve())
|
if (data.fnt.resolve() == font.resolve() && data.fnt == font)
|
||||||
return;
|
return;
|
||||||
updateFont(font);
|
updateFont(font);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user