diff --git a/include/wx/qt/menuitem.h b/include/wx/qt/menuitem.h index 5f507f01f9..f5219cd1a9 100644 --- a/include/wx/qt/menuitem.h +++ b/include/wx/qt/menuitem.h @@ -40,6 +40,7 @@ public: virtual QAction *GetHandle() const; + virtual void SetFont(const wxFont& font); private: // Qt is using an action instead of a menu item. wxQtAction *m_qtAction; diff --git a/src/qt/menuitem.cpp b/src/qt/menuitem.cpp index a2f84822d6..97a85fdb37 100644 --- a/src/qt/menuitem.cpp +++ b/src/qt/menuitem.cpp @@ -128,6 +128,11 @@ void wxMenuItem::SetBitmap(const wxBitmap& bitmap) } } +void wxMenuItem::SetFont(const wxFont& font) +{ + m_qtAction->setFont(font.GetHandle()); +} + QAction *wxMenuItem::GetHandle() const { return m_qtAction;