From e7315062de485525c1422ac49ef944703a0ee5bd Mon Sep 17 00:00:00 2001 From: wangfei Date: Wed, 15 May 2024 13:53:26 +0800 Subject: [PATCH] fix: close action in lineedit is narrowed remove _d_dtk_lineeditActionWidth property Issue: https://github.com/linuxdeepin/developer-center/issues/8423 --- styleplugins/chameleon/chameleonstyle.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index d28a723a..01d36a37 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -4300,11 +4300,6 @@ void ChameleonStyle::polish(QWidget *w) setWindowRadius(listview, DStyle::pixelMetric(PM_FrameRadius)); } - if (w && qobject_cast(w) && !(qobject_cast(w->parentWidget()))) { - w->setProperty("_d_dtk_lineeditActionWidth", -6); - w->setProperty("_d_dtk_lineeditActionMargin", 6); - } - if (auto container = qobject_cast(w)) { if (DWindowManagerHelper::instance()->hasComposite()) setWindowRadius(container, DStyle::pixelMetric(PM_FrameRadius));