profile/ivi/qtbase.git
12 years agoRemove non-const getters marked for elimination.
Robin Burchell [Tue, 20 Dec 2011 14:31:41 +0000 (15:31 +0100)]
Remove non-const getters marked for elimination.

These all have consted overloads, so there's no need for them.

Change-Id: I3d4f63b8eb8f1b7df7fa772d6172e0a954184d24
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoMerge QTextDocumentFragment::toHtml() overload per Qt 5 comment.
Robin Burchell [Tue, 20 Dec 2011 17:14:58 +0000 (18:14 +0100)]
Merge QTextDocumentFragment::toHtml() overload per Qt 5 comment.

Change-Id: Ic8850684c2298b996354e27cc96ad6486d7a3679
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoFix typos parametter -> parameter.
Stephen Kelly [Fri, 23 Dec 2011 13:26:59 +0000 (14:26 +0100)]
Fix typos parametter -> parameter.

Change-Id: I0ebb3658477a1afdc1af5f4f6f64f12dc20ace56
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoIncrease the value of the UserRole for the ItemDataRole enum.
Stephen Kelly [Mon, 19 Dec 2011 17:49:44 +0000 (18:49 +0100)]
Increase the value of the UserRole for the ItemDataRole enum.

For future proofing. No need for it to be so small.

Change-Id: I8a0c734f87671881f114922ada7c5bc9524de19b
Reviewed-by: Marius Bugge Monsen <marius@cutehacks.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoReplace a pseudo-virtual slot with a virtual method.
Stephen Kelly [Mon, 19 Dec 2011 18:08:07 +0000 (19:08 +0100)]
Replace a pseudo-virtual slot with a virtual method.

Change-Id: I5d0e1e54e0d3d441b71b7594bc14e872512cc937
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQLocalSocket shouldn't emit disconnected if it isn't connected yet.
Jonas M. Gastal [Mon, 19 Dec 2011 15:55:29 +0000 (13:55 -0200)]
QLocalSocket shouldn't emit disconnected if it isn't connected yet.

Task-number: QTBUG-22082
Change-Id: I2e1dae133f50a232d4be3ff63cafaf1b417b286c
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoadd tests and benchmarks for QString::toLower()/toUpper()/toCaseFolded()
Konstantin Ritt [Tue, 18 Oct 2011 17:12:18 +0000 (19:12 +0200)]
add tests and benchmarks for QString::toLower()/toUpper()/toCaseFolded()

Merge-request: 70
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Change-Id: I3929d4d8963c3cef6d2c6420d8ad1f7a45f7e042
Reviewed-by: Olivier
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agonetwork auto tests: add QNetworkReply test for pipelining
Peter Hartmann [Thu, 17 Nov 2011 10:19:33 +0000 (11:19 +0100)]
network auto tests: add QNetworkReply test for pipelining

Reviewed-by: Markus Goetz
Task-number: QTBUG-21369
(cherry picked from commit a32bfdef6d6b45c916f143dcf8495a2e102c3eec)

Change-Id: Iecde23c56f128008c5172675601928d83180358a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix crashes and non-portable functionality in QDBusDemarshaller QByteArray extraction
Sami Rosendahl [Tue, 22 Nov 2011 11:52:15 +0000 (13:52 +0200)]
Fix crashes and non-portable functionality in QDBusDemarshaller QByteArray extraction

QDBusArgument QByteArray extraction operator and QDBusDemarshaller that
implements the extraction do not check the type of the extracted value.
When extracting a QByteArray when the value actually is e.g. a struct of
mixed types the byte array extraction will crash as it attempts to extract
the struct data as a fixed array.

The fix adds DBus type checks to QDBusArgument byte array extraction
operator implementations.
The checks invalidate extracting arrays of other types than bytes to a
QByteArray that worked with the unchecked implementation. The rationale
for this restriction is
1) extracting a QByteArray to a variant checks already that the array
   element type is byte
2) Results of extracting arrays of types wider than a byte to a QByteArray
   are architecture-dependent making such code inherently non-portable.

Task-number: QTBUG-22840
Change-Id: Ie20f2adc06c697a68055c803215fb408568fdd90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix crash in QDBusDemarshaller QStringList extraction
Sami Rosendahl [Mon, 5 Dec 2011 11:06:40 +0000 (13:06 +0200)]
Fix crash in QDBusDemarshaller QStringList extraction

QDBusArgument QStringList extraction operator and QDBusDemarshaller that
implements the extraction do not check the type of the extracted value.
When extracting a QStringList and the value actually is e.g. an array of
bytes the string list extraction will crash as it interprets the bytes as
char pointers.

The fix adds DBus type checks to QDBusArgument QStringList extraction
operator implementations.
The checks are as permissive as possible provided crashes are avoided.

Task-number: QTBUG-22840
Change-Id: I4b67d75b59c5052d939f3a69f3e92dabdb3bdd6b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix crash in QDBusDemarshaller basic string-like type extraction
Sami Rosendahl [Fri, 25 Nov 2011 09:13:46 +0000 (11:13 +0200)]
Fix crash in QDBusDemarshaller basic string-like type extraction

QDBusArgument string extraction operators and QDBusDemarshaller that
implements the extraction do not check the type of the extracted value.
When extracting string-like basic DBus type that actually is e.g. an
integer the string extraction will crash as it blindly attempts to use the
integer as a pointer to char.

The fix adds DBus type checks to QDBusArgument string type extraction
operator implementations.
The checks are as permissive as possible provided crashes are avoided.
Previously supported functionality of extracting an object path or type
signature to a string type is retained.

Task-number: QTBUG-22840
Change-Id: I29be1ae592658ca268c65ed692e1d42619d52280
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoImprove QSettings autotest
Jason McDonald [Fri, 23 Dec 2011 05:35:32 +0000 (15:35 +1000)]
Improve QSettings autotest

QTestLib-based autotests cannot perform verification steps in the test
class constructor.  This needs to be done in initTestCase() instead.

Change-Id: Ib1f7f838f052fa0fc5104603bdac01ffd8313aef
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoRemove empty functions from QSet autotest.
Jason McDonald [Fri, 23 Dec 2011 05:52:54 +0000 (15:52 +1000)]
Remove empty functions from QSet autotest.

Change-Id: Id6fac3a83e3f4385ee1978a19e6dc92605f4abdb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoBuild fix for tst_qprinter with c++11
Jędrzej Nowacki [Thu, 22 Dec 2011 14:44:28 +0000 (15:44 +0100)]
Build fix for tst_qprinter with c++11

GCC 4.6 fails to build the test because of narrowing conversion.

Change-Id: I927693789be7f3df7bd1a96c8924fc04716a03f0
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agov8: Build V8 for FreeBSD
Holger Hans Peter Freyther [Fri, 23 Dec 2011 21:35:42 +0000 (22:35 +0100)]
v8: Build V8 for FreeBSD

For FreeBSD the libexecinfo port needs to be installed and linked to, all
tests execute and pass.

%uname -a
FreeBSD qt-ppa 8.2-STABLE FreeBSD 8.2-STABLE #4: Sun Oct 30 20:43:37 UTC 2011     ich@freebsd:/usr/obj/usr/src/sys/GENERIC  amd64
%./tst_v8
********* Start testing of tst_v8 *********
Config: Using QTest library 5.0.0, Qt 5.0.0
PASS   : tst_v8::initTestCase()
PASS   : tst_v8::eval()
PASS   : tst_v8::evalwithinwith()
PASS   : tst_v8::userobjectcompare()
PASS   : tst_v8::externalteardown()
PASS   : tst_v8::globalcall()
PASS   : tst_v8::cleanupTestCase()
Totals: 7 passed, 0 failed, 0 skipped
********* Finished testing of tst_v8 *********

Change-Id: Ia8198128126c2931807c7fb872c15baad47022e1
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agov8: Change the selection of Operating System
Holger Hans Peter Freyther [Fri, 23 Dec 2011 21:29:13 +0000 (22:29 +0100)]
v8: Change the selection of Operating System

Instead of doing "I want Linux and do it by selecting Unix and
discarding everything not implementing the Linux ABI". Select the
other operating system first and have a catch all Linux/Unix anchor.

!symbian is left inside as it does not hurt right now but could probably
be removed before Qt 5.0.0.

Change-Id: I731d8349e4f9c0ac33d547523f0a0f422e994e54
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoRemove unused -DQT_NO_PCRE from qmake makefiles
Giuseppe D'Angelo [Wed, 21 Dec 2011 23:43:00 +0000 (23:43 +0000)]
Remove unused -DQT_NO_PCRE from qmake makefiles

That define is not used anymore when building qmake.

Change-Id: I6a478cf4bb6cc8dfe87a3cc96f1d520b08e4ba6f
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix cmake files for static builds.
Stephen Kelly [Fri, 16 Dec 2011 23:47:13 +0000 (00:47 +0100)]
Fix cmake files for static builds.

Change-Id: I3864017df6fc0daeb31b389c8883401d344730bf
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoLink to X and Xrender libs in glxconvenience
Jørgen Lind [Fri, 23 Dec 2011 12:51:07 +0000 (13:51 +0100)]
Link to X and Xrender libs in glxconvenience

Change-Id: I54b2704be678f2c3b9ab8d24d044977c9c01e98e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix regression, make sure hit testing work on windows again.
Jan-Arve Saether [Thu, 22 Dec 2011 10:21:47 +0000 (11:21 +0100)]
Fix regression, make sure hit testing work on windows again.

The previous code did not make much sense

This regressed due to 74c9f9d83f9f5cb934d0b62b468c74df5a3b9a0d

Change-Id: Ia4374623257863edca706a1c3d8b565d0c6bd4c1
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoFinish removing Qt3 support
Bradley T. Hughes [Tue, 20 Dec 2011 13:59:09 +0000 (14:59 +0100)]
Finish removing Qt3 support

Remove the (-no)-qt3support options from configure, and remove the last
remaining references to Qt3Support, QT3_SUPPORT, and
QEvent::ChildInserted.

The compatibilityChildInsertEvents() tests in tst_QObject and
tst_QWidget have been renamed to childEvents(), which is a more
appropriate name.

Change-Id: Id0b45e9b177efcc8dceee8c9ed8afafedeeace2f
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQCryptographicHash: allow to hash the content of a QIODevice
Sune Vuorela [Tue, 20 Dec 2011 18:46:28 +0000 (19:46 +0100)]
QCryptographicHash: allow to hash the content of a QIODevice

This adds a new function (and tests) to give the possibility of doing a
QCryptographicHash of a QIODevice, like a QFile or whatever people
needs.

It is a quite handy overload in many cases.

Change-Id: I22fd272f05571844641b3daefcc6746be4e5c7c3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix for -Werror -Wshadow
David Faure [Mon, 19 Dec 2011 11:50:51 +0000 (12:50 +0100)]
Fix for -Werror -Wshadow

qevent.h:792:49: error: declaration of 'device' shadows a member of 'this' [-Werror=shadow]

Change-Id: Iccb7e79dd97d55b17fbd4dfaf3503b9e251adcfc
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoRemove redundant template parameter from QMetaType's internal classes.
Jędrzej Nowacki [Mon, 19 Dec 2011 15:55:47 +0000 (16:55 +0100)]
Remove redundant template parameter from QMetaType's internal classes.

Filter doesn't have to be a parameter because we always use
DefinedTypesFilter.

Change-Id: I19b8eb47a4c50e290cf712f909aaead8fdc94cd9
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoFix http authentication to a different realm on the same server
Shane Kearns [Thu, 22 Dec 2011 14:08:17 +0000 (14:08 +0000)]
Fix http authentication to a different realm on the same server

This is a regression caused by the NTLMv2 authentication patch.
I have manually tested NTLMv2 authentication against MS IIS and reverting
these two lines does not break it.

Task-number: QT-5209
Change-Id: I64159cbe468e1a7f834f8726fd0c9d4ab4c54b38
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoFix movablity of QVariant.
Jędrzej Nowacki [Fri, 2 Dec 2011 16:52:00 +0000 (17:52 +0100)]
Fix movablity of QVariant.

After 8fd64d22ac7892b061a09c42c72aacf033b80876 (Make usage of internal
QVariant space.) change QVariant started to "inherit" movablity from
interned type.

This change fix it by interning only movable type in QVariant and by
using external allocation for not movable ones.

Obviously, this change has negative impact on QVariant it self, but
after it, QVariant will behave a lot nicer with our containers.

Change-Id: Ibffc95833918f65be737f52d694ee81a2036c412
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix race in http connection channel
Shane Kearns [Mon, 19 Dec 2011 15:35:52 +0000 (15:35 +0000)]
Fix race in http connection channel

When authentication is cancelled, close the channel instead of the
underlying socket.
The previous behaviour could result in further requests being sent
on the closed socket, which caused errors in case of https over a proxy.

Change-Id: I3dbfc164de4fb29a426c06acaac8f29b9da1d705
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoDon't fetch credentials from cache following a failed proxy authentication
Shane Kearns [Thu, 15 Dec 2011 17:32:47 +0000 (17:32 +0000)]
Don't fetch credentials from cache following a failed proxy authentication

Add variable to QAuthenticatorPrivate for tracking failure
Track authentication success/failure in http proxy socket engine
Track authentication success/failure in http connection channel

Task-number: QTBUG-22875
Change-Id: Id5d39e839428271ad687e9da12fbbdea9c478f4f
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoHandle plain socket write errors in SSL
Shane Kearns [Mon, 19 Dec 2011 15:10:45 +0000 (15:10 +0000)]
Handle plain socket write errors in SSL

When an ssl socket is closed during connecting, and it is using a proxy
then it is possible for the plain socket to be in pending close state
when transmit() is called.
As errors were not handled, this caused the socket (and https request)
to "hang".
It now propagates the error from plain socket.

Change-Id: I6fb86815a2a63e197cea582f4b153e487543477c
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix for assertion failure
Shane Kearns [Thu, 15 Dec 2011 17:31:52 +0000 (17:31 +0000)]
Fix for assertion failure

Change-Id: I97b9ecc37e938a3050793fc746288243a1cb40b7
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoFix faulty logic in http connection pipelining
Shane Kearns [Thu, 22 Dec 2011 13:35:34 +0000 (13:35 +0000)]
Fix faulty logic in http connection pipelining

The code which prevents pipelining of requests when authentication is
in use had || where && should have been used.
Also check for blank user with a password.

Change-Id: Ic278cedd370c9d81377f49a0af43aef415cb49ad
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoQTestLib-selftest: Unblock on Windows.
Friedemann Kleint [Thu, 22 Dec 2011 14:01:40 +0000 (15:01 +0100)]
QTestLib-selftest: Unblock on Windows.

Do not run tests that pop up assert boxes.

Change-Id: Idac94398ff1109605eb33a042dab734eafb1a17a
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
12 years agoAllow QMetaType to register information about movability
Jędrzej Nowacki [Tue, 13 Dec 2011 11:07:47 +0000 (12:07 +0100)]
Allow QMetaType to register information about movability

We need that information to perform some optimizations in QVariant.

Change-Id: Id9a1716e49e4cedd17cd09a32fea4ff003ef61f2
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoRemove QT_NO_STL_WCHAR hack
Harald Fernengel [Wed, 21 Dec 2011 09:40:36 +0000 (10:40 +0100)]
Remove QT_NO_STL_WCHAR hack

We don't support gcc 2.95 any more.

Change-Id: I842f1f8ac64b9006516c104add0991830ac9a46a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix handling of invalid modifiers in QKeySequence.
David Faure [Wed, 21 Dec 2011 19:15:25 +0000 (20:15 +0100)]
Fix handling of invalid modifiers in QKeySequence.

When decoding a string don't assume valid modifier strings. If a
modifier string is unknown return Qt::Key_unknown instead of skipping
the modifier.
Currently 'Win+a' is decoded to 'A' but should be Qt::Key_unknown.

Change-Id: I1c82031159a8b3c19924a7c9e991bc6b1f90d617
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoUse strlen() inline whenever possible
Harald Fernengel [Wed, 21 Dec 2011 11:03:08 +0000 (12:03 +0100)]
Use strlen() inline whenever possible

This allows us to benefit from compile-time optimization

Change-Id: I63dfde3758fcb0ff919fdc0418df1b7586da0b2f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoEnable Mac style on Mac OS X.
Morten Johan Sorvig [Wed, 14 Dec 2011 14:11:49 +0000 (15:11 +0100)]
Enable Mac style on Mac OS X.

Add styles/qmacstyle_mac back to the build, modify
qstylefactory to load it on Q_OS_MAC.

Move helper functions from platforms/mac to
qmacstyle_mac.mm. QMacStyle should now be self-
contained and not rely on anything from platforms/mac.

Change-Id: I68fe40bb7f88c01269968bffd9579b7f3b932d4c
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoQNetworkAccessManager: fixed foreach copy of host address
Martin Petersson [Thu, 22 Dec 2011 09:53:19 +0000 (10:53 +0100)]
QNetworkAccessManager: fixed foreach copy of host address

Change-Id: I50cb113fb3c803fc5b13c74b3f7ad1fc4283065b
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoAdd ToS option to sockets.
Jonas M. Gastal [Tue, 20 Dec 2011 16:42:06 +0000 (14:42 -0200)]
Add ToS option to sockets.

Creates a new SocketOption called called TypeOfServiceOption that can be
used with the existing setSocketOption method to set the ToS byte in a
socket socket. This is done only for unix systems because windows
doesn't support directly setting the ToS/DSCP byte:
http://support.microsoft.com/kb/248611
http://blogs.msdn.com/b/wndp/archive/2006/07/05/657196.aspx

Change-Id: Idf9da2dd8307ac7057982fbfdf9e4e9ebe366780
Task-number: QTBUG-6221
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoSSL: fix build with -openssl-linked for OpenSSL 0.9.8*
Peter Hartmann [Mon, 19 Dec 2011 10:46:45 +0000 (11:46 +0100)]
SSL: fix build with -openssl-linked for OpenSSL 0.9.8*

OpenSSL's SSL_ctrl() always took a "void *" argument as 4th parameter,
since at least version 0.9.7.
I have no idea why we had "const void *" in there.

Reviewed-by: Richard J. Moore <rich@kde.org>
Task-number: QTBUG-23132
(cherry picked from commit 4db91cbd6147e40f543342f22c05b7baddc52e5a)

Change-Id: Ie570e1cc59b72f13d3e6f3ed6fc1892444a63743
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoDisable logging in xcb
Jørgen Lind [Thu, 22 Dec 2011 08:46:07 +0000 (09:46 +0100)]
Disable logging in xcb

The logging groves and modifies a vector.. It should at least be a
linked-list. but anyway, it shouldn't be enabled by default

Change-Id: Iaebb1158eea1c907e31e9606b143c0318a189dd1
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoTest case for QTBUG-22875
Shane Kearns [Tue, 13 Dec 2011 15:50:59 +0000 (15:50 +0000)]
Test case for QTBUG-22875

Test the authentication cache works properly with "cancelled dialogs"
or if the user enters username/password incorrectly.
Expected behaviour is based on web browsers:
If cancelled, current request fails, and prompt again the next time.
If wrong password is given, prompt again and retry the current request.
If bad credentials are in the cache, prompt again

Task-number: QTBUG-22875
Change-Id: Ic02ccac8dbeb3f2580ca4ffe47d0773982c4ab25
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
12 years agoFix compile error when configured with -no-exceptions
Shane Kearns [Mon, 12 Dec 2011 16:24:52 +0000 (16:24 +0000)]
Fix compile error when configured with -no-exceptions

The test was skipped, but still tried to compile code that uses
exceptions. The throwing class it uses was conditionally compiled
out earlier in the file, causing an error for undefined class.

Task-number: QTBUG-23028
Change-Id: Ia2e05a8a0abbf0e913f6c41e85bfee8b85cbc8a5
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoMac: Add temporary solution to fix app deployment.
Morten Johan Sorvig [Tue, 6 Dec 2011 20:09:53 +0000 (21:09 +0100)]
Mac: Add temporary solution to fix app deployment.

Look for the the platform plugin in "../Plugins" first.
When deployed inside an app bundle this path will
point to the plugin directory inside the app bundle.

Change-Id: I362981a9e0ca9a3e69396b033a571d0b4e2bf78a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoFix up the accessibility inspector.
Morten Johan Sorvig [Tue, 20 Dec 2011 12:20:13 +0000 (13:20 +0100)]
Fix up the accessibility inspector.

After accessibility API changes. Also make the windows
a bit smaller since the primary user is on a laptop
now.

Change-Id: I53a86cbe85adbbb27401dbf6c3c389629e295b4d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoDo not crash in the windows accessibility bridge
Jan-Arve Saether [Tue, 20 Dec 2011 12:32:01 +0000 (13:32 +0100)]
Do not crash in the windows accessibility bridge

If the object did not have a QAccessibleInterface subclass it would
crash in the windows accessibility bridge.

Change-Id: I931d69466a5a74a87f1c1c577fb1c918dcc8accf
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoQNetworkAccessManager: delay IPv4 or IPv6 based on getaddrinfo order
Martin Petersson [Mon, 19 Dec 2011 10:02:46 +0000 (11:02 +0100)]
QNetworkAccessManager: delay IPv4 or IPv6 based on getaddrinfo order

Instead of always delaying IPv4 when we have both Ipv4 and IPv6 we
should use the order we get from getaddrinfo to descide which one
that should be delayed.

Task-number: QTBUG-23066
Change-Id: Ibe8c4d7000abd6e57fe8c6afac8a4a843e17ff27
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoQTestlib: Make QImage comparison more verbose.
Friedemann Kleint [Mon, 19 Dec 2011 10:33:07 +0000 (11:33 +0100)]
QTestlib: Make QImage comparison more verbose.

Introduce a specialization for qCompare(QImage,QImage) that
checks isNull, size and format and outputs verbose messages.

Check isNull, size similarly for QPixmap.

Add an autotest:
- Add test to cmptest and make it a GUI application since
  QImage requires QGuiApplication.
- Make testlib/selftests capable of running X11-GUI applications
  by passing DISPLAY.
- Ignore stderr output for cmptest
- Add test data

Change-Id: I2b29c7822fbeedf2b22c90889739ed7ff859ce92
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoQTestLib: Fix QFINDTESTDATA for Windows.
Friedemann Kleint [Tue, 20 Dec 2011 08:43:24 +0000 (09:43 +0100)]
QTestLib: Fix QFINDTESTDATA for Windows.

- Scan the parent directory of the executable if it is located
  in a 'Debug' or 'Release' directory
- Report with native separators in the log.
- Use the QString::arg() overloads with several string parameters.

Change-Id: I5ea84411e12978f8f958a0bce3ae10da44cc4e3f
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoRebuild configure.exe.
Friedemann Kleint [Wed, 21 Dec 2011 13:14:27 +0000 (14:14 +0100)]
Rebuild configure.exe.

- Use create_prl, link_prl for all modules.
- Remove -graphicssystem (and -runtimegraphicssystem) options from
  configure.

Change-Id: Id1e0c8f82fa3149fd67c6a31e9e8baec06366205
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoconfigure[.exe]: use create_prl, link_prl for all modules
Rohan McGovern [Wed, 14 Dec 2011 01:33:15 +0000 (11:33 +1000)]
configure[.exe]: use create_prl, link_prl for all modules

These should go into qmodule.pri, rather than .qmake.cache, as they
make sense for all Qt modules - not only qtbase.

Fixes link failure when building qtdeclarative with jom on Windows.

Change-Id: I3e8b207e1808cb23af58b865a160c2fafa906288
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoReimplement QIODevice::reset() properly
Bradley T. Hughes [Tue, 20 Dec 2011 08:18:56 +0000 (09:18 +0100)]
Reimplement QIODevice::reset() properly

The reset() function is not const.

tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp:324:
warning: 'FixedSizeDataGenerator::reset' hides overloaded virtual
function [-Woverloaded-virtual]
    virtual bool reset() const{
                 ^
src/corelib/io/qiodevice.h:112: hidden overloaded virtual function
'QIODevice::reset' declared here
    virtual bool reset();
                 ^

Change-Id: I022d902147f9c8fb71bee8c3e21b963b2d7bec55
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoReimplement QGraphicsEffect::sourceChanged() properly
Bradley T. Hughes [Tue, 20 Dec 2011 08:26:30 +0000 (09:26 +0100)]
Reimplement QGraphicsEffect::sourceChanged() properly

sourceChanged() takes one argument, not zero.

tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp:125:
warning: 'CustomEffect::sourceChanged' hides overloaded virtual function
[-Woverloaded-virtual]
    void sourceChanged()
         ^
src/widgets/effects/qgraphicseffect.h:104:
hidden overloaded virtual function 'QGraphicsEffect::sourceChanged'
declared here
    virtual void sourceChanged(ChangeFlags flags);
                 ^

Change-Id: If227b7b79c4a2fc3d21f93e371510ddccb408d7d
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoReimplement QVariantAnimation::updateState() properly
Bradley T. Hughes [Tue, 20 Dec 2011 08:22:20 +0000 (09:22 +0100)]
Reimplement QVariantAnimation::updateState() properly

The updateState() takes 2 arguments, not 1.

tests/benchmarks/gui/animation/qanimation/dummyanimation.h:54: warning:
'DummyAnimation::updateState' hides overloaded virtual function
[-Woverloaded-virtual]
    void updateState(State state);
         ^
src/corelib/animation/qvariantanimation.h:106: hidden overloaded virtual
function 'QVariantAnimation::updateState' declared here
    void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
         ^

Change-Id: Ieb2e4e0b1f017c51c4fed5bdb874ba30cb056916
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoReimplement QAbstractFileEngine::open() properly
Bradley T. Hughes [Tue, 20 Dec 2011 08:16:54 +0000 (09:16 +0100)]
Reimplement QAbstractFileEngine::open() properly

The virtual function takes a QIODevice::OpenMode argument, not an int.

tests/auto/corelib/io/qfile/test/../tst_qfile.cpp:1942: warning:
'MyEngine::open' hides overloaded virtual function [-Woverloaded-
virtual]
    bool open(int ) { return false; }
         ^
src/corelib/io/qabstractfileengine.h:118: hidden overloaded virtual
function 'QAbstractFileEngine::open' declared here
    virtual bool open(QIODevice::OpenMode openMode);
                 ^

Change-Id: I92338dacb89c05d8c5cfbf8ce094dc519b84d3ba
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoConvert macros to functions.
Stephen Kelly [Mon, 19 Dec 2011 21:30:50 +0000 (22:30 +0100)]
Convert macros to functions.

Change-Id: I43f4188d1c33cd5a07eb7a12bf3343af7e6a211f
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoPort to list(APPEND)
Stephen Kelly [Mon, 19 Dec 2011 21:27:48 +0000 (22:27 +0100)]
Port to list(APPEND)

Change-Id: I198622270324eea62dd5ad6343fdf7c89e736e6c
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoRemove misleading and incorrect information from dropMimeData docs.
Stephen Kelly [Mon, 12 Dec 2011 14:29:32 +0000 (15:29 +0100)]
Remove misleading and incorrect information from dropMimeData docs.

It is not the responsibility of the view to insert data into the
model after a dropMimeData call.

Change-Id: Ib2dedddb3239af0e2bf722a28081c68677e6b2af
Reviewed-by: David Faure <faure@kde.org>
12 years agoFix style in cmake macros files.
Stephen Kelly [Mon, 19 Dec 2011 21:17:02 +0000 (22:17 +0100)]
Fix style in cmake macros files.

Change-Id: I2806ce63f5948dde9c582740bc2f070900987fb5
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoConnect to the moved signals in the header view.
Stephen Kelly [Thu, 15 Dec 2011 14:35:59 +0000 (15:35 +0100)]
Connect to the moved signals in the header view.

Change-Id: I6954f77ad7d02970f562abcbaf4e733c6d43ead5
Reviewed-by: David Faure <faure@kde.org>
12 years agoFix whitespace consistency.
Stephen Kelly [Thu, 15 Dec 2011 14:35:40 +0000 (15:35 +0100)]
Fix whitespace consistency.

Change-Id: Ia5debce8e5be4e9c67e1ef303e136816ab55bf90
Reviewed-by: David Faure <faure@kde.org>
12 years agoFix -tickcounter in qtestlib.
Robin Burchell [Fri, 16 Dec 2011 17:32:46 +0000 (18:32 +0100)]
Fix -tickcounter in qtestlib.

HAVE_TICK_COUNTER is supposed to be set (if possible) from cycle_p.h, so
guarding cycle_p.h's inclusion with HAVE_TICK_COUNTER ensures it will never be
set.

Change-Id: I6313d0a2efd47c89522623e8e7b3f505489ded90
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoRemove mention of Trolltech in installation path.
Jason McDonald [Tue, 20 Dec 2011 06:44:19 +0000 (16:44 +1000)]
Remove mention of Trolltech in installation path.

Task-number: QTBUG-19653

Change-Id: Ic92e0bb4980af53568efe77ebc72e048ee5a32d7
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMerge QReadWriteLock constructor overloads per Qt 5 comment.
Robin Burchell [Tue, 20 Dec 2011 17:28:49 +0000 (18:28 +0100)]
Merge QReadWriteLock constructor overloads per Qt 5 comment.

Change-Id: I3b569b1240a0bc5b2589de353dbf62c175472448
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd missing connections.
Stephen Kelly [Mon, 19 Dec 2011 19:32:06 +0000 (20:32 +0100)]
Add missing connections.

Unit tested in next commit.

Change-Id: Iab37829f98ef8f2258a30aed60e95aa114379b7e
Reviewed-by: David Faure <faure@kde.org>
12 years agoRemove unused QPicture::detach_helper() private method.
Robin Burchell [Tue, 20 Dec 2011 11:30:04 +0000 (12:30 +0100)]
Remove unused QPicture::detach_helper() private method.

QPicture doesn't need this for quite a long time now, so get rid of it.

Change-Id: Ie575f32555deb130f7b27e11a7617fb2b3dc4e43
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRemove non-const QMovie::cacheMode().
Robin Burchell [Tue, 20 Dec 2011 11:36:16 +0000 (12:36 +0100)]
Remove non-const QMovie::cacheMode().

There's a const QMovie::cacheMode(), so having this makes no sense.

Change-Id: I0b6f20055fcbb28f3a21a8bc303f82543592c9c6
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agomake QString::fromLatin1 partially inline
Harald Fernengel [Tue, 20 Dec 2011 12:42:17 +0000 (13:42 +0100)]
make QString::fromLatin1 partially inline

This allows us to benefit from compile time optimizations when calling
strlen()

Change-Id: If6694117e613a012fce97f8664e6b43005d255de
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agofixqt4headers: Add QtCore to folders (for moved item models).
Friedemann Kleint [Tue, 20 Dec 2011 14:13:51 +0000 (15:13 +0100)]
fixqt4headers: Add QtCore to folders (for moved item models).

Change-Id: I71f805c618a888e654207fb29f68769f9d90db9b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRemove unused qInitResourceIO() method.
Robin Burchell [Tue, 20 Dec 2011 11:09:29 +0000 (12:09 +0100)]
Remove unused qInitResourceIO() method.

Was effectively removed in 4.x's 2e7d5def1fdabb5949fbffc629da500aa2bb78d7, but
couldn't be removed due to it being exported.

Change-Id: I5061f50deaeae7f53e8b688633e377095b4463c2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoRemove qt_image_id() and qt_image_colortable().
Robin Burchell [Tue, 20 Dec 2011 11:53:32 +0000 (12:53 +0100)]
Remove qt_image_id() and qt_image_colortable().

Both of these have been unused at least as far back as Qt 4.5 according to git
log -p.

Change-Id: I381024cb1621fbfdb806a62e1cc55ce13219ef17
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoAdapt from input context mousehandler to input panel in QLineEdit
Pekka Vuorela [Thu, 15 Dec 2011 12:42:07 +0000 (14:42 +0200)]
Adapt from input context mousehandler to input panel in QLineEdit

Change-Id: If14d0cc18188da1dbc8b152fa2fa9583ff03b3bc
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoRemove input context action support from editors
Pekka Vuorela [Thu, 15 Dec 2011 13:19:35 +0000 (15:19 +0200)]
Remove input context action support from editors

Relying on obsolete QInputContext API.

Change-Id: I954ccf57204cbb24ff5cec622384fa3b9932a079
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoRemove QInputContext based test from QGraphicsItem tests
Pekka Vuorela [Thu, 15 Dec 2011 14:06:27 +0000 (16:06 +0200)]
Remove QInputContext based test from QGraphicsItem tests

Was basically checking that a method call is a method call and
QApplication::setInputContext() sets the input context.

Change-Id: Ia8723fe245f2480d503f0140f61078dc074161fc
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoRemoved test for obsolete QInputContext
Pekka Vuorela [Thu, 15 Dec 2011 15:00:53 +0000 (17:00 +0200)]
Removed test for obsolete QInputContext

Change-Id: Idb3b909934434f8f55eb6e94aa814840ab628856
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoAdapt from QInputContext interface to QInputPanel
Pekka Vuorela [Thu, 15 Dec 2011 13:11:55 +0000 (15:11 +0200)]
Adapt from QInputContext interface to QInputPanel

Change-Id: I4143c3b516e7b0e46c706b8a6560bca9d8951572
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoAdd destructor to QPlatformFontDatabase.
Frederik Gladhorn [Thu, 15 Dec 2011 12:51:29 +0000 (13:51 +0100)]
Add destructor to QPlatformFontDatabase.

Virtual functions deserve a virtual dtor.

Change-Id: I71b7ae3b7fb0aa1553a37a90dce6270740d49e32
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoRevert "Revert "Add QObject::objectNameChanged(con... signal""
Alan Alpert [Tue, 20 Dec 2011 07:23:31 +0000 (17:23 +1000)]
Revert "Revert "Add QObject::objectNameChanged(con... signal""

This reverts commit 9b17557f3bbd5135651bcedf9f10e61d7e078ae2.

Justification: Temporary commit, see JIRA task.
Task-number: QTBUG-22985
Change-Id: I3df9eb5fdbdc133349dca5e192dcfcc9e758626c
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoBetter error reporting in case of connection failure.
Olivier Goffart [Mon, 19 Dec 2011 12:10:40 +0000 (13:10 +0100)]
Better error reporting in case of connection failure.

Use Q_STATIC_ASSERT_X give a better error message.
If C++11 is used, you get the string in the error.
Else, clicking on the QStaticFailure error still shows you the
string in the qobject.h source code)

And report better failure if the return types do not match.
(Without the static assert, you would still have a compilation error,
but in an unrelated place, with no reference to the actual connect()
call. The error was thrown from the virtual call
QSlotObject::call, without saying where it was instantiated)

Previously the error was relying on the existence of a type inside
CheckCompatibleArguments, but the Q_STATIC_ASSERT requires a bool
(hence the introduction of CheckCompatibleArguments::value)

There also was a typo in the return value of
AreArgumentsCompatible::dummy that made that code not work, and that
error not be reported.
(Instead, the error was reported when QObjectSlot::call is instantiated)

Specialization of AreArgumentsCompatible for the void type have been
added because if the return value of a signal or slot is void, the
connection should work.

Change-Id: I5a93ec787ce2a4b94a26630ca31d5001cd294e4d
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoRetire QTest::pixmapsAreEqual().
Jason McDonald [Mon, 19 Dec 2011 05:22:51 +0000 (15:22 +1000)]
Retire QTest::pixmapsAreEqual().

QTest::pixmapsAreEqual() was left in the Qt4 API for compatibility with
some old tests written for Qt3.  QCOMPARE() is the preferred way to
compare QPixmaps and provides superior diagnostic output when a
comparison fails.

This commit removes QTest::pixmapsAreEqual() from the testlib API and
replaces the last few remaining calls with QCOMPARE.

Change-Id: I051c0e7d3bda072855fcd262d82e8e540619233b
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoRemove declaration which is exported from QtGui.
Stephen Kelly [Fri, 16 Dec 2011 23:44:58 +0000 (00:44 +0100)]
Remove declaration which is exported from QtGui.

Fixes static build.

Change-Id: I6f82ded7bf6cb3b72b0ef987e781c7e8f9ed932b
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoFix QDir::removeRecursively so it doesn't follow symlinks to directories.
David Faure [Mon, 19 Dec 2011 19:44:45 +0000 (20:44 +0100)]
Fix QDir::removeRecursively so it doesn't follow symlinks to directories.

Critical bug... Good thing I had backups of my $HOME.

Change-Id: I43b3a80786c946b0aec797036c1164d436d521f8
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoFix QNetworkReply test cases that use the MiniHttpServer on windows
Shane Kearns [Mon, 19 Dec 2011 16:52:59 +0000 (16:52 +0000)]
Fix QNetworkReply test cases that use the MiniHttpServer on windows

The "happy eyeballs" connection code means that IPv4 and IPv6 connections
are both attempted for a http request.
For a normal http server, this is no problem, but the MiniHttpServer in
the test code is very simplistic and cannot cope with more than one
client connected at the same time.
On windows this causes all these tests to fail with timeouts.
Changed the MiniHttpServer to listen on IPv4 only instead of Any address.

Change-Id: I81e249997d894d266001da474a351b1f5642599e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix regression in user-agent setting of http proxy in a QNetworkRequest
Shane Kearns [Mon, 19 Dec 2011 16:49:07 +0000 (16:49 +0000)]
Fix regression in user-agent setting of http proxy in a QNetworkRequest

Modifying the proxy causes a detach(), so the socket is still using
the unmodified proxy.
Changed this to setProxy() the modified one back to the socket.

Test case tst_QNetworkReply::httpProxyCommands()

Change-Id: I448c2f2ab43ce8d78bc6edb8261599bf67372676
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoUpdate the touchscreen plug-in.
Laszlo Agocs [Sat, 17 Dec 2011 19:15:50 +0000 (21:15 +0200)]
Update the touchscreen plug-in.

Now works with bcm5974: Added manual contact tracking for drivers that
do not report a tracking id and fixed abs limit querying to use
ABS_MT_* instead of ABS_*.

Fixed reported area: The incoming point was the top-left point instead
of the center which was incorrect.

Added pressure support.

Tracking of event type has been removed as handleTouchEvent no longer
needs it.

Broken debug prints have been removed.

Changed udev auto-detection to pick only /dev/input/event*.

Fixed multiple released state reports with some drivers.

Name and capabilities are now set properly for the QTouchDevice.

Change-Id: I8f026c9a14465bfb6d567f4dcf36c5c03f843868
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoDo not call QueuedConnection slot on partialy destroyed object
Olivier Goffart [Thu, 15 Dec 2011 06:24:49 +0000 (07:24 +0100)]
Do not call QueuedConnection slot on partialy destroyed object

This is a regression introduced in Qt 4.8
When QApplication::processEvents is called from a destructor, it is
possible that pending events would still be called on the already
destroyed subclass.
Prevent that by using the same pattern as in QMetaObject::activate

Change-Id: Ida50db07ae089264402dafcde7a41a066479d08b
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoWindows: Remove Window from list before calling DestroyWindow.
Friedemann Kleint [Mon, 19 Dec 2011 11:05:59 +0000 (12:05 +0100)]
Windows: Remove Window from list before calling DestroyWindow.

Change-Id: Ifef99d9e4e46f0450cecf8ecba18ce79ebec3e8d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQ_STATIC_ASSERT: fix C style cast
Olivier Goffart [Thu, 15 Dec 2011 11:39:40 +0000 (12:39 +0100)]
Q_STATIC_ASSERT: fix C style cast

Else tst_moc::oldStyleCasts will fail if one add STATIC_ASSERT in
some headers included by moc generated files

Change-Id: I29ae64c14f10c889137fde36bb14c8ce047d5244
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoAccessibility: childAt returns interface
Frederik Gladhorn [Tue, 22 Nov 2011 17:08:05 +0000 (18:08 +0100)]
Accessibility: childAt returns interface

childAt used to return an integer.
Return an interface instead.

Not requiring a direct child to be returned allows optimizing
by bypassing iterating through the hierarchy of accessibles.
For QtQuick this is the only sensible way of implementing this.

The bridges are still responsible for finding the top-most element.

The default implementation in QAccessibleObject is sufficient
to return direct children. The implementation in
QAccessibleApplication is therfore no longer needed.

Change-Id: Id7100dd5bcc3a98de516a7f4a12eaaa41cb46d26
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoChange a slot into a virtual method.
Stephen Kelly [Thu, 15 Dec 2011 16:43:48 +0000 (17:43 +0100)]
Change a slot into a virtual method.

Implements a BiC Qt5 TODO.

Change-Id: Ie7dc32d954335019166dbd78d8b01ef79e2ad5c2
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove plugin related variables from the CMake files.
Stephen Kelly [Sat, 17 Dec 2011 10:42:11 +0000 (11:42 +0100)]
Remove plugin related variables from the CMake files.

It doesn't currently have any effect and needs to be re-thought
anyway.

Change-Id: I6e620ca5b341264bbf5279a19e8f25af8fa7d396
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoInclude the extras files after defining the target.
Stephen Kelly [Fri, 16 Dec 2011 23:46:11 +0000 (00:46 +0100)]
Include the extras files after defining the target.

Allows the extras file to contain references to the target.

Change-Id: I47332c4efcb7ba0132509a41fa3040531cd1c81f
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMake QMetaTypeInterface POD.
Jędrzej Nowacki [Tue, 13 Dec 2011 15:12:32 +0000 (16:12 +0100)]
Make QMetaTypeInterface POD.

QMetaTypeInterface has to be POD because it is constructed in a static
array. Constructors in POD types are not allowed so we will use a macro
instead.

Change-Id: Iab9ae776dfe4dcd7148558f02d6181c5917aa5c3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoEnable option to see filename extension in Mac save dialog
Chris Meyer [Sat, 17 Dec 2011 00:14:43 +0000 (16:14 -0800)]
Enable option to see filename extension in Mac save dialog

Many Mac OS users expect to have the option to see the file extension
of the file being saved in the save dialog. This patch enables that
option.

Change-Id: I7713bcef16b6f43135b382c7107f306009c7a0a1
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoAdd check to make sure qApp exists before using
Chris Meyer [Sat, 17 Dec 2011 00:41:59 +0000 (16:41 -0800)]
Add check to make sure qApp exists before using

Check for qApp before using. I'm aware that this is in commented
out code right now; but I wanted to make sure it doesn't
accidently slip back in without this check so I'm submitting
this patch. It caused problems at shutdown in 4.8.

Change-Id: I1c2358ab94f8b698e5519b3e0f988fb5cdd653fa
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoAvoid confusing method overloading in QTestTable.
Jason McDonald [Fri, 16 Dec 2011 04:01:12 +0000 (14:01 +1000)]
Avoid confusing method overloading in QTestTable.

The private class had two append() methods, one appending a column and
one appending a row.  Use more meaningful names instead of overloading
orthogonal operations.

Change-Id: I97e0268d6cb289694557846f244fe770cf980aaf
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFix fvisibility.test for "QMAKE_CXX = ccache g++"
David Faure [Tue, 13 Dec 2011 16:24:54 +0000 (17:24 +0100)]
Fix fvisibility.test for "QMAKE_CXX = ccache g++"

Testcase: adding this line at the end of mkspecs/linux-g++-64/qmake.conf
   QMAKE_CXX = ccache g++

Result:
  fvisibility.test: line 28: ccache g++: command not found
  Symbol visibility control disabled.

Result after fix:
  Symbol visibility control enabled.

Change-Id: I4049264a38a43e1bee3cb823d53836f0689f0b53
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoRemove note about Maemo5-reserved enum values, and renumber appropriately.
Robin Burchell [Thu, 15 Dec 2011 09:41:22 +0000 (10:41 +0100)]
Remove note about Maemo5-reserved enum values, and renumber appropriately.

With the ABI/API break, we can afford to do this.

Change-Id: Iaf318a56d572679322fde0448556eaa4242842d1
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoRemove widget attribute orientation values from Qt:: enum.
Robin Burchell [Thu, 15 Dec 2011 09:18:37 +0000 (10:18 +0100)]
Remove widget attribute orientation values from Qt:: enum.

These were only actually implemented on Symbian, thus, they aren't too useful,
apart from confusing developers when they don't work.

Removed per the discussion on:
http://lists.qt-project.org/pipermail/development/2011-December/000860.html

Change-Id: Id097cb392a3d964364adbe51a72a22927b9c382c
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQSortFilterProxyModel: Fix warnings about unused variables.
Friedemann Kleint [Wed, 14 Dec 2011 15:03:44 +0000 (16:03 +0100)]
QSortFilterProxyModel: Fix warnings about unused variables.

Introduced by 4ebceaba394e54a4f43578e46839e3057e7e802d.

Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Change-Id: I81985c4121db5f6abd832f64ef412646daec6259
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>