Reorder for performance reasons.

isSymLink() can be expensive in a few cases.

Change-Id: Ib8b9f0c13d7ce141a539a4729be81d9faa4382ea
Reviewed-by: David Faure (KDE) <faure@kde.org>
(cherry picked from commit 1975e65d73ef2bf225bd765e6b50b6f50167f71c)
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Tests: stabilize tst_QDockWidget on small screens

The test has been recently failing in CI. The problem was easy to
reproduce in a virtual machine by resizing the window of the virtual
machine small enough. This change makes sure that the requested size
hint is significantly smaller than the desktop size, to avoid the
window manager stepping in and limiting the window size.

Change-Id: Id8ce63b2b88cbed964e0330633c5d2e1dc33598c
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
(cherry picked from commit 36e6632fa363152e1a0d42e53a0e5ada09092324)
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Fixed bug in QTimeLine::setPaused(false)

The problem was that the elapsed timer was not restarted,
causing the currentTime() not being adjusted for the time
it was paused.

(cherry-picked from Qt 5: 75614792fa2370b6b0402117bf)

Task-number: QTBUG-30108

Change-Id: I9718aa408075623514717328321c34e7ab3af436
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Inital port of QSystemLocale on BlackBerry 10

Backport of: a0c4a712263dbacd2c8d95da64e00bd213d05cbf

Change-Id: I4253067b42a8aa93325d48eeaa3a9937be2d2b75
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Fixed artifacts when drawing same line with different clips.

Expanding on the change fixing QTBUG-24762 with the realization that any
line needs to be drawn in a consistent way regardless of system or
painter clip, not just dashed lines.

Task-number: QTBUG-25036
Change-Id: Ief7ef19cc92c52e7d792500a581a072ba032767e
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
(cherry picked from commit c7191d3e214b9cdb17ec383b61f7e21e784f80d0)
Fixed QPainter::drawPolyline() not drawing solid lines.

If a line segment isn't filled we keep using the same point of origin.

Task-number: QTBUG-26156
Change-Id: I20af8410a7039b69848f201ab62fd3c01b95531b
Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
(cherry picked from commit b528e1324add2208abf8f83fb51a8bd2183157f5)
Use [NSScreen backingScaleFactor] on 10.7+

userSpaceScaleFactor is deprecated.

Change-Id: I892cb579e4b3ef9226495759c884d0e74c85a1d6
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Make QPixmap::grabWindow work on retina displays.

Scale by qt_mac_get_scalefactor.

Change-Id: I94cd4e0b2f81f7a83f14ff018e772dad1da10284
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
mkspecs: fix the path for rcc for win32-g++

patch not needed for Qt5

Task-number: QTBUG-27237
Change-Id: I41856f55b71661bfa01c4011129a35e110a234f9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>