diff --git a/Libraries/LibGUI/GModelIndex.h b/Libraries/LibGUI/GModelIndex.h index 1e4e567c54..ef9b558c74 100644 --- a/Libraries/LibGUI/GModelIndex.h +++ b/Libraries/LibGUI/GModelIndex.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include class GModel; @@ -48,3 +48,10 @@ inline const LogStream& operator<<(const LogStream& stream, const GModelIndex& v { return stream << String::format("GModelIndex(%d,%d)", value.row(), value.column()); } + +namespace AK { +template<> +struct Traits : public GenericTraits { + static unsigned hash(const GModelIndex& index) { return pair_int_hash(index.row(), index.column()); } +}; +}