Change Qt wxDropTarget to remember widget and disconnect self when necessary. Clean up naming a bit.

This commit is contained in:
Jay Nabonne
2019-01-29 17:11:09 +00:00
parent e995618a3a
commit 6ba6d9967a
3 changed files with 40 additions and 11 deletions

View File

@@ -698,14 +698,14 @@ void wxWindowQt::SetDropTarget( wxDropTarget *dropTarget )
if ( m_dropTarget != NULL )
{
m_dropTarget->DisconnectFromQWidget(m_qtWindow);
m_dropTarget->Disconnect();
}
m_dropTarget = dropTarget;
if ( m_dropTarget != NULL )
{
m_dropTarget->ConnectToQWidget(m_qtWindow);
m_dropTarget->ConnectTo(m_qtWindow);
}
}
#endif