]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QLPopupMenu.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QLPopupMenu.h
index 932ea0057c155c8e82de540f9abe7e58ca2a11b9..4c4fed5623678f56c4de1cd4497062408c7f86eb 100644 (file)
@@ -17,9 +17,6 @@
 #include "funcrequest.h"
 #include "MenuBackend.h"
 
-#include <utility>
-#include <string>
-
 namespace lyx {
 namespace frontend {
 
@@ -36,7 +33,7 @@ public:
        /// This is used as a recursive function
        void populate(QMenu* qMenu, Menu * menu);
 
-public slots:
+public Q_SLOTS:
        /// populate the toplevel menu and all children
        void update();
 
@@ -46,15 +43,15 @@ private:
        QLMenubar * owner_;
 
        /// the name of this menu
-       std::string name_;
+       lyx::docstring name_;
 
 private:
        /// Get a Menu item label from the menu backend
-       std::string const getLabel(MenuItem const & mi);
+       lyx::docstring const getLabel(MenuItem const & mi);
 
        /// add binding keys a the menu item label.
        /// \todo Mac specific binding handling.
-       void addBinding(std::string & label, MenuItem const & mi);
+       void addBinding(lyx::docstring & label, MenuItem const & mi);
 
        /// Top Level Menu
        Menu topLevelMenu_;