Rename m_pSampleMultiButtonEditor in propgrid sample too

Similar to the previous commit, just rename a member variable to avoid
using "p" prefix for it which was inconsistent with the other variables
in the same class.
This commit is contained in:
Vadim Zeitlin 2023-10-22 17:50:56 +02:00
parent 5b064c0fde
commit 3ca2594c3a
2 changed files with 3 additions and 3 deletions

View file

@ -1541,7 +1541,7 @@ void FormMain::PopulateWithExamples ()
// //
// Test wxSampleMultiButtonEditor // Test wxSampleMultiButtonEditor
pg->Append( new wxLongStringProperty("MultipleButtons", wxPG_LABEL) ); pg->Append( new wxLongStringProperty("MultipleButtons", wxPG_LABEL) );
pg->SetPropertyEditor("MultipleButtons", m_pSampleMultiButtonEditor ); pg->SetPropertyEditor("MultipleButtons", m_sampleMultiButtonEditor );
// Test SingleChoiceProperty // Test SingleChoiceProperty
pg->Append( new SingleChoiceProperty("SingleChoiceProperty") ); pg->Append( new SingleChoiceProperty("SingleChoiceProperty") );
@ -2103,7 +2103,7 @@ FormMain::FormMain(const wxString& title)
wxPropertyGridInterface::RegisterAdditionalEditors(); wxPropertyGridInterface::RegisterAdditionalEditors();
// Register our sample custom editors // Register our sample custom editors
m_pSampleMultiButtonEditor = m_sampleMultiButtonEditor =
wxPropertyGrid::RegisterEditorClass(new wxSampleMultiButtonEditor()); wxPropertyGrid::RegisterEditorClass(new wxSampleMultiButtonEditor());
m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); m_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);

View file

@ -111,7 +111,7 @@ public:
wxLogWindow* m_logWindow; wxLogWindow* m_logWindow;
#endif #endif
wxPGEditor* m_pSampleMultiButtonEditor; wxPGEditor* m_sampleMultiButtonEditor;
wxPGChoices m_combinedFlags; wxPGChoices m_combinedFlags;
wxMenuItem* m_itemCatColours; wxMenuItem* m_itemCatColours;