mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix Qt 6 deprecated QVBoxLayout::setMargin
Use QVBoxLayout::setContentsMargins instead.
This commit is contained in:
@@ -378,7 +378,7 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
|
|||||||
updateForm();
|
updateForm();
|
||||||
|
|
||||||
auto main_layout = new QVBoxLayout();
|
auto main_layout = new QVBoxLayout();
|
||||||
main_layout -> setMargin(0);
|
main_layout -> setContentsMargins(0,0,0,0);
|
||||||
|
|
||||||
main_layout -> addWidget(new QLabel("<u>" + tr("Apparence :") + "</u> "));
|
main_layout -> addWidget(new QLabel("<u>" + tr("Apparence :") + "</u> "));
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ ElementsPanelWidget::ElementsPanelWidget(QWidget *parent) : QWidget(parent) {
|
|||||||
|
|
||||||
// disposition verticale
|
// disposition verticale
|
||||||
QVBoxLayout *vlayout = new QVBoxLayout(this);
|
QVBoxLayout *vlayout = new QVBoxLayout(this);
|
||||||
vlayout -> setMargin(0);
|
vlayout -> setContentsMargins(0,0,0,0);
|
||||||
vlayout -> setSpacing(0);
|
vlayout -> setSpacing(0);
|
||||||
vlayout -> addWidget(filter_textfield);
|
vlayout -> addWidget(filter_textfield);
|
||||||
vlayout -> addWidget(elements_panel);
|
vlayout -> addWidget(elements_panel);
|
||||||
|
|||||||
Reference in New Issue
Block a user