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:
Željan Rikalo 2024-11-25 14:27:45 +00:00 committed by Željan Rikalo
parent cc499ab0fe
commit e385cac8b7
2 changed files with 14 additions and 0 deletions

View File

@ -12215,6 +12215,13 @@ begin
FMouseCaptureFix := True
else
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;
Result := inherited EventFilter(Sender, Event);

View File

@ -12247,6 +12247,13 @@ begin
FMouseCaptureFix := True
else
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;
Result := inherited EventFilter(Sender, Event);