Add wxDataViewEvent::InitData() helper
Reuse it from both the generic and macOS versions to avoid doing the same thing in both of them.
This commit is contained in:
@@ -1805,6 +1805,18 @@ void wxDataViewEvent::Init(wxDataViewCtrlBase* dvc,
|
||||
SetEventObject(dvc);
|
||||
}
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
|
||||
void wxDataViewEvent::InitData(wxDataObjectComposite* obj, wxDataFormat format)
|
||||
{
|
||||
SetDataFormat(format);
|
||||
|
||||
SetDataObject(obj->GetObject(format));
|
||||
SetDataSize(obj->GetDataSize(format));
|
||||
}
|
||||
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
// -------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user