mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Disable histogram highlight using right mouse button.
This commit is contained in:
parent
07201a19ad
commit
d0d5528e99
@ -3423,11 +3423,6 @@ void View::DrawFindZone()
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Found zones:" );
|
ImGui::Text( "Found zones:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if( ImGui::SmallButton( "Unselect" ) )
|
|
||||||
{
|
|
||||||
m_findZone.selThread = m_findZone.Unselected;
|
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
|
||||||
if( m_findZone.showThreads )
|
if( m_findZone.showThreads )
|
||||||
{
|
{
|
||||||
if( ImGui::SmallButton( "Group by user text" ) )
|
if( ImGui::SmallButton( "Group by user text" ) )
|
||||||
@ -3461,6 +3456,14 @@ void View::DrawFindZone()
|
|||||||
m_findZone.sortByCounts = true;
|
m_findZone.sortByCounts = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(?)" );
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "Left click to highlight entry. Right click to clear selection." );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
|
|
||||||
auto& zones = m_worker.GetZonesForSourceLocation( m_findZone.match[m_findZone.selMatch] ).zones;
|
auto& zones = m_worker.GetZonesForSourceLocation( m_findZone.match[m_findZone.selMatch] ).zones;
|
||||||
auto sz = zones.size();
|
auto sz = zones.size();
|
||||||
@ -3587,6 +3590,10 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
|
if( ImGui::IsItemHovered() && ImGui::IsMouseClicked( 1 ) )
|
||||||
|
{
|
||||||
|
m_findZone.selThread = m_findZone.Unselected;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user