mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-26 17:54:32 +00:00
fix the isNeededQt method
This commit is contained in:
parent
e846c6f916
commit
3a7e407627
@ -619,13 +619,14 @@ QSet<QString> ConfigParser::getQtPathesFromTargets() {
|
||||
|
||||
QtMajorVersion ConfigParser::isNeededQt() const {
|
||||
|
||||
auto Qt = QtMajorVersion::NoQt;
|
||||
for (const auto &i: _config.targets()) {
|
||||
if (i.isValid()) {
|
||||
return i.isDependetOfQt();
|
||||
Qt = Qt | i.isDependetOfQt();
|
||||
}
|
||||
}
|
||||
|
||||
return QtMajorVersion::NoQt;
|
||||
return Qt;
|
||||
}
|
||||
|
||||
void ConfigParser::setTargetDir(const QString &target) {
|
||||
|
@ -79,11 +79,11 @@ bool QtDir::isQt(QString path) const {
|
||||
path = PathUtils::fixPath(path);
|
||||
|
||||
return
|
||||
(!libs.isEmpty() && path.contains(libs)) ||
|
||||
(!bins.isEmpty() && path.contains(bins)) ||
|
||||
(!libexecs.isEmpty() && path.contains(libexecs)) ||
|
||||
(!plugins.isEmpty() && path.contains(plugins)) ||
|
||||
(!qmls.isEmpty() && path.contains(qmls)) ||
|
||||
(!translations.isEmpty() && path.contains(translations)) ||
|
||||
(!resources.isEmpty() && path.contains(resources));
|
||||
(!libs.isEmpty() && path.contains(libs, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!bins.isEmpty() && path.contains(bins, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!libexecs.isEmpty() && path.contains(libexecs, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!plugins.isEmpty() && path.contains(plugins, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!qmls.isEmpty() && path.contains(qmls, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!translations.isEmpty() && path.contains(translations, ONLY_WIN_CASE_INSENSIATIVE)) ||
|
||||
(!resources.isEmpty() && path.contains(resources, ONLY_WIN_CASE_INSENSIATIVE));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user