/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2019 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
using MsgIdList = QList<MsgId>;
using BufferIdList = QList<BufferId>;
+#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
/**
* Catch-all stream serialization operator for enum types.
*
value = static_cast<T>(v);
return in;
}
+#endif
+
+// STL-compliant hash functor for Qt types
+template<typename T>
+struct Hash
+{
+ uint operator()(const T& t) const
+ {
+ return qHash(t);
+ }
+};
// Exceptions