common: Disable enum type stream operators for Qt >= 5.14
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 7 Jan 2020 17:34:54 +0000 (18:34 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 8 Jan 2020 18:41:46 +0000 (19:41 +0100)
commit579e559a6322209df7cd51c34801fecff5fe734b
treedb90ad1bb84173a690569b4286a32b0772a6238a
parent73db06f859484ffa6c2ce2f3953d9b448688088d
common: Disable enum type stream operators for Qt >= 5.14

Starting from version 5.14, Qt provides stream operators for enum
types, which collide with the ones we ship in types.h. Disable
Quassel's stream operators when compiling against Qt 5.14 or later.

Add a unit test that ensures that enum serialization honors the width
of the underlying type.
src/common/types.h
tests/common/CMakeLists.txt
tests/common/typestest.cpp [new file with mode: 0644]