summaryrefslogtreecommitdiffstats
path: root/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch
blob: 611f370ad39183b3d8aaf7feba99477222a7e499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);