Ensure wxTreeCtrl::DoHitTest updates flag when item is successfully hit.
This commit is contained in:
@@ -1286,10 +1286,7 @@ wxTreeItemId wxTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags) const
|
|||||||
return wxTreeItemId();
|
return wxTreeItemId();
|
||||||
|
|
||||||
QTreeWidgetItem *hitItem = m_qtTreeWidget->itemAt(wxQtConvertPoint(point));
|
QTreeWidgetItem *hitItem = m_qtTreeWidget->itemAt(wxQtConvertPoint(point));
|
||||||
|
flags = hitItem == NULL ? wxTREE_HITTEST_NOWHERE : wxTREE_HITTEST_ONITEM;
|
||||||
if ( hitItem == NULL )
|
|
||||||
flags |= wxTREE_HITTEST_NOWHERE;
|
|
||||||
|
|
||||||
return wxQtConvertTreeItem(hitItem);
|
return wxQtConvertTreeItem(hitItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user