Created
July 2, 2018 11:28
-
-
Save selmf/7bf4f4f208cf8a510cd99232db59d382 to your computer and use it in GitHub Desktop.
Fix YACReader build with Qt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment