Merge pull request #34417 from volzhs/profiler-calls-right-align

Make right align for calls number in Profiler
This commit is contained in:
Rémi Verschelde 2019-12-18 08:43:27 +01:00 committed by GitHub
commit d1bce5c679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,6 +397,7 @@ void EditorProfiler::_update_frame() {
item->set_metadata(0, it.signature); item->set_metadata(0, it.signature);
item->set_metadata(1, it.script); item->set_metadata(1, it.script);
item->set_metadata(2, it.line); item->set_metadata(2, it.line);
item->set_text_align(2, TreeItem::ALIGN_RIGHT);
item->set_tooltip(0, it.script + ":" + itos(it.line)); item->set_tooltip(0, it.script + ":" + itos(it.line));
float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total; float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total;