File tree Expand file tree Collapse file tree
ui/widget/material/widget/button Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,10 +156,6 @@ void Button::changeEvent(QEvent* event) {
156156 }
157157}
158158
159- void Button::keyPressEvent (QKeyEvent* event) {
160- QPushButton::keyPressEvent (event);
161- }
162-
163159// ============================================================================
164160// Property Getters/Setters
165161// ============================================================================
@@ -509,7 +505,7 @@ QMarginsF Button::shadowMargin() const {
509505 // Level 2: blur=4dp, offset=2dp, 最大偏移约 3dp
510506 // 预留边距 = offset + blur/2,更精确的阴影空间
511507 int level = m_elevation->elevation ();
512- float margin = helper.dpToPx (2 .0f + level * 1 .5f ); // level 2: 约 5dp
508+ float margin = helper.dpToPx (2 .0f + level * 1 .5f ); // level 2: 约 5dp
513509 return QMarginsF (margin, margin, margin, margin);
514510}
515511
Original file line number Diff line number Diff line change 1919#include " base/color.h"
2020#include " base/include/base/weak_ptr/weak_ptr.h"
2121#include " cfmaterial_animation_factory.h"
22- #include " components/animation_factory_manager.h"
2322#include " export.h"
2423#include < QIcon>
2524#include < QPushButton>
You can’t perform that action at this time.
0 commit comments