Qt,Qt5: removed dropdown button metrics, use themes.

git-svn-id: trunk@54143 -
This commit is contained in:
zeljko 2017-02-12 13:36:13 +00:00
parent cd35ca39a6
commit 7af8c77037
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -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;