1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-03 10:57:33 +01:00

Use setContentsMargins

This commit is contained in:
Jonas Kvinge 2020-12-23 20:24:37 +01:00
parent e407080057
commit 351999a01b

View File

@ -165,7 +165,7 @@ QSearchField::QSearchField(QWidget *parent) : QWidget(parent) {
[search setDelegate:(id<NSSearchFieldDelegate>)delegate];
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(QWidget::createWindowContainer(QWindow::fromWinId(WId(search)), this));
setAttribute(Qt::WA_NativeWindow);