Add fix for compiling with qt 5.14

From FreeBSD ports tree (tcberner)

Fix with Qt5-5.14

Obtained from:
        579e559a63

--- src/common/types.h.orig     2020-04-04 10:50:56 UTC
+++ src/common/types.h
@@ -140,6 +140,7 @@ Q_DECLARE_METATYPE(QHostAddress)
 typedef QList<MsgId> MsgIdList;
 typedef QList<BufferId> BufferIdList;
 
+#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
 /**
  * Catch-all stream serialization operator for enum types.
  *
@@ -169,6 +170,7 @@ QDataStream &operator>>(QDataStream &in, T &value) {
     value = static_cast<T>(v);
     return in;
 }
+#endif
 
 // Exceptions
This commit is contained in:
Marie Loise Nolden 2020-07-13 17:32:30 +00:00
parent 149515a277
commit 568b758001
1 changed files with 3 additions and 2 deletions

View File

@ -4,11 +4,12 @@
Name: quassel
Summary: A modern distributed IRC system
Version: 0.13.1
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2 or GPLv3
URL: http://quassel-irc.org/
Source0: http://quassel-irc.org/pub/quassel-%{version}.tar.bz2
Patch0: patch-src_common_types.h
BuildRequires: cmake
BuildRequires: dbusmenu-qt5-devel
@ -93,7 +94,7 @@ Quassel client
%prep
%setup -q -n %{name}-%{version}
%autosetup -p0 -n %{name}-%{version}
%build
mkdir build