-
Notifications
You must be signed in to change notification settings - Fork 42
Supports dconfig2cpp generate class in SettingsDialog #474
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
Conversation
Reviewer's Guide by SourceryThis pull request modifies the Sequence diagram for SettingsOption value resetsequenceDiagram
participant User
participant SettingsOption
participant ConfigObject
User->>SettingsOption: resetValue()
activate SettingsOption
SettingsOption->>ConfigObject: p.reset(m_config)
activate ConfigObject
ConfigObject-->>SettingsOption:
deactivate ConfigObject
SettingsOption-->>User:
deactivate SettingsOption
Updated class diagram for SettingsGroupclassDiagram
class SettingsGroup {
-QString m_name
-QString m_title
-bool m_visible
-SettingsGroup* m_parentGroup
-int m_index
-QQmlListProperty~DTK_QUICK_NAMESPACE::SettingsGroup~ m_children
-QQmlComponent* m_background
-QObject* m_config
+QString name() const
+void setName(QString name)
+QString title() const
+void setTitle(QString title)
+bool visible() const
+void setVisible(bool visible)
+QQmlListProperty~DTK_QUICK_NAMESPACE::SettingsGroup~ children()
+QQmlComponent* background() const
+void setBackground(QQmlComponent* background)
+void setConfig(QObject* config)
+SettingsGroup* parentGroup() const
+void setParentGroup(SettingsGroup* parentGroup)
+int index() const
+void setIndex(int index)
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#474
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @zccrs - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider renaming
onConfigValueChangedtoonConfigPropertyChangedfor clarity, as it's triggered by property changes, not just value changes. - It looks like you're replacing
DConfigWrapperwithQObject- make sure this is correct and that you're not losing any functionality.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#474
|
功能我用example测试了 |
|
TAG Bot New tag: 5.7.13 |
|
TAG Bot New tag: 5.7.14 |
…by dconfig2cpp In the implementation related to SettingsDialog, it no longer forcibly depends on DConfigWrapper, but instead uses QObject as the base type, and obtains properties, signals, and other information through its property metatype system, allowing support for both classes generated by dconfig2cpp and the DConfigWrapper class. feat: 改进 SettingsDialog 的设计以支持dconfig2cpp生成的代码 在SettingsDialog相关的实现中不再强制依赖DConfigWrapper,而是使用QObject 这个基础类型,通过它的property这种元对象系统获取属性、信号等信息,这样 就可以同时支持dconfig2cpp生成的类,以及DConfigWrapper这个类。
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#474
deepin pr auto review关键摘要:
是否建议立即修改:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, zccrs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#474
Summary by Sourcery
Enhancements: