QToolBarLayout: fix position calculation
Fix a bug introduced in d493f676a3
while
calculating the size / position of the layout item.
Fixes: QTBUG-77115
Change-Id: I20ad1685659da7225009734e25287e590367aa9e
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
23cfdf74cb
commit
f2f1a93c58
@ -533,7 +533,7 @@ bool QToolBarLayout::layoutActions(const QSize &size)
|
|||||||
if (expanded)
|
if (expanded)
|
||||||
rperp(o, size) = rowHeight;
|
rperp(o, size) = rowHeight;
|
||||||
else
|
else
|
||||||
rperp(o, size) = perp(o, rect.size()) - perp(o, QSize(margins.top(), margins.left()));
|
rperp(o, size) = perp(o, rect.size()) - perp(o, margins);
|
||||||
QRect r(pos, size);
|
QRect r(pos, size);
|
||||||
|
|
||||||
if (o == Qt::Horizontal)
|
if (o == Qt::Horizontal)
|
||||||
|
Loading…
Reference in New Issue
Block a user