diff --git a/src/widgets/ddropdownmenu.cpp b/src/widgets/ddropdownmenu.cpp index 843eb00f..e43c4b68 100644 --- a/src/widgets/ddropdownmenu.cpp +++ b/src/widgets/ddropdownmenu.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2017 - 2023 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2017 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -372,7 +372,6 @@ QIcon DDropdownMenu::createIcon() arrowPixmap = setSvgColor(color); }else { textColor = dpalette.color(DPalette::WindowText); - arrowPixmap = m_arrowPixmap; } // 根据字体大小设置icon大小,按计算的字体高度,而非从字体文件中读取的高度(部分字体中英文高度不同) @@ -409,7 +408,17 @@ QIcon DDropdownMenu::createIcon() //arrowPixmap=arrowPixmap.scaled(iconW,iconH,Qt::IgnoreAspectRatio,Qt::SmoothTransformation); //qDebug()<<"==================="<