mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 23:40:22 +02:00
Qt: Calculate the preferred size of BitBtn correctly in TQtBitBtn.preferredSize even if AutoSize=False.
git-svn-id: trunk@43623 -
This commit is contained in:
parent
8865d059e8
commit
1678af5484
@ -5819,9 +5819,8 @@ var
|
||||
end;
|
||||
end;
|
||||
begin
|
||||
QPushButton_sizeHint(QPushButtonH(Widget), @TheSize);
|
||||
if Assigned(LCLObject) and LCLObject.AutoSize then
|
||||
TheSize := AutoSizeButtonFromStyle(TheSize);
|
||||
//QPushButton_sizeHint(QPushButtonH(Widget), @TheSize);
|
||||
TheSize := AutoSizeButtonFromStyle(TheSize);
|
||||
PreferredWidth := TheSize.cx;
|
||||
PreferredHeight := TheSize.cy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user