Polish the screen shot example.
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Fri, 28 Aug 2015 08:56:58 +0000 (10:56 +0200)
committerJędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Tue, 1 Sep 2015 06:06:33 +0000 (06:06 +0000)
commit01c6f7200a74a8910ff9aa31741a20a14ccc443b
tree7d5ba16f089acd082ba401b7e90b6be800ffd459
parent3363398802fd224ff0557a3d9595baa45969e36c
Polish the screen shot example.

- Remove unneeded member variables.
- Set window sizes depending on screen geometry for High DPI screens.
- Flesh out code for saving the image, setting the supported
  mime types on the file dialog.
- Streamline constructor code, remove create...() functions.
- Use new connection syntax in createActions(),
- Obtain the screen from the widget.
- Adapt documentation. Remove note saying that widgets do not need
  the parent parameter (since creating parentless widgets can
  result in flicker in some cases), explain that QScreen pointers
  should be checked.

Change-Id: I0332bbf10eafe861fe3fd5573522694ab5c0183a
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
examples/widgets/desktop/screenshot/main.cpp
examples/widgets/desktop/screenshot/screenshot.cpp
examples/widgets/desktop/screenshot/screenshot.h
examples/widgets/doc/src/screenshot.qdoc