tellico/Fix-compilation-with-Qt-5.9.patch
Christophe Giboudeaux c04fe4c734 Accepting request 810888 from home:wolfi323:branches:KDE:Extra
- Update to 3.3.1:
  Features:
  * Updated filter dialog to allow matching against empty text.
  Bug Fixes:
  * Updated script for Dark Horse comics data source.
  * Fixed bug with creation date for duplicated entries
    (kde#422127).
  * Fixed error in ISO-5426 conversion (kde#420451).
  * Fixed compilation with Qt versions back to 5.9.
- Drop patches merged upstream:
  * Use-unnamespaced-hex-for-Qt-lt-5.14.patch
  * Fix-build-with-Qt-5.9.patch
- Add Fix-compilation-with-Qt-5.9.patch to fix a new compiler error
  with Qt 5.9 (kde#422354)

OBS-URL: https://build.opensuse.org/request/show/810888
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/tellico?expand=0&rev=59
2020-06-02 15:46:49 +00:00

34 lines
1.1 KiB
Diff

From ac8740fd9b4042af476fcf8dbb91c7d212d143e4 Mon Sep 17 00:00:00 2001
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Tue, 2 Jun 2020 17:12:02 +0200
Subject: Fix compilation with Qt 5.9
`QTimer::callOnTimeout()` only exists since Qt 5.12.
Connect to the `QTimer::timeout` signal instead, this works with older
versions as well and is equivalent according to the Qt documentation.
BUG: 422354
FIXED-IN: 3.3.2
Differential Revision: https://phabricator.kde.org/D29841
---
src/document.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/document.cpp b/src/document.cpp
index 3d2b4b1..7807002 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -61,7 +61,7 @@ Document::Document() : QObject(), m_coll(nullptr), m_isModified(false),
m_allImagesOnDisk = Config::imageLocation() != Config::ImagesInFile;
m_loadImagesTimer.setSingleShot(true);
m_loadImagesTimer.setInterval(500);
- m_loadImagesTimer.callOnTimeout(this, &Document::slotLoadAllImages);
+ connect(&m_loadImagesTimer, &QTimer::timeout, this, &Document::slotLoadAllImages);
newDocument(Collection::Book);
}
--
cgit v1.1