tellico/Fix-build-with-Qt-5.9.patch
Christophe Giboudeaux 6c062c5f4a Accepting request 796652 from home:wolfi323:branches:KDE:Extra
- Update to 3.3:
  Features:
  * Added new coin collection data source from Colnect.
  * Updated GiantBomb data source.
  * Updated IBS.it data source
  * Updated kino.de data source.
  * Updated Kinopoisk (КиноПоиск) data source.
  * Updated Kino-Teatr (Кино-Театр) data source.
  * Updated BiblioShare data source.
  * Updated TheGamesDB data source.
  * Updated Amazon data source. Access keys must be regenerated by
    users.
  * Updated MobyGames data source.
  * Improved z39.50 data source to allow separate character
    encoding for queries and responses (kde#419670).
  * Improved the audio file importing to include Album Artist
    (kde#419348).
  * Added PlayStation5 and Xbox Series X to recognized video game
    platforms.
  Bug Fixes:
  * Fixed bug with writing invalid XML names (kde#418067).
  * Updated AlloCiné and MusicBrainz data sources to provide
    notification that user agents must be enabled (kde#419309).
  * Improved MobyGames data source to cache platform data, allow
    user selection of image size, pass through error messages, and
    use more efficient API calls (kde#416718).
  * Improved the ISO-5426 character converter.
  * Updated python scripts to work in python2 or python3.
- Add patches to fix build with the lower Qt versions in Leap:
  * Use-unnamespaced-hex-for-Qt-lt-5.14.patch
  * Fix-build-with-Qt-5.9.patch

OBS-URL: https://build.opensuse.org/request/show/796652
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/tellico?expand=0&rev=57
2020-04-23 20:02:45 +00:00

33 lines
900 B
Diff

From 48b3238c50314d0a2a5ab62c03868c9dedd7a360 Mon Sep 17 00:00:00 2001
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Thu, 23 Apr 2020 18:56:39 +0200
Subject: [PATCH] Fix build with Qt 5.9
`qsizetype` is only defined starting with Qt 5.10.
To avoid a compiler error, conditionally define it appropriately for
older Qt versions (the actual line is copied from Qt 5.10's qglobal.h).
Differential Revision: https://phabricator.kde.org/D29134
---
src/images/image.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/images/image.h b/src/images/image.h
index eb287db9..3081b831 100644
--- a/src/images/image.h
+++ b/src/images/image.h
@@ -30,6 +30,10 @@
#include <QByteArray>
#include <QPixmap>
+#if (QT_VERSION < QT_VERSION_CHECK(5, 10, 0))
+using qsizetype = QIntegerForSizeof<std::size_t>::Signed;
+#endif
+
namespace Tellico {
class ImageFactory;
class ImageDirectory;
--
2.16.4