forked from qt-creator/qt-creator
Debugger: Use std style iterator
Change-Id: I6f6593aa18ec9da768876413ef2d5169bce635ca Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Jarek Kobus
parent
4c1ce54d17
commit
6325590815
@@ -1972,16 +1972,14 @@ QMenu *WatchModel::createFormatMenuForManySelected(const WatchItemSet &items, QW
|
|||||||
});
|
});
|
||||||
|
|
||||||
int countOfSelectItems = items.size();
|
int countOfSelectItems = items.size();
|
||||||
QHashIterator<DisplayFormat, int> iter(allItemsFormats);
|
for (auto it = allItemsFormats.begin(), end = allItemsFormats.end(); it != end; ++it) {
|
||||||
while (iter.hasNext()) {
|
DisplayFormat format = it.key();
|
||||||
iter.next();
|
|
||||||
DisplayFormat format = iter.key();
|
|
||||||
QString formatName = nameForFormat(format);
|
QString formatName = nameForFormat(format);
|
||||||
if (formatName.isEmpty())
|
if (formatName.isEmpty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
addCheckableAction(menu, spacer + formatName,
|
addCheckableAction(menu, spacer + formatName,
|
||||||
iter.value() == countOfSelectItems,
|
it.value() == countOfSelectItems,
|
||||||
false,
|
false,
|
||||||
[this, format, items] {
|
[this, format, items] {
|
||||||
setItemsFormat(items, format);
|
setItemsFormat(items, format);
|
||||||
|
Reference in New Issue
Block a user