mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 09:00:58 +02:00
Qt5, Qt6: do not change floatSpinbox value on mouse move. issue #41255
(cherry picked from commit 3afef2e176
)
Co-authored-by: Željan Rikalo <zeljko@lazarus-ide.org>
This commit is contained in:
parent
cc499ab0fe
commit
e385cac8b7
@ -12215,6 +12215,13 @@ begin
|
|||||||
FMouseCaptureFix := True
|
FMouseCaptureFix := True
|
||||||
else
|
else
|
||||||
FMouseCaptureFix := False;
|
FMouseCaptureFix := False;
|
||||||
|
|
||||||
|
{issue #41255}
|
||||||
|
if (QEvent_type(Event) = QEventMouseMove) and (QMouseEvent_buttons(QMouseEventH(Event)) = 0) then
|
||||||
|
begin
|
||||||
|
inherited EventFilter(Sender, Event);
|
||||||
|
exit(True);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := inherited EventFilter(Sender, Event);
|
Result := inherited EventFilter(Sender, Event);
|
||||||
|
@ -12247,6 +12247,13 @@ begin
|
|||||||
FMouseCaptureFix := True
|
FMouseCaptureFix := True
|
||||||
else
|
else
|
||||||
FMouseCaptureFix := False;
|
FMouseCaptureFix := False;
|
||||||
|
|
||||||
|
{issue #41255}
|
||||||
|
if (QEvent_type(Event) = QEventMouseMove) and (QMouseEvent_buttons(QMouseEventH(Event)) = 0) then
|
||||||
|
begin
|
||||||
|
inherited EventFilter(Sender, Event);
|
||||||
|
exit(True);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Result := inherited EventFilter(Sender, Event);
|
Result := inherited EventFilter(Sender, Event);
|
||||||
|
Loading…
Reference in New Issue
Block a user