Skip to content

Commit

Permalink
fix: close action in lineedit is narrowed
Browse files Browse the repository at this point in the history
remove _d_dtk_lineeditActionWidth property

Issue: linuxdeepin/developer-center#8423
  • Loading branch information
FeiWang1119 committed May 15, 2024
1 parent 722df56 commit e731506
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions styleplugins/chameleon/chameleonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4300,11 +4300,6 @@ void ChameleonStyle::polish(QWidget *w)
setWindowRadius(listview, DStyle::pixelMetric(PM_FrameRadius));
}

if (w && qobject_cast<QLineEdit *>(w) && !(qobject_cast<DSearchEdit *>(w->parentWidget()))) {
w->setProperty("_d_dtk_lineeditActionWidth", -6);
w->setProperty("_d_dtk_lineeditActionMargin", 6);
}

if (auto container = qobject_cast<QComboBoxPrivateContainer *>(w)) {
if (DWindowManagerHelper::instance()->hasComposite())
setWindowRadius(container, DStyle::pixelMetric(PM_FrameRadius));
Expand Down

0 comments on commit e731506

Please sign in to comment.