mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-06 07:00:16 +08:00
Add const wxWindow::GetAcceleratorTable() overload
This will allow const member functions to call GetAcceleratorTable() without const_casts.
This commit is contained in:
+2
-1
@@ -962,7 +962,8 @@ public:
|
||||
{ m_acceleratorTable = accel; }
|
||||
wxAcceleratorTable *GetAcceleratorTable()
|
||||
{ return &m_acceleratorTable; }
|
||||
|
||||
const wxAcceleratorTable* GetAcceleratorTable() const
|
||||
{ return &m_acceleratorTable; }
|
||||
#endif // wxUSE_ACCEL
|
||||
|
||||
#if wxUSE_HOTKEY
|
||||
|
||||
+12
-1
@@ -3673,10 +3673,21 @@ public:
|
||||
void SetWindowVariant(wxWindowVariant variant);
|
||||
|
||||
/**
|
||||
Gets the accelerator table for this window. See wxAcceleratorTable.
|
||||
Gets the accelerator table for this window, if any.
|
||||
|
||||
@see SetAcceleratorTable(), wxAcceleratorTable
|
||||
*/
|
||||
wxAcceleratorTable* GetAcceleratorTable();
|
||||
|
||||
/**
|
||||
Gets the accelerator table for this window, if any.
|
||||
|
||||
@see SetAcceleratorTable(), wxAcceleratorTable
|
||||
|
||||
@since 3.3.4
|
||||
*/
|
||||
const wxAcceleratorTable* GetAcceleratorTable() const;
|
||||
|
||||
/**
|
||||
Returns the accessible object for this window, if any.
|
||||
See also wxAccessible.
|
||||
|
||||
Reference in New Issue
Block a user