Show the actions in the apps and kontact plugins
ClosedPublic

Authored by ervin on Nov 12 2015, 9:56 PM.

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.
ervin updated this revision to Diff 1274.Nov 12 2015, 9:56 PM
ervin retitled this revision from to Show the actions in the apps and kontact plugins.
ervin updated this object.
ervin edited the test plan for this revision. (Show Details)
ervin added reviewers: bensi, franckarrecot, dfaure.
dfaure added inline comments.Nov 13 2015, 10:22 AM
src/renku/app/main.cpp
78

That's a weird way of writing QHash<QString, QAction*> actions;
Are you paid by the number of "auto" keywords you use? :-)

84

Red alert! foreach+keys()!
Use a QHash iterator.

ervin added inline comments.Nov 14 2015, 9:22 PM
src/renku/app/main.cpp
78

Hehe, nope... but that's my line of experiments at the moment. After trying to push mock overboard and see where that hurts, I'm trying to push auto overboard. Interestingly so far I didn't find much pain I would even say "on the contrary" it reminds me of ML or Scala code to some extend.

This experiment was prompted by:
http://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/
(4.b and 5 mainly)

ervin marked an inline comment as done.Nov 15 2015, 9:03 PM
ervin updated this revision to Diff 1295.Nov 15 2015, 9:05 PM

Address dfaure's comments

dfaure accepted this revision.Nov 15 2015, 10:41 PM
dfaure edited edge metadata.
This revision is now accepted and ready to land.Nov 15 2015, 10:41 PM
This revision was automatically updated to reflect the committed changes.