mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Tables: Support for multi-line columns name. Renaming of some fields from BackupXXX to HostXXX. Comments.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user