Resolve ambiguity in calling overloaded wxPropertyGrid::SendEvent()
The right overloaded SendEvent() function can be determined by explicitly casting second argument of the call to (wxPGProperty*) type.
This commit is contained in:
parent
96e24e73d6
commit
92d2be5842
@ -368,7 +368,7 @@ private:
|
||||
|
||||
OnSetColumnWidth(col, colWidth);
|
||||
|
||||
pg->SendEvent(wxEVT_PG_COLS_RESIZED, NULL);
|
||||
pg->SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
|
||||
pg->SendEvent(wxEVT_PG_COL_DRAGGING,
|
||||
NULL, NULL, 0,
|
||||
(unsigned int)col);
|
||||
|
@ -4889,7 +4889,7 @@ bool wxPropertyGrid::HandleMouseClick( int x, unsigned int y, wxMouseEvent &even
|
||||
{
|
||||
ResetColumnSizes( true );
|
||||
|
||||
SendEvent(wxEVT_PG_COLS_RESIZED, NULL);
|
||||
SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
|
||||
SendEvent(wxEVT_PG_COL_DRAGGING,
|
||||
m_propHover,
|
||||
NULL,
|
||||
@ -5048,7 +5048,7 @@ bool wxPropertyGrid::HandleMouseMove( int x, unsigned int y,
|
||||
wxPG_SPLITTER_REFRESH |
|
||||
wxPG_SPLITTER_FROM_EVENT);
|
||||
|
||||
SendEvent(wxEVT_PG_COLS_RESIZED, NULL);
|
||||
SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
|
||||
SendEvent(wxEVT_PG_COL_DRAGGING,
|
||||
m_propHover,
|
||||
NULL,
|
||||
|
@ -401,7 +401,7 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
|
||||
|
||||
if ( pg->GetState() == this )
|
||||
{
|
||||
pg->SendEvent(wxEVT_PG_COLS_RESIZED, NULL);
|
||||
pg->SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user