Implement DragAcceptFiles() only when wxUSE_DRAG_AND_DROP==1
This virtual method is implemented in wxWindowBase class only when wxUSE_DRAG_AND_DROP==1, so it should be re-implemented in the derived class wxWindowMac also only when wxUSE_DRAG_AND_DROP==1.
This commit is contained in:
@@ -122,10 +122,10 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
|
virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
|
||||||
#endif
|
|
||||||
|
|
||||||
// Accept files for dragging
|
// Accept files for dragging
|
||||||
virtual void DragAcceptFiles( bool accept ) wxOVERRIDE;
|
virtual void DragAcceptFiles( bool accept ) wxOVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
// implementation from now on
|
// implementation from now on
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
@@ -639,13 +639,12 @@ void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget)
|
|||||||
GetPeer()->SetDropTarget(m_dropTarget) ;
|
GetPeer()->SetDropTarget(m_dropTarget) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Old-style File Manager Drag & Drop
|
// Old-style File Manager Drag & Drop
|
||||||
void wxWindowMac::DragAcceptFiles(bool WXUNUSED(accept))
|
void wxWindowMac::DragAcceptFiles(bool WXUNUSED(accept))
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// From a wx position / size calculate the appropriate size of the native control
|
// From a wx position / size calculate the appropriate size of the native control
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user