| 613 | } |
| 614 | |
| 615 | void 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 | |
| 632 | bool GitPlugin::onMouseLeave( UICodeEditor* editor, const Vector2i&, const Uint32& ) { |
| 633 | hideTooltip( editor ); |
nothing calls this directly
no test coverage detected