forked from qt-creator/qt-creator
TextEditor: Fix compile on OSX
Change-Id: I0ed48bc18489a59b0205f56a89b84e9e21fe29ca Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -134,6 +134,11 @@ bool FontSettings::equals(const FontSettings &f) const
|
|||||||
&& m_scheme == f.m_scheme;
|
&& m_scheme == f.m_scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint qHash(const TextStyle &textStyle)
|
||||||
|
{
|
||||||
|
return ::qHash(quint8(textStyle));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the QTextCharFormat of the given format category.
|
* Returns the QTextCharFormat of the given format category.
|
||||||
*/
|
*/
|
||||||
@@ -177,9 +182,9 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const
|
|||||||
|
|
||||||
uint qHash(const TextStyles &textStyles)
|
uint qHash(const TextStyles &textStyles)
|
||||||
{
|
{
|
||||||
uint hash = ::qHash(quint8(textStyles.mainStyle));
|
uint hash = qHash(textStyles.mainStyle);
|
||||||
for (TextStyle mixinStyle : textStyles.mixinStyles)
|
for (TextStyle mixinStyle : textStyles.mixinStyles)
|
||||||
hash ^= ::qHash(mixinStyle);
|
hash ^= qHash(mixinStyle);
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user