Fixed tst_qfileinfo for windows.

Manually cherry picked from Qt5 SHA 85594bd9

Task-number: QTBUG-25563

Change-Id: I16131e33712702028843f0404b65ea9f7b04c7d5
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
QNX: Flush after changing rotation

This fixes a painting glitch where the window would stay in the old
position with the old rotation until it got repainted.

This is a backport of commit
c196f89b7e298252944680bf0ba230a33feef718 from qtbase.

Change-Id: Idbbcd706befef0aadb3f79ab412b41f487ae978b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Clang: Do not warn about unused parameters (caused by ccache)

Change-Id: If4e16b17d999cebac5579e108e9a2dbb7df20d2d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Change default Content-Type for http POST to match 4.7.4

Qt 4.7.3 sent no Content-Type header by default.
This was fixed independently on 4.8.0 and 4.7.4 branches, with
different defaults.
Since this is often used for web service logins, the 4.7.4
default of x-www-form-urlencoded seems more likely to work.

The warning message is left in place, since not specifying the
content type is still an application bug.

Task-number: QTBUG-23350
Change-Id: I30bf50fd216ee9894d0168e904cea1ed4251ec68
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
(cherry picked from commit 4f578d15fe2ef176f0533c7ff4aea99b17636f85)
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Mark qglfunctions test as insignificant

qglfunctions was previously skipped due missing OpenGL support on
Windows machines. After installing Mesa 3D OpenGL library the test
started to run, but it fails. Marking test to insignificant until
the issue is resolved.

Task-number: QTBUG-26390
Change-Id: I783132a33de4e4483ff074c0df7b977e02e7fc7a
Reviewed-by: Kurt Korbatits  <kurt.korbatits@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Enable smiley support for Symbian editors

Added enabling of CEikEdwin::EAvkonEnableSmileySupport flag for normal
Symbian editors so that smiley/emoticon button or menu is enabled.

Change-Id: I0b9f6205ca1521fc54d3b688ccd1225823263aac
Reviewed-by: Juha Kukkonen <ext-juha.kukkonen@nokia.com>
Reviewed-by: Jaakko Helanti <ext-jaakko.helanti@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Fix access to uninitialized pointer

The C++ standard says in 9.4..2 that the object expression is evaluated,
so any compliant compiler may access d. So this syntax is a bug in this
place.

This is a backport of commit
88cf9402e336fddeb673c92f3c14da47a9f8450b from qtbase.

Change-Id: I02a9a1b73f7c18e8342aafeae412759f78086fa6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Clean buffers before closing the input device.

Input device handle is invalid after waveInClose()
QTBUG-24119

Change-Id: I3b2554f816f5ca66be4d992a0a579561639caf9f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Allow frequences up to 96000 in win32 backend.

QTBUG-26102

Change-Id: I08377d49a444ca3db1d1c0ccabc00665b4480f9b
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Added support for big endian data to QAudioOutput win32 backend.

Convert data from big endian to little endian.
QTBUG-19881

Change-Id: Id98c2158ed056dd89fe2656e8f262d4b37f94eb7
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Use utf8 to store audio device names in win32 backend.

QTBUG-21398

Change-Id: I9a319d4365b1fa26b6b4f63baf7c97e26df4f482
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Fix cursor truncate to include line position

Since we could have moved the line position (QTextLine::setPosition),
the truncating position should be adjusted with that.

Change-Id: Ie1acd4a1b6a4adfbeeb9ce8ee2dfa19d992470e8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Ensure the mouse buttons are preserved when entering a widget

On Mac we have to fake the QEvent::Enter event when entering a widget
so we need to ensure the buttons held down are set as part of that event
otherwise it causes problems with graphicsview which will update the
grabbed item based on this event.

Task-number: QTBUG-19353
Change-Id: I89252a46b5edd0d82b6b1a0cf2592f72b472e5cc
Reviewed-by: Nils Jeisecke <jeisecke@saltation.de>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Qml ListView highlight component cannot access ListView scope

Use the component creationContext to create the highlight item.
Also do this for the header and footer.

Task-number: QTBUG-26043
Change-Id: Ib4b947d022cb1513f728ac66455bfd2fe2703744
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Add null httpReply checks to QHttpThreadDelegate

If a request is aborted while under load, the abort signal can be
queued in front of a signal emitted from the httpReply.
The abort slot is deleting the httpReply and setting it to null.
So when the queued slot is processed the httpReply is null and
caused an MMU fault.

Removed qWarning from existing null checks, as these are expected
if abort is called with precise timing so that it races with the
reply finishing on the socket.

Task-number: QTBUG-26245
Change-Id: I0a7e0223fda1bc01d117fe8a993c7f6e43fd72ff
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Richard J. Moore <rich@kde.org>
(cherry picked from commit 41064f851591d9437baeda502b6e2504fee8f213)
Fix compilation error

Gerrit change I0b9f6205ca1521fc54d3b688ccd1225823263aac
is missing two needed header file includes. This task
adds them in.

Change-Id: I210515cef81bc03a5ad76a4bac3a5a50ad28e37d
Reviewed-by: Aapo Haapanen <ext-aapo.haapanen@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Fix socket notifier registration on Blackberry.

This fixes a bug on QEventDispatcherBlackberry, where registerSocketNotifier()
and unregisterSocketNotifier() wrongly assumed that a file descriptor was
being watched exclusively by one QSocketNotifier, while in fact there can be
more than one QSocketNotifier associated with a single file descriptor.

cherry-picked from qt5/qtbase: c10bc4c37d07dd7a9180d1810a379e370608c574.

Change-Id: Iad2de22f54038e101de744a91be56db00891aca1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Update macdeployqt plugin deployment logic.

Handle qmltooling, graphics system and bearer plugins.

Change-Id: I6f75dc600255013b88558d265a1b1ed25369f8e9
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
ARM: fix compilation with C++11 enabled

C++11 makes narrowing initialisation using {}s an error.
For an ARM target qreal != double, so force-cast to
qreal.

KAPPA now is consistent with the define of the same name
in qbezier.cpp.

Change-Id: I506218ee1f8cd0cdee21791cc402a479a429f7e5
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
[Blackberry] Fix event loop throughput issue

Currently, only one bps event can be handled per event loop iteration,
bringing about a huge performance penalty. This patch fixes this issue by
bulk processing events whenever they are available.

cherry-picked from qt5/qtbase 40bfbf3a5b765d939a7eea999c49da5b16456ad1

Change-Id: I52cc82d93754c2f6acf66f5b0445e34a68d233bf
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>