MCPcopy Create free account
hub / github.com/SpartanJ/eepp / hideTooltip

Method hideTooltip

src/tools/ecode/plugins/git/gitplugin.cpp:615–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615void GitPlugin::hideTooltip( UICodeEditor* editor ) {
616 mTooltipInfoShowing = false;
617 UITooltip* tooltip = nullptr;
618 if ( editor && ( tooltip = editor->getTooltip() ) && tooltip->isVisible() &&
619 tooltip->getData() == String::hash( "git" ) ) {
620 editor->setTooltipText( "" );
621 tooltip->hide();
622 // Restore old tooltip state
623 tooltip->setData( 0 );
624 tooltip->setFontStyle( mOldTextStyle );
625 tooltip->setHorizontalAlign( mOldTextAlign );
626 tooltip->setUsingCustomStyling( mOldUsingCustomStyling );
627 tooltip->setDontAutoHideOnMouseMove( mOldDontAutoHideOnMouseMove );
628 tooltip->setBackgroundColor( mOldBackgroundColor );
629 }
630}
631
632bool GitPlugin::onMouseLeave( UICodeEditor* editor, const Vector2i&, const Uint32& ) {
633 hideTooltip( editor );

Callers

nothing calls this directly

Calls 12

hashFunction · 0.85
getTooltipMethod · 0.80
setTooltipTextMethod · 0.80
setHorizontalAlignMethod · 0.80
isVisibleMethod · 0.45
getDataMethod · 0.45
hideMethod · 0.45
setDataMethod · 0.45
setFontStyleMethod · 0.45
setUsingCustomStylingMethod · 0.45
setBackgroundColorMethod · 0.45

Tested by

no test coverage detected