Move wxDataViewCustomRendererBase::ActivateCell() to datavcmn.cpp.
It triggered deprecation warnings in user code when it was inline. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -236,14 +236,7 @@ public:
|
|||||||
wxDataViewModel *model,
|
wxDataViewModel *model,
|
||||||
const wxDataViewItem & item,
|
const wxDataViewItem & item,
|
||||||
unsigned int col,
|
unsigned int col,
|
||||||
const wxMouseEvent* mouseEvent)
|
const wxMouseEvent* mouseEvent);
|
||||||
{
|
|
||||||
// Compatibility code
|
|
||||||
if ( mouseEvent )
|
|
||||||
return LeftClick(mouseEvent->GetPosition(), cell, model, item, col);
|
|
||||||
else
|
|
||||||
return Activate(cell, model, item, col);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated, use (and override) ActivateCell() instead
|
// Deprecated, use (and override) ActivateCell() instead
|
||||||
wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
|
wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
|
||||||
|
@@ -807,6 +807,19 @@ void wxDataViewRendererBase::PrepareForItem(const wxDataViewModel *model,
|
|||||||
// wxDataViewCustomRendererBase
|
// wxDataViewCustomRendererBase
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
bool wxDataViewCustomRendererBase::ActivateCell(const wxRect& cell,
|
||||||
|
wxDataViewModel *model,
|
||||||
|
const wxDataViewItem & item,
|
||||||
|
unsigned int col,
|
||||||
|
const wxMouseEvent* mouseEvent)
|
||||||
|
{
|
||||||
|
// Compatibility code
|
||||||
|
if ( mouseEvent )
|
||||||
|
return LeftClick(mouseEvent->GetPosition(), cell, model, item, col);
|
||||||
|
else
|
||||||
|
return Activate(cell, model, item, col);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
wxDataViewCustomRendererBase::WXCallRender(wxRect rectCell, wxDC *dc, int state)
|
wxDataViewCustomRendererBase::WXCallRender(wxRect rectCell, wxDC *dc, int state)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user