framework/source/uielement/langselectionstatusbarcontroller.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 098f4e84f0fd605eff243c0c494c24dbec95374c
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Fri Feb 26 13:49:20 2021 -0900
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Tue Mar 2 22:52:06 2021 +0100

    tdf#116136 don't show status bar LangSelection control tool tip
    
    in print preview
    
    Change-Id: I85bcb547a71b2a5666310e184d8ba1da16acc97c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111671
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx 
b/framework/source/uielement/langselectionstatusbarcontroller.cxx
index 2e12c12fee26..deccb5d77bcc 100644
--- a/framework/source/uielement/langselectionstatusbarcontroller.cxx
+++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx
@@ -315,6 +315,7 @@ void SAL_CALL 
LangSelectionStatusbarController::statusChanged( const FeatureStat
     if ( Event.State >>= aStrValue )
     {
         m_xStatusbarItem->setText( aStrValue );
+        m_xStatusbarItem->setQuickHelpText(FwkResId(STR_LANGSTATUS_HINT));
         m_aCurLang = aStrValue;
     }
     else if ( Event.State >>= aSeq )
@@ -327,6 +328,7 @@ void SAL_CALL 
LangSelectionStatusbarController::statusChanged( const FeatureStat
                 aStatusText = FwkResId(STR_LANGSTATUS_MULTIPLE_LANGUAGES);
             }
             m_xStatusbarItem->setText( aStatusText );
+            m_xStatusbarItem->setQuickHelpText(FwkResId(STR_LANGSTATUS_HINT));
 
             // Retrieve all other values from the sequence and
             // store it members!
@@ -339,6 +341,7 @@ void SAL_CALL 
LangSelectionStatusbarController::statusChanged( const FeatureStat
     else if ( !Event.State.hasValue() )
     {
         m_xStatusbarItem->setText( OUString() );
+        m_xStatusbarItem->setQuickHelpText(u"");
         m_bShowMenu = false;    // no language -> no menu
     }
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to