Some Qt6 porting

- new ambiguous overloads for mapToGlobal
- some functions now return qsizetype instead of int

Task-number: QTCREATORBUG-24098
Change-Id: I0020e5689e093653e9e0e6f0d6263720bc2e003b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-07-21 15:47:35 +02:00
parent affd4ee658
commit 2d78bd4b19
13 changed files with 17 additions and 15 deletions

View File

@@ -99,7 +99,7 @@ Core::GeneratedFiles JsonWizardScannerGenerator::fileList(Utils::MacroExpander *
result = scan(project.absolutePath(), project);
static const auto getDepth = [](const QString &filePath) { return filePath.count('/'); };
static const auto getDepth = [](const QString &filePath) { return int(filePath.count('/')); };
int minDepth = std::numeric_limits<int>::max();
for (auto it = result.begin(); it != result.end(); ++it) {
const QString relPath = project.relativeFilePath(it->path());