mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix YACReader build for Qt <= 5.7
This commit is contained in:
parent
c4c2110e9a
commit
1fbf1195b9
@ -83,8 +83,14 @@ int main(int argc, char * argv[])
|
|||||||
QCommandLineOption comicId("comicId", "", "comicId");
|
QCommandLineOption comicId("comicId", "", "comicId");
|
||||||
QCommandLineOption libraryId("libraryId", "", "libraryId");
|
QCommandLineOption libraryId("libraryId", "", "libraryId");
|
||||||
// hide comicId and libraryId from help
|
// hide comicId and libraryId from help
|
||||||
|
#if QT_VERSION >= 0x050800
|
||||||
comicId.setFlags(QCommandLineOption::HiddenFromHelp);
|
comicId.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
libraryId.setFlags(QCommandLineOption::HiddenFromHelp);
|
libraryId.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
|
#else
|
||||||
|
comicId.setHidden(true);
|
||||||
|
libraryId.setHidden(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
// process
|
// process
|
||||||
parser.addOption(comicId);
|
parser.addOption(comicId);
|
||||||
parser.addOption(libraryId);
|
parser.addOption(libraryId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user