Make wxGridEvent methods GetRow() and GetCol() const and not virtual

See #19085
This commit is contained in:
Paul Cornett
2021-03-05 07:38:32 -08:00
parent 4388b9bd6b
commit 30637ad3b6
3 changed files with 6 additions and 4 deletions

View File

@@ -181,6 +181,8 @@ Changes in behaviour which may result in build errors
- wxAuiMDIChildFrame now inherits from wxFrame and not wxPanel, you will need - wxAuiMDIChildFrame now inherits from wxFrame and not wxPanel, you will need
to change your code and XRC definitions accordingly. to change your code and XRC definitions accordingly.
- wxGridEvent methods GetRow() and GetCol() are no longer virtual.
3.1.5: (released 2020-10-??) 3.1.5: (released 2020-10-??)
---------------------------- ----------------------------

View File

@@ -3209,8 +3209,8 @@ public:
bool control, bool control,
bool shift = false, bool alt = false, bool meta = false)); bool shift = false, bool alt = false, bool meta = false));
virtual int GetRow() { return m_row; } int GetRow() const { return m_row; }
virtual int GetCol() { return m_col; } int GetCol() const { return m_col; }
wxPoint GetPosition() const { return wxPoint( m_x, m_y ); } wxPoint GetPosition() const { return wxPoint( m_x, m_y ); }
bool Selecting() const { return m_selecting; } bool Selecting() const { return m_selecting; }

View File

@@ -6234,7 +6234,7 @@ public:
column of the newly selected cell while the previously selected cell column of the newly selected cell while the previously selected cell
can be retrieved using wxGrid::GetGridCursorCol(). can be retrieved using wxGrid::GetGridCursorCol().
*/ */
virtual int GetCol(); int GetCol() const;
/** /**
Position in pixels at which the event occurred. Position in pixels at which the event occurred.
@@ -6248,7 +6248,7 @@ public:
of the newly selected cell while the previously selected cell can be of the newly selected cell while the previously selected cell can be
retrieved using wxGrid::GetGridCursorRow(). retrieved using wxGrid::GetGridCursorRow().
*/ */
virtual int GetRow(); int GetRow() const;
/** /**
Returns @true if the Meta key was down at the time of the event. Returns @true if the Meta key was down at the time of the event.