Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
3cf7f87f0 (dev), 0578b9238 (6.9), 6c464f898 (6.8)
-
framework-content 4, framework-content 5
Description
https://doc.qt.io/qt-6/qquickattachedpropertypropagator.html#details instructs developers to "Define set/inherit/propagate/reset functions for each property as needed".
Out of the 4 functions that must be defined for a property, the page only shows code snippets for 2 of them: "propagateTheme()" and "resetTheme()"
Suggestion
Also add snippets to https://doc.qt.io/qt-6/qquickattachedpropertypropagator.html to demonstrate implementations of "setTheme()" and "inheritTheme()". Such implementations are available at https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quickcontrols/attachedstyleproperties/MyStyle/mystyle.cpp?h=6.8
Attachments
For Gerrit Dashboard: QTBUG-130156 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
621554,3 | Docs: Add more snippets for QQuickAttachedPropertyPropagator | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
622260,2 | Docs: Add more snippets for QQuickAttachedPropertyPropagator | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
622414,2 | Docs: Add more snippets for QQuickAttachedPropertyPropagator | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |