mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
commit
4f6618c096
@ -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);
|
||||||
|
@ -11,11 +11,8 @@ QT_VER_MIN = $$member(QT_VERSION, 1)
|
|||||||
lessThan(QT_VER_MAJ, 5) {
|
lessThan(QT_VER_MAJ, 5) {
|
||||||
error(YACReader requires Qt 5 or newer but Qt $$[QT_VERSION] was detected.)
|
error(YACReader requires Qt 5 or newer but Qt $$[QT_VERSION] was detected.)
|
||||||
}
|
}
|
||||||
lessThan(QT_VER_MIN, 6) {
|
lessThan(QT_VER_MIN, 6):!CONFIG(no_opengl) {
|
||||||
warning ("Qt < 5.6 detected. Compilation will probably work, but some qml based components in YACReaderLibrary (GridView, InfoView) will fail at runtime.")
|
error ("You need at least Qt 5.6 to compile YACReader or YACReaderLibrary.")
|
||||||
}
|
|
||||||
lessThan(QT_VER_MIN, 4):!CONFIG(no_opengl) {
|
|
||||||
error ("You need at least Qt 5.4 to compile YACReader or YACReaderLibrary.")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable coverflow for arm targets
|
# Disable coverflow for arm targets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user