forked from qt-creator/qt-creator
TextEditor: Fix compile for Qt < 5.5
Change-Id: I653d76452289a91fdb069be14dd2c8816f856306 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -178,9 +178,8 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const
|
||||
uint qHash(const TextStyles &textStyles)
|
||||
{
|
||||
uint hash = ::qHash(quint8(textStyles.mainStyle));
|
||||
|
||||
hash ^= ::qHashRange(textStyles.mixinStyles.cbegin(), textStyles.mixinStyles.cend());
|
||||
|
||||
for (TextStyle mixinStyle : textStyles.mixinStyles)
|
||||
hash ^= ::qHash(mixinStyle);
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user