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

@@ -202,7 +202,7 @@ QList<LocatorFilterEntry> HelpIndexFilter::matchesFor(QFutureInterface<LocatorFi
for (const QString &keyword : qAsConst(m_lastIndicesCache)) {
const int index = keyword.indexOf(entry, 0, cs);
LocatorFilterEntry filterEntry(this, keyword, QVariant(), m_icon);
filterEntry.highlightInfo = {index, entry.length()};
filterEntry.highlightInfo = {index, int(entry.length())};
entries.append(filterEntry);
}

View File

@@ -28,6 +28,7 @@
#include <coreplugin/locator/ilocatorfilter.h>
#include <QIcon>
#include <QMultiMap>
#include <QMutex>
namespace Help {