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>
Don't change the current page of mainwindow container

Task-number: QTBUG-12097

Change-Id: I3d9fa918ac8ea9ee419a3384f0d9e33366315a6c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Disable dedicated screen event thread by default.

Screen events should come through QEventDispatcherBlackberry by default.

cherry-picked from qt5/qtbase c54ba8c2520243217e2901fa4379f50ccde0be96

Change-Id: I230a334da1341aca5d6b439298994e630c719233
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
QNX: fix compilation with C++11 enabled

QNX uses GCC, but by default not libstdc++ as the standard library,
but 'libcpp', a Dinkumware-derived implementation that doesn't sport
many of the C++11 features, yet.

Thus, the compiler detection sets Q_COMPILER_INITIALIZER_LIST, which
is correct, in a way, but since we're lacking stdlib support the next
 #include <initializer_list>
will fail.

So, simply don't define Q_COMPILER_INITIALIZER_LIST if we're on QNX
and detect a Dinkumware signature (taken from Boost.Config).

This is a back-port of change Ieeb147251c2935517faba61f75d1580a9e1649c4
from  Qt 5.

Change-Id: Ic7cd11b19a01ae192f60aae33da5581ff8e4682c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
QNX: QtGlobal: compile as a C header again

<utility> is a C++ header, only execute the check for the
Dinkumware standard library if we're compiling under a
C++ compiler.

This is a backport of Qt 5 change
b65291bc42c7e071e38efdd9ee6c4683f29aca13.

Change-Id: I12d5a2c5c003092127773d9c25623d012976c906
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Add Mac OS 10.8 QSysInfo enums

Change-Id: If52192c5dcd8ba55b7ae7d3e3c4aea75c32d0f99
Reviewed-by: James Turner <james.turner@kdab.com>
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
qws: print the data directory

Change-Id: Ie5634dce74d115a68f64681e964edce68427f1a6
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
QNX: Set the default application font to Slate Pro on Blackberry

This is already handled by the QPlatformTheme in Qt5

Change-Id: Ice21ecbaeb3f62e467a6e1496200f9040e907eb5
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Fabian Bumberger
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
doc: removed incorrect reference to Q_OS_X11

It's Q_WS_X11, not Q_OS_X11.

Change-Id: I1778f6d268ea0ce702e5eb451f7a9dc0e1b5e754
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Fix crash when column is inserted before rowspanned cell

When you're inserting a column in front of a rowspanned cell
and this cell is not the first in the rowspan, we would get
the wrong logical index of the new cell (putting it in
front of the initial cell with the rowspan). If the cell
does not span all rows, the table will get into a broken state
and trigger asserts in update(). To fix this, we search for
the first cell after the insertion point which has a logical
index higher than the cell directly before the insertion point.

Change-Id: Ic6fb66bc25ad91f3534886f964173ead924429e2
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
QSqlTM: respect generated flag in insertRecord() and setRecord()

These methods failed to respect the setting of the generated flag
on the fields of source record. INSERT and UPDATE statements should
only include fields where generated is TRUE.

Test included.

Follow-up to 0f15ab4e750690bdb2b649332d5c3276bf24c440.

Change-Id: I2f10dbcd7e5e5123489b38a123effe43a673a427
Task-number: QTBUG-23592
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Jason Dolan <jason.t.dolan@gmail.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Fix for enter key inserting into password fields in Symbian

QML TextInput and TextField elements with echoMode TextInput.Password
adds enter key into container string.

Modified filtering in Symbian QCoeFepInputContext to disable adding
enter key for hidden editors.

Task-Number: 1009418
Change-Id: If7928ccdb131d11f8c975b0efe890b85f3ba202e
Reviewed-by: Jaakko Helanti <ext-jaakko.helanti@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
test: fixed tst_qfilesystemmodel and removed insignificant_test

tst_qfilesystemmodel::sort uses some internal API to affect the sorting
behavior.  This means that part of the test must be disabled when
private symbols aren't available.

Change-Id: I2e7b9d7a33cb3e7032bc5380c03fa29ecc84e12c
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
(cherry picked from commit 4e84be2876543c1bfcab3b854c92a7edade4144b)
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Support high resolution screens in QUIKit plugin

We need to duplicate the scale factor of the screen for the UIView
to avoid the final blit to scale the framebuffer, and we need to
report scaled metrics to Qt.

Change-Id: I79f9a06708436e70e8e7f632f2248b70813214f9
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Fix 'make install' when cross-compiling on Windows

When cross-compiling on a Unix-like environment in a Windows host
we let the default mkspecs be copied to the target directory, instead
of being symlinked.
On Windows, there is an extra-line on the install_mkspecs Makefile target
which also copies (rather than linking) the default mkspecs to
$QT_INSTALL_DIR/mkspecs/default. So in the end this patch removes a duplicate
which was not working, causing the install_mkspecs target to fail.

Change-Id: I44be3a55c11cd7916b4b9ea6a0db1f8d97d28353
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
tests: Re-enable tst_MacGui test.

The test has one stable failure. Mark this with QEXPECT_FAIL and
re-enable the test.

Task-number: QTBUG-26514
Change-Id: I6faeda44224f2010ed836425a787269bfe483168
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Blackberry: Apply state from QWidget when creating new QBBWindow

Otherwise things like the window position and the parent/child relation
were wrong.

This is a backport from qtbase commit
095f2d5292ddfb4c77056af89c11327d85af282b.

Change-Id: I838a15def49c004d0a0229f208ffa8e4f7aa5216
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Doc: Fix typo foreigh -> foreign

Task-number: QTBUG-23260
Change-Id: I7d9ff3a23e1f20df5883d7c932a51c582945685c
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Support fallbacks fonts in UIKit plugin

Code is taken from the Qt 5 CoreText font database, but the
hardcoded path for the plist has been modified for iOS.

Change-Id: I71271600ec5dd085d469d5c42f9811a23948021f
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>