mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 14:59:57 +01:00
Qt: bugfix TMemo doesn't fire OnClick() OnDoubleClick()
git-svn-id: trunk@16403 -
This commit is contained in:
parent
8c62c223c5
commit
d183b9c039
@ -4958,8 +4958,6 @@ begin
|
||||
inherited AttachEvents;
|
||||
|
||||
FTextChanged := QLineEdit_hook_create(Widget);
|
||||
{TODO: BUG CopyUnicodeToPWideString() segfaults while calling SetLength()
|
||||
workaround: add try..except around SetLength() }
|
||||
QLineEdit_textChanged_Event(Method) := @SignalTextChanged;
|
||||
QLineEdit_hook_hook_textChanged(FTextChanged, Method);
|
||||
end;
|
||||
@ -5265,6 +5263,10 @@ begin
|
||||
QEvent_accept(Event);
|
||||
case QEvent_type(Event) of
|
||||
QEventContextMenu: SlotContextMenu(Sender, Event);
|
||||
QEventMouseButtonPress,
|
||||
QEventMouseButtonRelease,
|
||||
QEventMouseButtonDblClick: SlotMouse(Sender, Event);
|
||||
QEventMouseMove: SlotMouseMove(Event);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user