mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 21:10:42 +02:00
Qt: fixed crash in QAbstractItemView when ownerdrawn is used.
git-svn-id: trunk@46641 -
This commit is contained in:
parent
b694568d64
commit
9df6bbfdb0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user