This class will allow to get data of a module without loading the UI.
For now it's used to get if a module have default value applied, but we can imagine more interaction in the future
Details
Diff Detail
- Repository
- R295 KCMUtils
- Lint
Lint Skipped - Unit
Unit Tests Skipped - Build Status
Buildable 25026 Build 25044: arc lint + arc unit
src/kcmodulestateprobe.h | ||
---|---|---|
21 ↗ | (On Diff #78969) | KCMODULESTATEPROBE_H |
25 ↗ | (On Diff #78969) | Forward-declare |
39 ↗ | (On Diff #78969) | Please add a virtual_hook so we can extend this class in the future without breaking ABI should we have the need to extract more data out of a settings module: virtual void virtual_hook(int id, void *data) |
src/kcmoduleloader.cpp | ||
---|---|---|
161 | Curly brace should be on the previous line | |
167 | Wouldn't it be better to initialize args2 with arg iterators? | |
src/kcmodulestateprobe.cpp | ||
47 ↗ | (On Diff #79496) | Curly brace on the next line |
55 ↗ | (On Diff #79496) | Curly brace on the next line |
src/kcmodulestateprobe.h | ||
44 ↗ | (On Diff #79496) | Should be protected not public |
39 ↗ | (On Diff #78969) | I'd slightly disagree here though, if that inherits from QObject anyway I'd just rely on meta call dispatching. But OK, let's go virtual_hook. |
src/kcmoduleloader.cpp | ||
---|---|---|
164 | Hello. This breaks the build for Qt 5.12 on the CI, (the min. required version in KF is still 5.12): |