mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix Qt 6 deprecated QComboBox::AdjustToMinimumContentsLength
Use - QComboBox::AdjustToContents - QComboBox::AdjustToContentsOnFirstShow instead.
This commit is contained in:
@@ -382,8 +382,8 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p,
|
|||||||
|
|
||||||
main_layout -> addWidget(new QLabel("<u>" + tr("Apparence :") + "</u> "));
|
main_layout -> addWidget(new QLabel("<u>" + tr("Apparence :") + "</u> "));
|
||||||
|
|
||||||
outline_color->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
|
outline_color->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
filling_color->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
|
filling_color->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
auto grid_layout = new QGridLayout(this);
|
auto grid_layout = new QGridLayout(this);
|
||||||
grid_layout->addWidget(new QLabel(tr("Contour :")), 0,0, Qt::AlignRight);
|
grid_layout->addWidget(new QLabel(tr("Contour :")), 0,0, Qt::AlignRight);
|
||||||
grid_layout->addWidget(outline_color, 0, 1);
|
grid_layout->addWidget(outline_color, 0, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user