]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt3/QLPopupMenu.C
This commit transfers the singletons defined in the Application class to the private...
[features.git] / src / frontends / qt3 / QLPopupMenu.C
index 927bb01621dc6ea6bc48d5d6c661234d7332a13c..1050c6fc8e84cbb966becf55c5228acaea529e0e 100644 (file)
@@ -27,7 +27,6 @@
 #ifdef Q_WS_MACX
 #include "kbmap.h"
 #include "QLyXKeySym.h"
-extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
 #endif
 
 #include <qapplication.h>
@@ -137,7 +136,7 @@ void QLPopupMenu::populate(Menu * menu)
                           needed (JMarc)
                        */
                        pair<LyXKeySym const *, key_modifier::state>
-                               binding = toplevel_keymap->find1keybinding(m->func());
+                               binding = theTopLevelKeymap().find1keybinding(m->func());
                        if (binding.first) {
                                QLyXKeySym const *key = static_cast<QLyXKeySym const *>(binding.first);
                                label += '\t' + key->qprint(binding.second);