Qt: fixed crash in QAbstractItemView when ownerdrawn is used.

git-svn-id: trunk@46641 -
This commit is contained in:
zeljko 2014-10-22 12:56:11 +00:00
parent b694568d64
commit 9df6bbfdb0

View File

@ -1167,6 +1167,7 @@ type
procedure PostponedMouseReleaseTimerEvent(); cdecl; virtual;
public
constructor Create(const AWinControl: TWinControl; const AParams: TCreateParams); override;
destructor Destroy; override;
procedure signalActivated(index: QModelIndexH); cdecl; virtual;
procedure signalClicked(index: QModelIndexH); cdecl; virtual;
procedure signalDoubleClicked(index: QModelIndexH); cdecl; virtual;
@ -17098,6 +17099,13 @@ begin
FNewDelegate := nil;
end;
destructor TQtAbstractItemView.Destroy;
begin
if FNewDelegate <> nil then
SetOwnerDrawn(False);
inherited Destroy;
end;
procedure TQtAbstractItemView.signalActivated(index: QModelIndexH); cdecl;
var
Msg: TLMessage;
@ -17134,7 +17142,7 @@ begin
{should be overriden by descedants}
end;
procedure TQtAbstractItemView.SignalViewportEntered; cdecl;
procedure TQtAbstractItemView.signalViewportEntered; cdecl;
begin
{should be overriden by descedants}
end;