1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-21 01:44:21 +00:00

Tables: Support for multi-line columns name. Renaming of some fields from BackupXXX to HostXXX. Comments.

This commit is contained in:
omar 2020-01-06 11:53:04 +01:00 committed by ocornut
parent e85c226da4
commit 164caa2db7
5 changed files with 47 additions and 33 deletions

View file

@ -3916,6 +3916,7 @@ static void ShowDemoWindowTables()
{
MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function.
qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs);
MyItem::s_current_sort_specs = NULL;
}
// Display data
@ -4104,6 +4105,7 @@ static void ShowDemoWindowTables()
{
MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function.
qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs);
MyItem::s_current_sort_specs = NULL;
}
items_need_sort = false;