slackbuilds_ponce/graphics/yacreader/0001-Fix-YACReader-build-for-Qt-5.7.patch
Matteo Bernardini 7878d8dbc8
graphics/yacreader: Updated for version 9.5.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2018-07-07 06:54:31 +07:00

23 lines
940 B
Diff

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);