Implement wxMenuItem::SetFont() for wxQt
This commit is contained in:
parent
bb0f2f9768
commit
b692dd8aef
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user