forked from qt-creator/qt-creator
CMakePM: Fix build with Qt6.2
Change-Id: Iac128851da0aa7895d5c2352be550702fbc1e7f9 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -176,11 +176,11 @@ QList<AssistProposalItemInterface *> generateList(const QMap<QString, FilePath>
|
||||
};
|
||||
|
||||
QList<AssistProposalItemInterface *> list;
|
||||
for (const auto &[text, helpFile] : words.asKeyValueRange()) {
|
||||
for (auto it = words.cbegin(); it != words.cend(); ++it) {
|
||||
MarkDownAssitProposalItem *item = new MarkDownAssitProposalItem();
|
||||
item->setText(text);
|
||||
if (!helpFile.isEmpty())
|
||||
item->setDetail(readFirstParagraphs(text, helpFile));
|
||||
item->setText(it.key());
|
||||
if (!it.value().isEmpty())
|
||||
item->setDetail(readFirstParagraphs(it.key(), it.value()));
|
||||
item->setIcon(icon);
|
||||
list << item;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user