Debugger: Add action to reset individual/type formats

Task-number: QTCREATORBUG-22922
Change-Id: Ic8d0dd1214c208869bebdd69feb2cca1213d30cd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
David Schulz
2020-03-31 11:37:49 +02:00
parent 0c1906319d
commit 45e7b78dc3

View File

@@ -1910,6 +1910,12 @@ QMenu *WatchModel::createFormatMenu(WatchItem *item, QWidget *parent)
});
}
addAction(menu, tr("Reset All Individual Formats"), true, [this]() {
theIndividualFormats.clear();
saveFormats();
m_engine->updateLocals();
});
menu->addSeparator();
addAction(menu, tr("Change Display for Type \"%1\":").arg(item->type), false);
@@ -1930,6 +1936,12 @@ QMenu *WatchModel::createFormatMenu(WatchItem *item, QWidget *parent)
});
}
addAction(menu, tr("Reset All Formats for Types"), true, [this]() {
theTypeFormats.clear();
saveFormats();
m_engine->updateLocals();
});
return menu;
}