Fix crash when deleting top level windows embedded into QGraphicsProxyWidget.

Clear proxyWidget pointer in slot
QGraphicsProxyWidgetPrivate::_q_removeWidgetSlot().

Task-number: QTBUG-29684
Task-number: QTBUG-33213
Change-Id: Ibdbd52aa810ca908e3d98daa00954345e7a93a48
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
(cherry picked from qtbase/ff2dbe609ef4482d66d1ecd135b4f53f6aff7e60)
Improve handling of temporary directories in SQL tests.

Initialize directory delayed in shared code and add checks to verify
that it is valid. Close attached / cloned databases to prevent locks
on files and leaking temporary directories caused by SQLite:

QTemporaryDir: Unable to remove "...\Temp\tst_qsqldatabase-P1XkOA" most likely due to the presence of read-only files.
QTemporaryDir: Unable to remove "...\Temp\tst_qsqltablemodel-P1XkOA" most likely due to the presence of read-only files.
QWARN  : tst_QSql::concurrentAccess() QTemporaryDir: Unable to remove "...\Temp\tst_qsql-l0VAKJ" most likely due to the presence of read-only files.

In Qt 4, emulate the temporary directory by maintaining
a list of files and deleting them in reverse order.

Change-Id: If85bbaed04bb1a32e427d642be332996d967f796
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/9a4beb4d36dc0c613e59aa5d88060d521462f56c)
increase timeouts to make tst_macgui autotest more stable

Task-number: QTBUG-20984
Task-number: QTBUG-26372
Change-Id: I03e31e0e8c6428767cca91a8be6778ed08a2d783
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
OS X: Make Qt application react on applicationShouldHandleReopen

Currently a click on e.g. the dock icon is not propagated to the
application so if for example the main widget is hidden, it doesn't come
back. This patch fixes it

Task-number: QTBUG-10899

[ChangeLog][QtGui][OS X] Fixes a bug where clicking on the dock icon
would not be propagated to the application

Change-Id: Ia02ca23ed0dafbd337d1d7d9bc5f7efe3843b512
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Fix compilation of QtWebKit with MSVC 2012/2013

For some reason, MSVC 2012/2013 is no longer able to infer the
need for both a call to a constructor and a cast of its parameter
so we have to give a hint for at least one of these two operations.

Task-number: QTBUG-31882
Change-Id: I42b54313ec4f6a83cde28326534c59b93ab3f615
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Fix compilation of QtWebKit with MSVC 2013

Starting with MSVC 2013, more functions are provided.

Task-number: QTBUG-34705
Change-Id: I85e35a2486e0bd556f5f16e5911cca5c364273ed
(adapted from commit qtscript/24d678ce9c3996f46d1069c2b1193e7ec1083fc8)
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Restore dirty line logic in RenderInline::destroy

Ported from http://trac.webkit.org/changeset/86060
Add wkhtmltopdf definition to qwebframe.h

Define __EXTENSIVE_WKHTMLTOPDF_QT_HACK__ in qwebframe.h
so that wkhtmltopdf can check for it
Remove some graphics dependencies

Check for graphics mode in various webkit and qt classes, and
give sane fallback defaults in the case of tty mode.
Fix static build of webkit

Remove warning not allowing webkit in static build
Include JavaScriptCore in static build
make the static build for WebKit work properly

The following commits were ported from PhantomJS (for Webkit changes only):

https://github.com/ariya/phantomjs/commit/31157fbb98a9765c0043847a3a41359838aad0d0
https://github.com/ariya/phantomjs/commit/b11c6de9abfcf373f985b2c6629f34ec28b81ea6
https://github.com/ariya/phantomjs/commit/e7499d0b3332be1d2027238f1001c105b18a2950
https://github.com/ariya/phantomjs/commit/55a660f35a0c9ccf82a0296e83a9b4ff72ce637b
https://github.com/ariya/phantomjs/commit/62584ce7d4984030f2fb693760abab432ce5f591
fix build of WebKit on 64-bit MSVC 2010

The following link was used as a reference (with adaptations for static build)
http://blog.inventic.eu/2011/01/problem-with-qt-compilation-under-windows-64-bit
Fix static builds for Mac OS X
ignore untracked files generated during the build
do not build the QtWebkit tests
msvc: link to multithreaded static CRT + suppress warnings C4099, C4100, C4189

This is based on the corresponding commits in phantomjs:

https://github.com/ariya/phantomjs/commit/c3b30ac13654509b2fb3bfbf54789b885eff81a8
https://github.com/ariya/phantomjs/commit/d2c3a078ab50a8abd4b588744416ebfbfe2f905c
msvc: disable incremental linking for debug builds

This is because QtWebkit fails to link on 32-bit Windows.
Add support for links, hyperlinks and outlines to the pdf print system
Output pdf creation date in local time according to pdf spec
add support for not compressing pdf files