mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Clear selection only on right mouse click. Add tooltip.
This commit is contained in:
parent
3e931432cf
commit
4005f22ecf
@ -2739,8 +2739,6 @@ void View::DrawFindZone()
|
||||
ImGui::Checkbox( "Log values", &m_findZone.logVal );
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox( "Log time", &m_findZone.logTime );
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( "Clear selection" ) ) m_findZone.highlight.active = false;
|
||||
|
||||
ImGui::Text( "Time range: %s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
|
||||
|
||||
@ -2754,6 +2752,14 @@ void View::DrawFindZone()
|
||||
{
|
||||
ImGui::Text( "Selection range: none" );
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(?)" );
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( "Left draw on histogram to select range. Right click to clear selection." );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
const auto dt = double( tmax - tmin );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user