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: 新增进度条动效和一个新进度条类 #589

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

Whale107
Copy link
Contributor

新增进度条动效和一个新进度条类

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 Jul 18, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#589
Copy link

github-actions bot commented Jul 18, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jul 18, 2024

Doc Check bot
🟡 some documents missing!

File Line Symbol
include/widgets/dindeterminateprogressbar.h 16 DIndeterminateProgressbar::DIndeterminateProgressbar
include/widgets/dindeterminateprogressbar.h 12 DIndeterminateProgressbar
src/widgets/private/dindeterminateprogressbar_p.h 19 QWidget* DIndeterminateProgressbarPrivate::m_sliderWidget
src/widgets/private/dindeterminateprogressbar_p.h 20 QTimer* DIndeterminateProgressbarPrivate::m_timer
src/widgets/private/dindeterminateprogressbar_p.h 21 bool DIndeterminateProgressbarPrivate::m_leftToRight
src/widgets/private/dindeterminateprogressbar_p.h 22 QWidget* DIndeterminateProgressbarPrivate::m_spotWidget
src/widgets/private/dindeterminateprogressbar_p.h 23 QPropertyAnimation* DIndeterminateProgressbarPrivate::m_animation
src/widgets/private/dindeterminateprogressbar_p.h 17 DIndeterminateProgressbarPrivate::DIndeterminateProgressbarPrivate
src/widgets/private/dindeterminateprogressbar_p.h 14 DIndeterminateProgressbarPrivate

@Whale107
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA.

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

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

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

Source-pull-request: linuxdeepin/dtkwidget#589
@kegechen kegechen requested a review from zccrs July 31, 2024 09:07
include/widgets/dindeterminateprogressbar.h Outdated Show resolved Hide resolved
src/widgets/dtitlebar.cpp Outdated Show resolved Hide resolved
src/widgets/dprogressbar.cpp Outdated Show resolved Hide resolved
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 1, 2024
Synchronize source files from linuxdeepin/dtkwidget.

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

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

Source-pull-request: linuxdeepin/dtkwidget#589
src/widgets/dindeterminateprogressbar.cpp Show resolved Hide resolved
include/widgets/dindeterminateprogressbar.h Outdated Show resolved Hide resolved
deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Aug 1, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#589
Copy link
Contributor

@kegechen kegechen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在example中的progressbar加一个展示

Copy link
Contributor

@kegechen kegechen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无关提交去掉

void DIndeterminateProgressbar::setSliderSize(int size)
{
D_D(DIndeterminateProgressbar);
if (d->m_sliderWidget->width() == size)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不能超过自己的宽度吧

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

Source-pull-request: linuxdeepin/dtkwidget#589
新增进度条动效和一个新进度条类

Log:
@deepin-ci-robot
Copy link
Contributor

deepin pr auto review

关键摘要:

  • DIndeterminateProgressbarPrivate构造函数中,m_sliderWidgetm_spotWidget的初始化没有设置父窗口,可能会导致窗口显示异常。
  • m_timerm_animation的定时器超时信号与动画完成信号之间可能存在冲突,可能会导致定时器无限循环。
  • paintEvent方法中,使用setClipping(true)setClipping(false)可能会影响性能,建议使用更高效的方式来处理绘制区域。
  • paintEvent方法中,颜色值的硬编码可能不适用于所有主题,建议使用主题颜色来动态设置颜色。

是否建议立即修改:

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

Source-pull-request: linuxdeepin/dtkwidget#589
Copy link
Contributor

@kegechen kegechen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@Whale107 Whale107 merged commit b8497a4 into linuxdeepin:dev/animation Aug 2, 2024
20 of 21 checks passed
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.

None yet

4 participants