From: Robert Roebling Date: Tue, 30 Sep 2008 07:15:40 +0000 (+0000) Subject: Move body of SetFocusOnCanvas to .cpp file X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0ca422ef4c7cfffd54d4b53d950362d00ae7b5d9 Move body of SetFocusOnCanvas to .cpp file git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index e22071ab4a..8737abd2af 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -1822,11 +1822,7 @@ protected: wxVariant* pValue = NULL, unsigned int selFlags = 0 ); - void SetFocusOnCanvas() - { - m_canvas->SetFocusIgnoringChildren(); - m_editorFocused = 0; - } + void SetFocusOnCanvas(); bool DoHideProperty( wxPGProperty* p, bool hide, int flags ); diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index e161307f77..7e08170b36 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4113,6 +4113,12 @@ void wxPropertyGrid::SetVirtualWidth( int width ) m_pState->SetVirtualWidth( width ); } +void wxPropertyGrid::SetFocusOnCanvas() +{ + m_canvas->SetFocusIgnoringChildren(); + m_editorFocused = 0; +} + // ----------------------------------------------------------------------- // wxPropertyGrid mouse event handling // -----------------------------------------------------------------------