32 lines
947 B
Diff
32 lines
947 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
|
|
|
|
---
|
|
YACReader/main.cpp | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/YACReader/main.cpp b/YACReader/main.cpp
|
|
index c6bf9c3..7e318ce 100644
|
|
--- a/YACReader/main.cpp
|
|
+++ b/YACReader/main.cpp
|
|
@@ -83,8 +83,14 @@ int main(int argc, char * argv[])
|
|
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);
|
|
--
|
|
2.18.0
|
|
|