Polish the imageviewer example.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Thu, 9 Jul 2015 11:25:16 +0000 (13:25 +0200)
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Fri, 21 Aug 2015 10:37:22 +0000 (10:37 +0000)
commit5549ba4fa512e0fed8f8dbf4f316293d04793d2f
tree5e0ffb356e5072d39da15c8967a55d3d142fabae
parentb349289fa0003da58adb5cee51e5c2e093a6dd6f
Polish the imageviewer example.

- Remove unneeded member variables.
- Use member initialization in the constructor.
- Use new connection syntax in createActions()
  to assemble the menu there, removing the createMenus()
  function.
- Fix coding style issue (braces)
- Avoid empty label showing up by setting the scroll
  area invisible until an image is loaded.
- Set a new image only if image read succeeds.
- Add status bar with information message.

Task-number: QTBUG-46848
Change-Id: I32d5af70d8eb71ec16dd58a0b98c32eb2bd988d7
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
examples/widgets/doc/src/imageviewer.qdoc
examples/widgets/widgets/imageviewer/imageviewer.cpp
examples/widgets/widgets/imageviewer/imageviewer.h