Make tst_qwindow::positioning more reliable

Don't check for absolute counts of resize events but just check if we
were resized. Also use QTest::qWaitForWindowExposed instead of QTRY_COMPARE
and checking for QEvent::Expose.

Change-Id: Ie383493a8ce6d88cad50bd6375d432ad1578449c
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
winrt: Fix window resize

The fixed-size EGL display must be updated on PC as well as Windows Phone.

Task-number: QTBUG-43112
Change-Id: I0ba90370b67e8c065843e5754579e341b647266d
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
OSX: Fix build with QT_NO_OPENGL

Task-number: QTBUG-31151

Change-Id: I7ed8117ae05ba0eebaf85731c7fdd2bb51d6ed04
Fix fontconfig support for "offscreen" plugin.

Change-Id: I9e6f441b7d9b4f5efd227130f80bf428f2778e22
Add Phantom platform.

The Qt offscreen QPA plugin doesn't provide everything, phantomjs
needs. thus this commit introduces a custom plugin. Mostly this is
just porting the platform plugin phantomjs already had in the qt4
version, just this time seperated from Qt in phantomjs' source tree.
Applying PDF-printing-patch from Qt4.

Applying commit 08fc50d149745b078c9fd73a213c8c83307beaa2
"Headless and PDF printing fixes."

This commit though cuts out the headless stuff, which is obsolete by
now anyway. Moreover the commit added some functions that were never
used at all, I cut those out as well.
Fix mac build. Must link explicitely against fontconfig.

That CONFIG line includes the .prf file that has the correct LIBS
statements.
Use Windows font DB on Windows, and mac DB on mac.

Fixes the build error during linking.

Change-Id: I064201a424ca25702d80a609def41c290cbe6e45
Add hack to fix build with ver old SLES version.
Fix typo
Force static build with MSVC2012
Include `windows` platform for WIN32
Force static build with MSVC2013
Cleanup phantom QPA's handling of the font database on non-mac unix.

We now use the fontdatabases.pri include to setup everything required
in that regard, similar to how qnx.pro is doing it. Furthermore we
instantiate QGenericUnixFontDatabase instead of QFontconfigDatabase
directly. This is a typedef to QFontconfigDatabase if available, and
will otherwise fall-back to QBasicFontDatabase.

Change-Id: Icfad09d0328d20c9abcf23bfc05574c51b84ba53
Fixup phantom platform build on windows.

Change-Id: Ic27013d17f3820041c973b3b66a27b64158710ad
Fix phantom platform plugin compilation with namespaced Qt.

Change-Id: Idfd881c88f7cd011065d7520aeafdcfc20781937
Disable the phantom QPA on Windows.

It cannot, nor should it, be selected on windows machines. There, we
stick to the Windows QPA which is required to get a lot of things up
and running, like an eventloop, socket integration etc. pp.

There was code in the phantom QPA to make it compile, but it never
actually worked since a lot of things where missing (such as
instantiating QWindowsContext among others).

Change-Id: I30241b127f099a1deaf4adac4d4ebee66319650f
Cleanup code and add native interface.

See also the following commit in PhantomJS:

commit 7317724723639932f79c211ac40f5ca06f4d9e1a
Author: Ariya Hidayat <ariya.hidayat@gmail.com>
Date:   Tue Aug 26 23:25:01 2014 -0700

Fix consistent crash on OS X when rendering to PDF format.

By implementing a dummy platform native interface (for now, it may be
extended in the near future), QPlatformPrinterSupportPlugin will avoid
the path of loading the printer support plugin
(QCocoaPrinterSupportPlugin on OS X).

Related upstream bug (QCocoaPrinterSupportPlugin problem with static
build): https://bugreports.qt-project.org/browse/QTBUG-33109

https://github.com/ariya/phantomjs/issues/12500

Change-Id: I33891d9912f2d74cf02c530718017009eb5fb390
Do not assert when the argc differs from the CommandLine() argc.

This is required to properly run QCoreApplication inside JRE via
language bindings. We do not want the QCoreApplication to get
the JRE command line, but rather hand over a custom one manually.

Change-Id: I12d58d2cbcc4bc5baa664a952542dbe9f2300b5d
Enforce 72 DPI on Windows.

This ensures that e.g. PDFs printed on Windows look the same as
printed on Linux, where we also enforce 72 DPI.