diff -r cef43609a374 -r 0133e565e072 src/colors.h --- a/src/colors.h Sat Dec 14 23:00:01 2019 +0200 +++ b/src/colors.h Wed Jan 01 17:45:56 2020 +0200 @@ -6,6 +6,36 @@ qint32 index; }; +inline bool operator==(const Color& one, const Color& other) +{ + return one.index == other.index; +} + +inline bool operator!=(const Color& one, const Color& other) +{ + return one.index != other.index; +} + +inline bool operator<(const Color& one, const Color& other) +{ + return one.index < other.index; +} + +inline bool operator<=(const Color& one, const Color& other) +{ + return one.index <= other.index; +} + +inline bool operator>(const Color& one, const Color& other) +{ + return one.index > other.index; +} + +inline bool operator>=(const Color& one, const Color& other) +{ + return one.index >= other.index; +} + namespace colors { static constexpr Color black {0};