[Qt] Todays commit
Paul Ishenin
ip at kmiac.ru
Thu Jul 12 09:33:33 CEST 2007
zeljko wrote:
> procedure TQtTreeWidget.DetachEvents;
> begin
>
> QTreeWidget_hook_destroy(FCurrentItemChangedHook);
> QTreeWidget_hook_destroy(FItemDoubleClickedHook);
> QTreeWidget_hook_destroy(FItemClickedHook);
> QTreeWidget_hook_destroy(FItemActivatedHook);
> QTreeWidget_hook_destroy(FItemChangedHook);
> QTreeWidget_hook_destroy(FItemSelectionChangedHook);
> QTreeWidget_hook_destroy(FItemPressedHook);
> QTreeWidget_hook_destroy(FItemEnteredHook);
>
> inherited DetachEvents;
> end;
>
> if I comment code like this then we have no AV's
>
> procedure TQtTreeWidget.DetachEvents;
> begin
> (*
> QTreeWidget_hook_destroy(FCurrentItemChangedHook);
> QTreeWidget_hook_destroy(FItemDoubleClickedHook);
> QTreeWidget_hook_destroy(FItemClickedHook);
> QTreeWidget_hook_destroy(FItemActivatedHook);
> QTreeWidget_hook_destroy(FItemChangedHook);
> QTreeWidget_hook_destroy(FItemSelectionChangedHook);
> QTreeWidget_hook_destroy(FItemPressedHook);
> QTreeWidget_hook_destroy(FItemEnteredHook);
> *)
> inherited DetachEvents;
> end;
>
> Paul , did U test your code under linux or just under Windows ?
> I've test this under FC4 and FC7 and got same result.
Only under windows. Btw, have you updated after my mail? What fpc
version do you have (I have fixes_2_2 branch)? Can you also check if
TQtTreeWidget.AttachEvents will be called?
Best regards,
Paul Ishenin.
More information about the Qt
mailing list