qt5base-lts/tests/auto/widgets
Marc Mutz 923e08132c 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>
2019-05-22 05:15:39 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.13' into dev 2019-04-27 01:00:11 +02:00
effects qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
graphicsview QtCore: mark obsolete enumerations as deprecated 2019-05-17 14:08:30 +00:00
itemviews Change QTextMarkdownWriter to pass by const pointer and QAIM 2019-05-08 20:28:44 +00:00
kernel tst_QActionGroup: avoid Java-style iterators 2019-05-22 05:15:39 +00:00
styles Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-16 09:34:50 +02:00
util Fix deprecation warnings in widget autotests 2019-02-08 18:00:51 +00:00
widgets QtCore: mark obsolete enumerations as deprecated 2019-05-17 14:08:30 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00