Show names of debug modes in the debug panel

Sometimes it's hard to know which is which from a translation of the description
alone.
This commit is contained in:
Guillaume Munch 2016-05-29 23:33:12 +01:00
parent b4ab194216
commit 2b6d0ae3de

View File

@ -88,7 +88,9 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
DebugVector dmap;
for (int i = 1 ; i < level_count; i++) {
Debug::Type const level = Debug::value(i);
QString const desc = qt_(Debug::description(level));
QString const desc =
toqstr(from_ascii(Debug::name(level) + " - "))
+ qt_(Debug::description(level));
dmap.push_back(DebugMap(level, desc));
}
sort(dmap.begin(), dmap.end(), DebugSorter);