linuxdeepin / dtkdeclarative

Other
20 stars 40 forks source link

refact: export asynchronous property to user #309

Closed asterwyx closed 7 months ago

asterwyx commented 7 months ago

Use synchronous image providers for icon and dci icon, let user decide when to use asynchronous loading by setAsynchronous property in QtIcon and DciIcon. By default, the loading is asynchronous.

Log: export asynchronous property to user.

asterwyx commented 7 months ago

目前只修改了QtIcon和DciIcon会用到的provider,还有一个shadow的provider我保持原样了。

deepin-bot[bot] commented 7 months ago
Doc Check bot :yellow_circle: some documents missing! File Line Symbol
src/private/dquickdciiconimage_p.h 40 Dtk::Quick::DQuickDciIconImage::DQuickDciIconImage
src/private/dquickdciiconimage_p.h 41 Dtk::Quick::DQuickDciIconImage::~DQuickDciIconImage
src/private/dquickdciiconimage_p.h 67 Dtk::Quick::DQuickIconImage * Dtk::Quick::DQuickDciIconImage::imageItem
src/private/dquickdciiconimage_p.h 69 bool Dtk::Quick::DQuickDciIconImage::isNull
src/private/dquickdciiconimage_p.h 70 DQuickIconAttached * Dtk::Quick::DQuickDciIconImage::qmlAttachedProperties
src/private/dquickdciiconimage_p.h 73 void Dtk::Quick::DQuickDciIconImage::nameChanged
src/private/dquickdciiconimage_p.h 74 void Dtk::Quick::DQuickDciIconImage::modeChanged
src/private/dquickdciiconimage_p.h 75 void Dtk::Quick::DQuickDciIconImage::themeChanged
src/private/dquickdciiconimage_p.h 88 Dtk::Quick::DQuickIconAttached
deepin-ci-robot commented 7 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: asterwyx, zccrs

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

Needs approval from an approver in each of these files: - **[debian/deepin/OWNERS](https://github.com/linuxdeepin/dtkdeclarative/blob/master/debian/deepin/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment