[Libreoffice-commits] core.git: cui/source cui/uiconfig

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 31 07:18:51 UTC 2019


 cui/source/customize/cfgutil.cxx   |    3 +++
 cui/uiconfig/ui/accelconfigpage.ui |    1 +
 2 files changed, 4 insertions(+)

New commits:
commit 444f0d256957544d26b9af9a0898364e829df1b5
Author:     Jim Raykowski <raykowj at gmail..com>
AuthorDate: Mon Dec 23 23:55:26 2019 -0900
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Tue Dec 31 08:18:19 2019 +0100

    tdf#108458 related: Make command tooltip show in tooltip
    
    Make Customize > Keyboard > Function TreeView show command tooltip in
    the tooltip.
    
    Change-Id: I5d2ca7090e00d7c18d792da73c567cdfd6895da2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85776
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index e52ed440d311..d181470df57f 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -599,11 +599,14 @@ void CuiConfigGroupListBox::FillFunctionsList(const css::uno::Sequence<DispatchI
     m_pFunctionListBox->freeze();
     for (const auto & rInfo : xCommands)
     {
+        auto aProperties = vcl::CommandInfoProvider::GetCommandProperties(rInfo.Command, m_sModuleLongName);
+
         OUString sUIName = MapCommand2UIName(rInfo.Command);
         aArr.push_back( std::make_unique<SfxGroupInfo_Impl>( SfxCfgKind::FUNCTION_SLOT, 0 ) );
         SfxGroupInfo_Impl* pGrpInfo = aArr.back().get();
         pGrpInfo->sCommand = rInfo.Command;
         pGrpInfo->sLabel   = sUIName;
+        pGrpInfo->sTooltip = vcl::CommandInfoProvider::GetTooltipForCommand(rInfo.Command, aProperties, m_xFrame);
         m_pFunctionListBox->append(OUString::number(reinterpret_cast<sal_Int64>(pGrpInfo)), sUIName);
     }
     m_pFunctionListBox->thaw();
diff --git a/cui/uiconfig/ui/accelconfigpage.ui b/cui/uiconfig/ui/accelconfigpage.ui
index 61f01d016892..83159c789fb5 100644
--- a/cui/uiconfig/ui/accelconfigpage.ui
+++ b/cui/uiconfig/ui/accelconfigpage.ui
@@ -433,6 +433,7 @@
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="receives_default">True</property>
+                            <property name="has_tooltip">True</property>
                             <property name="hexpand">True</property>
                             <property name="vexpand">True</property>
                             <property name="model">liststore2</property>


More information about the Libreoffice-commits mailing list