mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 05:21:27 +02:00
Qt: block QtKey_Space on QRadioButton when it's not child of TRadioGroup.
git-svn-id: trunk@26763 -
This commit is contained in:
parent
3d8f047dc7
commit
a18bbff0f4
@ -5104,7 +5104,11 @@ function TQtRadioButton.EventFilter(Sender: QObjectH; Event: QEventH): Boolean;
|
||||
begin
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
if (LCLObject <> nil) and
|
||||
(QEvent_type(Event) in [QEventMouseButtonPress, QEventMouseButtonRelease])
|
||||
((QEvent_type(Event) in [QEventMouseButtonPress, QEventMouseButtonRelease])
|
||||
or
|
||||
((QEvent_type(Event) in [QEventKeyPress, QEventKeyRelease]) and
|
||||
(QKeyEvent_key(QKeyEventH(Event)) = QtKey_Space) and
|
||||
isChecked))
|
||||
then
|
||||
Result := not (LCLObject.Parent is TRadioGroup);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user