summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/i18n/languagechooser.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-12-17 01:05:14 +0100
committerMarc Mutz <marc.mutz@kdab.com>2019-05-22 05:15:39 +0000
commit923e08132cfd0c9140e705a7f0f27b3432f94695 (patch)
tree8e0ef7f6c0e304e986e4adc458bb0bb373211b16 /examples/widgets/tools/i18n/languagechooser.cpp
parent208f22300aa611292d9bdaaddf04708a53c577c8 (diff)
tst_QActionGroup: avoid Java-style iterators
They are going to be deprecated soon. Use a lambda to mimic the adjacent addActions() calls. Also, I didn't want to add a scope or extend the lifetime of the return value of actions() until the end of the function, and for (QAction *action : actGroup.action()) would detach. I'd've made it a helper function, but it's used only once, so... a lambda. Change-Id: I2b3aae463036fd61a9cca7b4ef991b8752869bf3 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'examples/widgets/tools/i18n/languagechooser.cpp')
0 files changed, 0 insertions, 0 deletions