Fix OSD Pretty margin

This commit is contained in:
Jonas Kvinge 2020-07-19 04:09:34 +02:00
parent 7e6de528b4
commit 3cb4e8e373
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent)
// Set the margins to allow for the drop shadow
QBoxLayout *l = qobject_cast<QBoxLayout*>(layout());
QMargins margin = l->contentsMargins() + kDropShadowSize;
QMargins margin = l->contentsMargins();
margin.setTop(margin.top() + kDropShadowSize);
margin.setBottom(margin.bottom() + kDropShadowSize);
margin.setLeft(margin.left() + kDropShadowSize);