mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 08:32:47 +02:00
Qt,Qt5: removed dropdown button metrics, use themes.
git-svn-id: trunk@54143 -
This commit is contained in:
parent
cd35ca39a6
commit
7af8c77037
@ -867,15 +867,13 @@ begin
|
||||
inc(Result.cx);
|
||||
inc(Result.cy);
|
||||
end;
|
||||
{$IFDEF LINUX} // fix tbsButtonDrop arrow outside button bounds
|
||||
teToolBar:
|
||||
if (Details.Part = TP_DROPDOWNBUTTON) then
|
||||
if (Details.Part = TP_DROPDOWNBUTTON) or (Details.Part = TP_SPLITBUTTONDROPDOWN) then
|
||||
begin
|
||||
Result.cy := -1;
|
||||
Result.cx := 14;
|
||||
Result.cx := QStyle_pixelMetric(Style, QStylePM_MenuButtonIndicator, nil, nil);
|
||||
end else
|
||||
Result := inherited;
|
||||
{$ENDIF}
|
||||
else
|
||||
Result := inherited;
|
||||
end;
|
||||
|
@ -865,15 +865,13 @@ begin
|
||||
inc(Result.cx);
|
||||
inc(Result.cy);
|
||||
end;
|
||||
{$IFDEF LINUX} // fix tbsButtonDrop arrow outside button bounds
|
||||
teToolBar:
|
||||
if (Details.Part = TP_DROPDOWNBUTTON) then
|
||||
if (Details.Part = TP_DROPDOWNBUTTON) or (Details.Part = TP_SPLITBUTTONDROPDOWN) then
|
||||
begin
|
||||
Result.cy := -1;
|
||||
Result.cx := 14;
|
||||
Result.cx := QStyle_pixelMetric(Style, QStylePM_MenuButtonIndicator, nil, nil);
|
||||
end else
|
||||
Result := inherited;
|
||||
{$ENDIF}
|
||||
else
|
||||
Result := inherited;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user