Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 增加ButtonBox hover 和切换动画 #595

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

Whale107
Copy link
Contributor

@Whale107 Whale107 commented Aug 5, 2024

增加ButtonBox hover 和切换动画

Log:

@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Whale107

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 5, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
@deepin-bot
Copy link
Contributor

deepin-bot bot commented Aug 5, 2024

Doc Check bot
🟡 some documents missing!

File Line Symbol
src/widgets/private/dbuttonbox_p.h 23 Dtk::Widget::DButtonBoxPrivate::DButtonBoxPrivate
src/widgets/private/dbuttonbox_p.h 24 void Dtk::Widget::DButtonBoxPrivate::init
src/widgets/private/dbuttonbox_p.h 20 Dtk::Widget::DButtonBoxPrivate
src/widgets/private/dbuttonbox_p.h 34 QVariantAnimation* Dtk::Widget::DButtonBoxPrivate::m_hoverAnimation
src/widgets/private/dbuttonbox_p.h 35 QVariantAnimation* Dtk::Widget::DButtonBoxPrivate::m_checkMoveAnimation

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 7, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 7, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 7, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 12, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
@deepin-ci-robot
Copy link
Contributor

deepin pr auto review

关键摘要:

  • DButtonBoxPrivate类中新增了m_hoverIdm_checkedIdm_pressId成员变量,这些变量用于跟踪按钮的鼠标悬停、选中和按下状态。
  • 新增了m_hoverAnimationm_checkMoveAnimation成员变量,这些变量用于实现按钮的悬停和选中动画效果。
  • DButtonBoxPrivate类的init()函数中,新增了动画的设置和连接,以便在按钮状态变化时更新动画。
  • DButtonBox类的paintEvent函数中,增加了绘制悬停和阴影的代码,以实现按钮的悬停效果。
  • DButtonBox类的eventFilter函数中,增加了处理鼠标悬停、选中和按下的事件,以更新按钮的状态和动画。

是否建议立即修改:

这些修改主要是为了增强DButtonBox按钮的视觉效果和用户交互体验。特别是悬停和阴影效果,以及动画效果的实现,这些改进可以提高用户界面的吸引力和用户体验。然而,需要注意的是,这些修改可能会影响性能,特别是在频繁切换悬停和选中状态时。因此,建议在实际项目中进行性能测试,并根据需要进行优化。

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 12, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 12, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
增加ButtonBox hover 和切换动画

Log:
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 12, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
@Whale107 Whale107 merged commit b96bfa2 into linuxdeepin:dev/animation Aug 22, 2024
19 of 21 checks passed
Whale107 added a commit to Whale107/dtkwidget that referenced this pull request Sep 23, 2024
增加ButtonBox hover 和切换动画

Log:
deepin-bot bot pushed a commit that referenced this pull request Sep 23, 2024
增加ButtonBox hover 和切换动画

Log:
FeiWang1119 pushed a commit to linuxdeepin/dtk6widget that referenced this pull request Sep 25, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#595
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants