Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
d2f2c0b3
Commit
d2f2c0b3
authored
Feb 21, 2015
by
Željan Rikalo
🏊🏼
Browse files
Qt: do not send resize event on restore of minimized mdichild form. issue
#27518
git-svn-id: trunk@47939 -
parent
ccca0b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcl/interfaces/qt/qtwidgets.pas
View file @
d2f2c0b3
...
...
@@ -7260,9 +7260,20 @@ begin
Msg.SizeType := Msg.SizeType or Size_SourceIsInterface;
Msg.Width := Word(getWidth);
Msg.Height := Word(getHeight);
{Mdichild sends size of minimized title, and that's bad, after restore client
rect is mismatched and provokes OnResize events.We are sending
to the LCL Width and Height of LCLObject so resize event won't trigger.
issue #27518}
if IsMDIChild and Assigned(LCLObject) and
(getWindowState and QtWindowMinimized <> 0) then
begin
Msg.Width := Word(LCLObject.Width);
Msg.Height := Word(LCLObject.Height);
end else
begin
Msg.Width := Word(getWidth);
Msg.Height := Word(getHeight);
end;
DeliverMessage(Msg);
end;
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#27518 (closed)
·
Jul 28, 2021
mentioned in issue
#27518 (closed)
mentioned in issue #27518
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment