summaryrefslogtreecommitdiffstats
path: root/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch')
-rw-r--r--graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch b/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch
new file mode 100644
index 0000000000..611f370ad3
--- /dev/null
+++ b/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch
@@ -0,0 +1,23 @@
+From 1fbf1195b997c11509afce8d4a7322e7561ab301 Mon Sep 17 00:00:00 2001
+From: Felix Kauselmann <licorn@gmail.com>
+Date: Sun, 1 Jul 2018 14:39:46 +0200
+Subject: [PATCH] Fix YACReader build for Qt <= 5.7
+
+diff -Naur yacreader-9.5.0.orig/YACReader/main.cpp yacreader-9.5.0/YACReader/main.cpp
+--- yacreader-9.5.0.orig/YACReader/main.cpp 2018-06-30 17:15:50.000000000 +0200
++++ yacreader-9.5.0/YACReader/main.cpp 2018-07-02 13:59:36.165035000 +0200
+@@ -83,8 +83,14 @@
+ QCommandLineOption comicId("comicId", "", "comicId");
+ QCommandLineOption libraryId("libraryId", "", "libraryId");
+ // hide comicId and libraryId from help
++ #if QT_VERSION >= 0x050800
+ comicId.setFlags(QCommandLineOption::HiddenFromHelp);
+ libraryId.setFlags(QCommandLineOption::HiddenFromHelp);
++ #else
++ comicId.setHidden(true);
++ libraryId.setHidden(true);
++ #endif
++
+ // process
+ parser.addOption(comicId);
+ parser.addOption(libraryId);