mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 19:00:04 +08:00
This commit is contained in:
parent
d24881403f
commit
8bcce4b6dc
@ -1512,7 +1512,7 @@ QRectF QMacStylePrivate::CocoaControl::adjustedControlFrame(const QRectF &rect)
|
|||||||
frameRect = frameRect.translated(rect.topLeft());
|
frameRect = frameRect.translated(rect.topLeft());
|
||||||
if (type == QMacStylePrivate::Button_PullDown || type == QMacStylePrivate::Button_PopupButton) {
|
if (type == QMacStylePrivate::Button_PullDown || type == QMacStylePrivate::Button_PopupButton) {
|
||||||
if (size == QStyleHelper::SizeLarge)
|
if (size == QStyleHelper::SizeLarge)
|
||||||
frameRect = frameRect.adjusted(0, 0, -6, 0).translated(3, -1);
|
frameRect = frameRect.adjusted(0, 0, -6, 0).translated(3, 0);
|
||||||
else if (size == QStyleHelper::SizeSmall)
|
else if (size == QStyleHelper::SizeSmall)
|
||||||
frameRect = frameRect.adjusted(0, 0, -4, 0).translated(2, 1);
|
frameRect = frameRect.adjusted(0, 0, -4, 0).translated(2, 1);
|
||||||
else if (size == QStyleHelper::SizeMini)
|
else if (size == QStyleHelper::SizeMini)
|
||||||
|
Loading…
Reference in New Issue
Block a user