commit e2e7794c7e3c6f5f9535789019d5e78ae1f676d9
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Jul 19 13:22:18 2022 +0200

    Fix display of bindings for View-other-formats dynamic toolbar menu
    
    Do it the same way as in menus. Also remove the tooltip, which is not used.
    
    Fixes bug #12004.
---
 src/frontends/qt/GuiToolbar.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp
index bc2613d..c646b50 100644
--- a/src/frontends/qt/GuiToolbar.cpp
+++ b/src/frontends/qt/GuiToolbar.cpp
@@ -149,10 +149,10 @@ Action * GuiToolbar::addItem(ToolbarItem const & item)
        // first one later
        KeyMap::Bindings bindings = 
theTopLevelKeymap().findBindings(*item.func);
        if (!bindings.empty())
-               text += " [" + 
toqstr(bindings.begin()->print(KeySequence::ForGui)) + "]";
+               text += '\t' + 
toqstr(bindings.begin()->print(KeySequence::ForGui));
 
        Action * act = new Action(item.func, getIcon(*item.func, false), text,
-                                                         text, this);
+                                 QString(), this);
        if (item.type == ToolbarItem::BIDICOMMAND)
                act->setRtlIcon(getIcon(*item.func, false, true));
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to