summaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/utils.h b/utils.h
new file mode 100644
index 0000000..d0203f9
--- /dev/null
+++ b/utils.h
@@ -0,0 +1,16 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#include <functional>
+#include <QHash>
+#include <QString>
+
+namespace std {
+ template<> struct hash<QString> {
+ std::size_t operator()(const QString& s) const noexcept {
+ return (size_t) qHash(s);
+ }
+ };
+}
+
+#endif