summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2016-02-23 14:28:40 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2016-02-23 13:41:54 +0000
commit466bf485b0e8e35339dc5fe36db28c324c14b615 (patch)
tree52e5c282527ae984123a1e37f9500627cdbd61e2 /src/plugins/texteditor
parenta73c824083a84df8ee32cf5694b2cf2828c74ac4 (diff)
downloadqt-creator-466bf485b0e8e35339dc5fe36db28c324c14b615.tar.gz
TextEditor: Fix compile on OSX
Change-Id: I0ed48bc18489a59b0205f56a89b84e9e21fe29ca Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r--src/plugins/texteditor/fontsettings.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp
index 2f3bf279ef..6be14966d2 100644
--- a/src/plugins/texteditor/fontsettings.cpp
+++ b/src/plugins/texteditor/fontsettings.cpp
@@ -134,6 +134,11 @@ bool FontSettings::equals(const FontSettings &f) const
&& m_scheme == f.m_scheme;
}
+uint qHash(const TextStyle &textStyle)
+{
+ return ::qHash(quint8(textStyle));
+}
+
/**
* Returns the QTextCharFormat of the given format category.
*/
@@ -177,9 +182,9 @@ QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const
uint qHash(const TextStyles &textStyles)
{
- uint hash = ::qHash(quint8(textStyles.mainStyle));
+ uint hash = qHash(textStyles.mainStyle);
for (TextStyle mixinStyle : textStyles.mixinStyles)
- hash ^= ::qHash(mixinStyle);
+ hash ^= qHash(mixinStyle);
return hash;
}