Moving the code handling actions gathering to applicationComponenents
Details
Details
Diff Detail
Diff Detail
- Repository
- R4 Zanshin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Ah also! You need to do the same work in the parts. There's the same action harvesting code there.
tests/units/widgets/applicationcomponentstest.cpp | ||
---|---|---|
438 | Instead of hard coding the size, it'd probably make sense to check that all the keys() for pageView()->globalActions() are in actions, etc. (for all the sub views). Also add the check on the specific ApplicationComponents action names. |
src/widgets/applicationcomponents.cpp | ||
---|---|---|
52 | Should be QHash<QString, QAction*> ApplicationComponents::globalActions() const to be align with the rest of the code, no ? |
Comment Actions
Minor spacing nitpick left.
src/widgets/applicationcomponents.cpp | ||
---|---|---|
52 | True that, although we did the mistake at other places, it's no reason to repeat it. :-) |