Update wxFontDataProperty to conform to the current design of wxPG properties with editor dialog

Since wxFontDataProperty derives from wxFontProperty, it should re-implement DisplayEditorDialog() to work as expected.
This commit is contained in:
Artur Wieczorek
2019-07-02 21:34:31 +02:00
parent a3ec84fdd1
commit 30630d4ea5
2 changed files with 18 additions and 20 deletions

View File

@@ -38,9 +38,10 @@ public:
int childIndex,
wxVariant& childValue ) const wxOVERRIDE;
virtual void RefreshChildren() wxOVERRIDE;
virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* primary, wxEvent& event ) wxOVERRIDE;
protected:
virtual bool DisplayEditorDialog(wxPropertyGrid* pg, wxVariant& value) wxOVERRIDE;
// Value must be stored as variant - otherwise it will be
// decreffed to oblivion on GetValue().
wxVariant m_value_wxFontData;