doc: cleanup raster window example

Documentation does not match the sample code. There is no explicit
call to QWindow::create(). It is called implicitly by QWindow::show().

Furthermore, QWindow::create() documentation states: "Note that it is
not usually necessary to call this function directly, as it will be
implicitly called by show(), setVisible(), and other functions that
require access to the platform resources.".

Change-Id: I632da86438f7f88c1fd8359b9fd6d52f329291cb
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Gatis Paeglis 2017-06-27 15:29:12 +02:00
parent 87229adca8
commit ce9a806336

View File

@ -74,14 +74,9 @@
\snippet rasterwindow/rasterwindow.cpp 1
The constructor first of all calls \l QWindow::create(). This will
create the window in the windowing system. Without calling create,
the window will not get events and will not be visible in the
windowing system. The call to create does not show the window. We
then set the geometry to be something reasonable.
Then we create the backingstore and pass it the window instance it
is supposed to manage.
In the constructor we create the backingstore and pass it the window
instance it is supposed to manage. We also set the initial window
geometry.
\snippet rasterwindow/rasterwindow.cpp 2