Replaced deprecated QLayout::setMargins by QLayout::setContentsMargins

This commit is contained in:
thunder2 2025-07-20 03:05:02 +02:00
parent 33fc4308c4
commit 90041fc627
19 changed files with 21 additions and 21 deletions

View file

@ -261,7 +261,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags)
QWidget *widget = new QWidget();
widget->setObjectName("trans_statusComboBoxFrame");
QHBoxLayout *hbox = new QHBoxLayout();
hbox->setMargin(0);
hbox->setContentsMargins(0, 0, 0, 0);
hbox->setSpacing(6);
hbox->addWidget(statusComboBox);
widget->setLayout(hbox);