From a917399950d9f48579c27979b8126ff9dccebe2d Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Mon, 21 Sep 2020 20:42:40 +0200 Subject: [PATCH] Fix Qt 6 deprecated QComboBox::AdjustToMinimumContentsLength Use - QComboBox::AdjustToContents - QComboBox::AdjustToContentsOnFirstShow instead. --- sources/editor/styleeditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/editor/styleeditor.cpp b/sources/editor/styleeditor.cpp index b4e767b72..121cbfba1 100644 --- a/sources/editor/styleeditor.cpp +++ b/sources/editor/styleeditor.cpp @@ -382,8 +382,8 @@ StyleEditor::StyleEditor(QETElementEditor *editor, CustomElementGraphicPart *p, main_layout -> addWidget(new QLabel("" + tr("Apparence :") + " ")); - outline_color->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); - filling_color->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); + outline_color->setSizeAdjustPolicy(QComboBox::AdjustToContents); + filling_color->setSizeAdjustPolicy(QComboBox::AdjustToContents); auto grid_layout = new QGridLayout(this); grid_layout->addWidget(new QLabel(tr("Contour :")), 0,0, Qt::AlignRight); grid_layout->addWidget(outline_color, 0, 1);