mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Small radio buttons in find zone menu.
This commit is contained in:
parent
f34609fd9b
commit
209c1fdc72
@ -8565,6 +8565,7 @@ void View::DrawFindZone()
|
|||||||
DrawHelpMarker( "Left click to highlight entry. Right click to clear selection." );
|
DrawHelpMarker( "Left click to highlight entry. Right click to clear selection." );
|
||||||
|
|
||||||
bool groupChanged = false;
|
bool groupChanged = false;
|
||||||
|
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||||
ImGui::TextUnformatted( "Group by:" );
|
ImGui::TextUnformatted( "Group by:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
groupChanged |= ImGui::RadioButton( "Thread", (int*)( &m_findZone.groupBy ), (int)FindZone::GroupBy::Thread );
|
groupChanged |= ImGui::RadioButton( "Thread", (int*)( &m_findZone.groupBy ), (int)FindZone::GroupBy::Thread );
|
||||||
@ -8591,6 +8592,7 @@ void View::DrawFindZone()
|
|||||||
ImGui::RadioButton( "Time", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Time );
|
ImGui::RadioButton( "Time", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Time );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::RadioButton( "MTPC", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Mtpc );
|
ImGui::RadioButton( "MTPC", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Mtpc );
|
||||||
|
ImGui::PopStyleVar();
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
DrawHelpMarker( "Mean time per call" );
|
DrawHelpMarker( "Mean time per call" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user