qmake: increase .pro-file compatibility between Qt 4 and 5

This patch makes qt.prf not warn about libraries in QT that are separate
modules in Qt 5, but exist as part of some larger library in Qt 4.

With this change, both Qt 4.8 and Qt 5 projects can use
  QT += widgets concurrent
to continue compiling unchanged under either Qt version.

Change-Id: I6f7c6a913377d7b44263c8ed152b272aa7ed9aa2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Fixed a bug where the MaximumSizeHint of a layout with spans was wrong

This was spotted while tracking down a similar bug related to spans.
This now also eliminates the Q_EXPECT_FAILs in
heightForWidthWithSpanning(), since it now finally works.

The problem was only for the maximum size, since the size of an ignored
row/column was min: 0, pref: 0, max: FLT_MAX (the default constructed
values for a QGridLayoutBox).

Change-Id: Ibb33c26ede40ed02edd26f596ba6133d59c9962f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
(cherry picked from qtbase/9d7ae6dfbe25fb70a362a4cf955c187cd24cb007)
Use LC_MESSAGES instead of LC_NUMERIC in QSystemLocale::fallbackLocale()

Backported from QtBase 7dfee3ffc5129307.

Change-Id: I5e7d0116ed95ede87c97d8ac2b9eff3b922818f7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Compile with clang when C++11 support is enabled

text/qtextdocument_p.cpp:1070:43: error: non-constant-expression cannot
be narrowed from type 'int' to 'quint32' (aka 'unsigned int') in
initializer list [-Wc++11-narrowing]
text/qtextdocument_p.cpp:1070:43: note: override this message by
inserting an explicit cast

Cherry-picked from qtbase/6deebc817080f9eb86d5d6fbe50444678eed4dfe.

Change-Id: Id3faf59a8d30dc829b82508c4be50439db1d9722
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Avoid socket notifiers on invalid file descriptors

There is potential trouble and no point in registering a QSocketNotifier
on an invalid file descriptor. This is prevented now in addition to the
existing warning.
Backported from qt5/qtbase: d20851f8ecd044479dd1892e92937a9135aa7856

Change-Id: I86e0a2c7ebdc6fb4cffcd39958003506ff01cb46
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
QWizard/Win: Support RTL layout in Aero style

Task-number: QTBUG-30462
Change-Id: Ie6b3ba4975542a9d92611eb9a8547215e41d3c2c
(cherry picked from qtbase/6f0dc9f4c7c1405bdbfef32395d0fb091bb0c8c8)
Reviewed-by: Ahmed Saidi <justroftest@gmail.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Use delete[] instead of delete

This fix isn't needed in Qt5 as the code doesn't exist there.
Change-Id: Icb8e0b45e5bc926cf0432ec3c990bc703f7b7b04
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>