profile/ivi/qtbase.git
12 years agoImproved failure messages from tst_qlibrary
Rohan McGovern [Thu, 24 Nov 2011 05:01:49 +0000 (15:01 +1000)]
Improved failure messages from tst_qlibrary

Use QVERIFY2 to include errorString() in the failure message.

Change-Id: Iecb4e7694c3d71bfb786908a6a6c26b187d60c8f
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoFix sanity check of network test server
Jason McDonald [Fri, 25 Nov 2011 07:04:12 +0000 (17:04 +1000)]
Fix sanity check of network test server

Some of Qt's autotests depend on access to a test server.  For each test
that used the test server, tests/auto/network-settings.h created a
global object to verify at startup that host lookups to the test server
will succeed (and abort the test otherwise).

There are two problems with that approach:

First, the sanity check happens before main(), and thus before the test
framework has started logging test results.  This means that if the
sanity check aborts the test, the failure message will not be visible in
the test output if logging to a file or will cause the output to be
malformed if logging to the console in XML format.

Second, since Qt 4.7, the host lookup uses a class that connects to the
QCoreApplication instance, which doesn't exist before main(), and this
caused all tests that included network-settings.h to output an error
message from QObject::connect() at the beginning of the test.

Both of these problems are solved by removing the global object from
network-settings.h and instead performing the sanity check in the
initTestCase() function of each test.

Task-number: QTBUG-22876
Change-Id: Id49c1826906327bf571686cc11527f0265e5af44
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoCorrect usage of network-settings.h.
Jason McDonald [Mon, 28 Nov 2011 02:02:52 +0000 (12:02 +1000)]
Correct usage of network-settings.h.

Four of the modified files only use functions from network-settings.h
on Windows, and the other three files don't use anything from that
header.

Change-Id: Ifa4b0319d14367735b859e538921fa0eeeccce1a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFixed QUnifiedTimer cleanup.
Kim Motoyoshi Kalland [Thu, 24 Nov 2011 17:09:04 +0000 (18:09 +0100)]
Fixed QUnifiedTimer cleanup.

When destroying QUnifiedTimer's instance, its default animation
driver is destroyed as well. This patch avoids creating another
QUnifiedTimer instance when the animation driver's destructor
calls QUnifiedTimer::instance().

Change-Id: I9cf254a9d04d79447baa8f27625c3890c3645f08
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoFix style. 4 spaces not 2.
Stephen Kelly [Thu, 24 Nov 2011 22:26:17 +0000 (23:26 +0100)]
Fix style. 4 spaces not 2.

Change-Id: I0a595557ad0cdff6fbb43b6812c57525dbd29526
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoAdd support to moc for registering non-local enums via Q_ENUMS.
Glenn Watson [Fri, 25 Nov 2011 01:58:37 +0000 (11:58 +1000)]
Add support to moc for registering non-local enums via Q_ENUMS.

When using the Q_ENUMS macro to register an enumeration in a class
with moc, it's now possible to provide a scoped enumeration that
exists in another class. This adds the enum class scope to
a metaobject's list of related classes stored in the extradata
field.

This allows the declarative code to handle non-local enums in
signal and slot functions that are exposed to QML.

Task-number: QTBUG-20639
Change-Id: I94f5292818095fda75762bd1508ba5c69de19503
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoUse Q_FOREACH in headers.
Stephen Kelly [Sat, 26 Nov 2011 17:07:03 +0000 (18:07 +0100)]
Use Q_FOREACH in headers.

Downstreams must be able to use QT_NO_KEYWORDS.

Change-Id: Ica75b348c1c9461750b5ae2426557ed8b9e2a8a1
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoTest QAtomicPointer<const T>
Olivier Goffart [Fri, 25 Nov 2011 10:06:57 +0000 (11:06 +0100)]
Test QAtomicPointer<const T>

Commit f4b6628083bf98ffa9169d8a8b890d84b6046867 fixed it on windows.
Now test it work within QAtomicPtr

Change-Id: Ibf5c31a133d6d544a78ce626fac9085b73c97fd5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoSSL certificate blacklist: reformat serial numbers to hexadecimal
Peter Hartmann [Wed, 23 Nov 2011 13:40:26 +0000 (14:40 +0100)]
SSL certificate blacklist: reformat serial numbers to hexadecimal

Since recently QSslCertificate::serialNumber() always returns the
hexadecimal format, so we need to adapt to that when checking the
serial numbers for the blacklisted certificates.

Change-Id: I43bdb1be77faad7ad79a835c896fc39477452e75
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agoIntroduce QWindowSystemInterface::handleSynchronousCloseEvent
Gunnar Sletta [Fri, 25 Nov 2011 13:02:12 +0000 (14:02 +0100)]
Introduce QWindowSystemInterface::handleSynchronousCloseEvent

And use it from the Cocoa backend.

In general, for threaded GL rendering to work, any function that
affect the surface must be synchronous, so the implementor (such as
QQuickCanvas) can pick it up and block until the GL context has
released the surface. Otherwise, we will crash.

Change-Id: Id8484dac7452fe96fa80ade4ea321145f32124b4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoFixed memory leak in windowing system event handling
Gunnar Sletta [Fri, 25 Nov 2011 12:28:12 +0000 (13:28 +0100)]
Fixed memory leak in windowing system event handling

processWindowSystemEvent does not delete the event, so
allocate it on the stack instead.

Change-Id: Iffda940ffc86ef1fabfbf101e08956fa07c49689
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoSSL: fix build when compiled with -openssl-linked
Peter Hartmann [Thu, 24 Nov 2011 12:15:18 +0000 (13:15 +0100)]
SSL: fix build when compiled with -openssl-linked

... and only resolve the functions when the methods are available.
SSL 2 functionality is not always available in OpenSSL anymore.

Change-Id: Ia3178685b26c67ac55447476789e06710b596181
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoMake QBasicAtomicPointer work with T=const (int|any type) on Windows
Jan-Arve Saether [Fri, 25 Nov 2011 12:28:40 +0000 (13:28 +0100)]
Make QBasicAtomicPointer work with T=const (int|any type) on Windows

Change-Id: I2301ea3fa399bcc5d6d8c6b487a3fb78db19c67a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoBe specific about what part of the model is being re-layouted.
Stephen Kelly [Thu, 24 Nov 2011 20:21:28 +0000 (21:21 +0100)]
Be specific about what part of the model is being re-layouted.

Change-Id: I6b6fe98929543447f945a335c33960823c0d1a4a
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove the QApplicationBase define
Bradley T. Hughes [Mon, 21 Nov 2011 13:10:37 +0000 (14:10 +0100)]
Remove the QApplicationBase define

Use QGuiApplication instead, since QApplicationBase was unconditionally
defined to QGuiApplication anyway.

Change-Id: I9d0c96835693e5ca6218c330b2d243579a5b0b38
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoChange default implementation of window() to just return 0
Jan-Arve Saether [Thu, 24 Nov 2011 14:33:29 +0000 (15:33 +0100)]
Change default implementation of window() to just return 0

Instead move the traversal up to the ancestors to the bridge.
This simplifies the default implementation to just return 0

Change-Id: Ic3ec60851f378587f4a23363aec2039d0e8a08a1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoQMetaTypeInterface: Fix warning about multiple default Constructors
Friedemann Kleint [Fri, 25 Nov 2011 08:54:18 +0000 (09:54 +0100)]
QMetaTypeInterface: Fix warning about multiple default Constructors

Change-Id: Ifc806d63a743c68ce830f44f14dd1434bbdbc40e
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoMake cocoa opengl backend threadsafe.
Gunnar Sletta [Thu, 24 Nov 2011 15:38:40 +0000 (16:38 +0100)]
Make cocoa opengl backend threadsafe.

The current implementation on Mac OS X called update() inside
the cocoa plugin from the GUI thread, which breaks when trying
to use the GL context from another thread and the window gets
resized. We now only call it from makeCurrent()

Change-Id: I025aad3a3b140e85e729816bf3b68827337cc80d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoCleanup corelib autotests
Jason McDonald [Thu, 24 Nov 2011 07:34:51 +0000 (17:34 +1000)]
Cleanup corelib autotests

Bug trackers come and go, so using bug identifiers in function and test
case names will ensure that those names eventually become meaningless.
It is better to choose a meaningful name and provide explanatory
comments where appropriate.

Change-Id: I67c27782ef21b5d4eaab4854079a043c8ef6957b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoMore tests for the new connection syntax.
Olivier Goffart [Wed, 9 Nov 2011 11:32:10 +0000 (12:32 +0100)]
More tests for the new connection syntax.

Those tests are the one from Thiago's C++0X implementation
The rvalue references ones are commented out because moc do not
understand them yet
But supporting them may come later.

Change-Id: I6b0720e7f2992be9f7e34770960fa58fa456a54b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd support for QueuedConnection when connecting using the new syntax
Olivier Goffart [Wed, 23 Nov 2011 14:03:04 +0000 (15:03 +0100)]
Add support for QueuedConnection when connecting using the new syntax

QMetaCallEvent now can handle a pointer to QSlotObjectBase

Change-Id: I94da1e68ce9bb1fd96a9ae013a389552eb625faa
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoNew QObject connection syntax
Olivier Goffart [Wed, 23 Nov 2011 14:06:30 +0000 (15:06 +0100)]
New QObject connection syntax

In addition to the old connection syntax, you can now connect using function pointers.

    connect(sender, &Sender::valueChanged,
            receiver, &Receiver::updateValue );

You can connect also to functor or C++11 lambdas

The connections are now type safe (no more problems with namespaces
or typedefs).  Implicit type conversion is also supported.

The new syntax forces us to change the meaning of signal form
protected to public, in order to be able to access the signal's
address everywhere

The way it works is by introducing new overload of QObject::connect
that take function pointer as parametter. Those new overload are template
function, that are implemented inline. The actual implementation is
in QObject::connectImpl which take a QObject::QSlotObject* as parametter
for the slot.  That slot object contains a virtual function which call
the slot which has to be implemented in the header as it depends on the
template parametter.  So the internals of QObjectPrivate::Connection
will store this QObjectSlot* in order to be able to make the call.

You can read a full description here:
http://developer.qt.nokia.com/wiki/New_Signal_Slot_Syntax

History of commits before it was imported on gerrit:
https://qt.gitorious.org/~ogoffart/qt/ogoffarts-qtbase/commits/qobject_connect_ptr

Thread on the mailing list:
http://lists.qt.nokia.com/pipermail/qt5-feedback/2011-August/000796.html
http://lists.qt.nokia.com/pipermail/qt5-feedback/2011-September/001248.html
(The discussions on the mailing list were about trying to find a
solution that do not need making signals public, but no user friendly
solution was found)

Note: support for QueuedConnection, and the symetric QObject::disconnect is
added in another commit.
Qt::UniqueConnection is not supported yet in the new overload.

Change-Id: I67d08436b0720e7f2992be9f7e34770960fa58fa
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoChange the return value of QObject::connect
Olivier Goffart [Fri, 11 Nov 2011 16:01:06 +0000 (17:01 +0100)]
Change the return value of QObject::connect

From a bool to a handle to to connection.

Also added a new overload of disconnect that disconnect a handle

This is required because with the new syntax taking lambda or functors,
it is the only way to disconnect a connection (as it is impossible to
compare functors)

The new return value is QMetaObject::Connection, it is a wrapper around
the internal QObjectPrivate::Connection.
QObjectPrivate::Connection is now reference counted.

tst_qglobal.cpp:
   This test set up an internal callback, and the callback do not set any
   proper connection handle (and tbh,  it would be hard for it to do so).
   So the returned QMetaObject::Connection is invalid, and ok is false
   (Internal callbacks are only used for jambi and should probably be removed)

Change-Id: I111626fb4f47efc4db5e2ea5bff9da15f08fea7b
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoImproved usage of TESTDATA with relative paths beginning with ".."
Rohan McGovern [Thu, 24 Nov 2011 00:31:24 +0000 (10:31 +1000)]
Improved usage of TESTDATA with relative paths beginning with ".."

Support the common construct of a top-level test directory having
a test/test.pro with:

  TARGET = ../tst_sometest
  TESTDATA = ../data1.txt ../data2.txt

Prior to this change, the ".." in TESTDATA would cause the data to
break out of the test's installation directory.

Change-Id: I22860bf3a148f278b3f4e18b476fd151f7f0f775
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoFix navigate returning invalid pointer.
Frederik Gladhorn [Thu, 24 Nov 2011 13:01:57 +0000 (14:01 +0100)]
Fix navigate returning invalid pointer.

Navigate would return a random pointer here when asked for example for
not handled relations (label etc).

Change-Id: Iec4de94e6f76f14e89b43fe7327d98878aad58ee
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoRemoving unnecessary hidden property "_q_user-agent".
Jonas M. Gastal [Thu, 24 Nov 2011 15:34:04 +0000 (13:34 -0200)]
Removing unnecessary hidden property "_q_user-agent".

This property is no longer necessary because we can now set the user
agent directly on the proxy.

Task-number: QTBUG-17223
Change-Id: I27cb126dd401f02525290d2317650f55cae9f4ef
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoAdds support for headers in QNetworkProxy.
Jonas M. Gastal [Wed, 23 Nov 2011 17:11:03 +0000 (15:11 -0200)]
Adds support for headers in QNetworkProxy.

The API is the same that is present on QNetworkRequest class. Since
these are HTTP headers, this only affects proxies of type HttpProxy and
HttpCachingProxy.

This was created as a general solution to the problem pointed out in
QTBUG-19569(some proxies only accept request with specific User Agents).
In the same way that there are cases where setting the User Agent is
desired there might be reasons to set other headers, hence the support
for any header.

Change-Id: Ifd04f34d29eedb6c2a3f0b50708244996b12a123
Task: QTBUG-19569
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoAdd a parents parameter to layoutChange signals.
Stephen Kelly [Wed, 23 Nov 2011 19:50:55 +0000 (20:50 +0100)]
Add a parents parameter to layoutChange signals.

This allows for more focussed notification of what part of the
model has changed layout.

The slots in the proxy models can be more optimized later.

Change-Id: I1bd17465b4be6f8efdc107036db897c557fcb519
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoAdd a note in the QScreen documentation about logical vs physical DPI.
Samuel Rødal [Tue, 22 Nov 2011 09:53:40 +0000 (10:53 +0100)]
Add a note in the QScreen documentation about logical vs physical DPI.

Change-Id: I1d536711cbbc0ea8a21c6917e5e0066c1ad4ccae
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoMake v8 snapshots work in debug-and-release mode
Kent Hansen [Thu, 24 Nov 2011 07:01:08 +0000 (08:01 +0100)]
Make v8 snapshots work in debug-and-release mode

Debug snapshots and release snapshots aren't compatible. Both a
debug version and release version of the mkv8snapshot tool must be
built, and the corresponding executable selected when building v8.

Adopt the library naming convention for naming the mkv8snapshot
executable ("mkv8snapshot" in release, "mkv8snapshot_debug" in debug
on Mac, "mkv8snapshotd" in debug on Windows).

Change-Id: I7a94b09e7db7ed8bbaa293637c092a1d1d1dbaba
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoMove QScopedLoopLevelCounter to qthread_p.h
Bradley T. Hughes [Mon, 21 Nov 2011 14:28:57 +0000 (15:28 +0100)]
Move QScopedLoopLevelCounter to qthread_p.h

... and use it in QCoreApplication::notifyInterna() instead of
"reinventing" the wheel there. The constructor and destructor for
QScopedLoopLevelCounter are inline, so the class does not need to be
exported.

Change-Id: I7af5a4ef0987f277bcc50c1057f3c74152f3d79d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoemit width/height changes for the new rect
Gunnar Sletta [Thu, 24 Nov 2011 10:53:58 +0000 (11:53 +0100)]
emit width/height changes for the new rect

Change-Id: I789a45bc60aaa949d18e9fb72a186a259548ec1d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoDon't forward declare types form openssl in public headers
Lars Knoll [Thu, 24 Nov 2011 08:43:36 +0000 (09:43 +0100)]
Don't forward declare types form openssl in public headers

There's no real reason for the typedef here, QtNetwork
will compile without it and it might conflict with
openssl.

Change-Id: Id352ccc98d84ca9ee9ea3c7b4a942382882173f1
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agodirectfb: Use the QPlatformWindow in the DirectFB Backingstore
Holger Hans Peter Freyther [Mon, 21 Nov 2011 12:50:48 +0000 (13:50 +0100)]
directfb: Use the QPlatformWindow in the DirectFB Backingstore

Remove usage of QDirectFbConvenience::dfbDisplayLayer in the
QDirectFbBackingStore code and resolve the IDirectFBWindow through
the QPlatformWindow.

Change-Id: Ia7db8dedc91096648bc9de029d034002ba0d6a03
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Get the IDirectFBDisplayLayer through the QPlatformScreen
Holger Hans Peter Freyther [Mon, 21 Nov 2011 13:59:26 +0000 (14:59 +0100)]
directfb: Get the IDirectFBDisplayLayer through the QPlatformScreen

Change-Id: I1e8bacc2a5c39065f1c0667cda900730c5670066
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Fix the typo in the parameter
Holger Hans Peter Freyther [Mon, 21 Nov 2011 13:17:01 +0000 (14:17 +0100)]
directfb: Fix the typo in the parameter

Change-Id: I3d373872c533bc4b6f4f010f5cce4dbb41dbb561
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Remove dfbDisplayLayer from QDirectFbInput
Holger Hans Peter Freyther [Mon, 21 Nov 2011 13:15:03 +0000 (14:15 +0100)]
directfb: Remove dfbDisplayLayer from QDirectFbInput

Change-Id: I2ae61c40c28b337448077cff5643a007b54a3d71
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Pass the IDirectFBWindow to the QDirectFbInput methods
Holger Hans Peter Freyther [Mon, 21 Nov 2011 13:07:11 +0000 (14:07 +0100)]
directfb: Pass the IDirectFBWindow to the QDirectFbInput methods

No need to go from IDirectFBWindow -> WindowID -> IDirectFBWindow
to attach the event buffer for the event system.

Change-Id: Ia5f7c20d06e8e1da5142f1bd99ca69906107adba
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Use DirectFBErrorFatal for errors we don't handle well
Holger Hans Peter Freyther [Mon, 21 Nov 2011 12:37:59 +0000 (13:37 +0100)]
directfb: Use DirectFBErrorFatal for errors we don't handle well

In case we fail to initialize DirectFB, use the DirectFBErrorFatal
to quit as there is no way we can recover from this error and the
QPA backend has already been selected.

Change-Id: I8001bf32d0a14ba21c2ec13121748a6384b87c2b
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoFix HarfBuzz Thai character SARA AM handling
Jiang Jiang [Wed, 16 Nov 2011 14:27:28 +0000 (15:27 +0100)]
Fix HarfBuzz Thai character SARA AM handling

This patch is contributed by Thanomsub Noppaburana from libthai. It
added a special thai shaping function to handle SARA AM character
for fonts without OpenType rules to support it, like Nokia Pure Text
AS.

With modification to logClusters assignment to make sure that
QTextLine::glyphRuns(int from, int length) returns correct glyphs.

Task-number: QTBUG-21206
Change-Id: I5a78ee1ab2b4c874c7d0df17d4ee6d264ed5a790
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agosyncqt: Don't generate deprecated forwarding headers anymore
Tor Arne Vestbø [Tue, 22 Nov 2011 20:41:06 +0000 (21:41 +0100)]
syncqt: Don't generate deprecated forwarding headers anymore

The forwarding headers in 'include/Qt' were deprectated in Qt 4. This is
Qt 5, so time to remove them.

Change-Id: I4bf3797475b91f58af1761ed4165b552613299b3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoImprove QVector autotest
Jason McDonald [Thu, 24 Nov 2011 06:09:21 +0000 (16:09 +1000)]
Improve QVector autotest

Ensure that data row names are unique.

Change-Id: Ia6cf6e440d631928ae3352d7305c6cf2ee5b2a0c
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agodirectfb: Access the screen layer through QWindow::screen()
Holger Hans Peter Freyther [Fri, 18 Nov 2011 20:09:03 +0000 (21:09 +0100)]
directfb: Access the screen layer through QWindow::screen()

Instead of assuming which layer was assigned to Qt, resolve the to
be used layer via QWindow::screen()->handle(). Add a method to the
DirectFB QPlatformScreen to provide a pointer to the IDirectFBDisplayLayer

Change-Id: Iaea9466ca84daff752a4932deafbe38f48123715
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Move QDirectFbScreen into a separate file
Holger Hans Peter Freyther [Fri, 18 Nov 2011 13:30:00 +0000 (21:30 +0800)]
directfb: Move QDirectFbScreen into a separate file

The screen handling will get a bit more complex due the integration
of different ways to do OpenGL. Move to a new file.

Change-Id: Ibe3e397d13da1b270ec4afaf046d28be50e976f9
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoOnly use QVERIFY in test functions.
Jason McDonald [Thu, 24 Nov 2011 03:46:46 +0000 (13:46 +1000)]
Only use QVERIFY in test functions.

The modified test was using QVERIFY in the destructor of a local class,
but QVERIFY should only be used directly in a test function.  This
commit changes the local class to record the result of the test and
verifies that result in the test function.

Change-Id: Ie68ac6aa880368c961ebfa67cd452f0fbf26db89
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd missing indentation to QFuture test.
Jason McDonald [Thu, 24 Nov 2011 03:15:12 +0000 (13:15 +1000)]
Add missing indentation to QFuture test.

Change-Id: Iaceaa79237d5ef6e81d1d16dc5e3fd3d97631f3a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFixed regression in tst_qscreen.
Samuel Rødal [Tue, 22 Nov 2011 16:16:11 +0000 (17:16 +0100)]
Fixed regression in tst_qscreen.

The ScreenOrientation enum was changed so that the values are power of
twos, angleBetween() needed to be fixed in order to reflect this.

Task-number: QTBUG-22554
Change-Id: Ia45dd6643b40b14204abf967b00c0d04834736a3
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix stack overwrite in QDBusDemarshaller
Sami Rosendahl [Wed, 23 Nov 2011 08:03:26 +0000 (10:03 +0200)]
Fix stack overwrite in QDBusDemarshaller

QDBusArgument extraction operators and QDBusDemarshaller that implements
the extraction do not check the type of the extracted value.
Helper function template qIterGet in qdbusdemarshaller.cpp that is used
for extracting basic data types only reserves space from the stack for
the expected type as specified by client.
If the actual type in the DBus parameter is larger stack will be
overwritten in the helper function by at most 7 bytes (expected one byte,
received dbus_uint_64_t of size 8 bytes).

The fix always reserves space for the largest basic type dbus_uint64_t
readable by dbus_message_iter_get_basic API.

See also http://dbus.freedesktop.org/doc/api/html/group__DBusMessage.html#ga41c23a05e552d0574d04

Task-number: QTBUG-22735
Change-Id: I9aa25b279852ac8acc40199a39910ea4002042d7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix QT_DEPRECATED_SINCE on windows.
Olivier Goffart [Wed, 23 Nov 2011 15:13:44 +0000 (16:13 +0100)]
Fix QT_DEPRECATED_SINCE on windows.

Apparently, MSVC preprocessor do not understand correctly the defined()
in that macro (used in another #if)

Change-Id: I9bd102eb4e0cbaa65bea48db786a45d861491ad7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoImprove docs for Accessibility.
Frederik Gladhorn [Tue, 22 Nov 2011 22:12:01 +0000 (23:12 +0100)]
Improve docs for Accessibility.

While still lacking, at least try to reflect reality a bit.

Change-Id: I8fcd0bd540806f3d1e314c60d854d2a90f66c14e
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoUpdate changelog - Accessibility
Frederik Gladhorn [Tue, 22 Nov 2011 13:33:15 +0000 (14:33 +0100)]
Update changelog - Accessibility

Change-Id: I03a2d8c53ebc84ebf7219bff751821e00fbfa170
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoRemove virtual child integers.
Frederik Gladhorn [Sat, 22 Oct 2011 20:38:14 +0000 (22:38 +0200)]
Remove virtual child integers.

This makes the accessibility apis much
simpler and less error prone.

Disable the itemviews implementation that is in complex widgets.
The itemviews will use the new code from itemviews.h/cpp everywhere now.

QToolBox was broken before, now at least it simply exposes all its children.
The children are the buttons (tabs of the toolbox) and their contents.

Change-Id: I45e218f49f02aebbd678ddfe29f94c2a112a2125
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoAccessible widgets: Fix warning.
Friedemann Kleint [Wed, 23 Nov 2011 09:22:21 +0000 (10:22 +0100)]
Accessible widgets: Fix warning.

Change-Id: Iaf9b112db86a4238ef24f3c6341c83ab0f9ba217
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
12 years agoDocument -system-sqlite configuration parameter
Honglei Zhang [Fri, 18 Nov 2011 09:29:53 +0000 (11:29 +0200)]
Document -system-sqlite configuration parameter

-system-sqlite should be used when system SQLite library should be
used instead of the one embedded in Qt. This information is added
to SQLite driver documentation.

Change-Id: Ie51cb0d7c4044b74a64192ad8a5c946e21ee0ed9
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoSQLite support only one statement at a time
Honglei Zhang [Fri, 18 Nov 2011 08:50:07 +0000 (10:50 +0200)]
SQLite support only one statement at a time

SQLite driver support only one statement at a time. This fix makes the
exec and prepare call failed if more than one statements are given.
This is bug fix for QTBUG-21884. Also the behaviour is documented in
the API specification.

Task-number: QTBUG-21884
Change-Id: If1e25a0dd9f9ee38961ef478fc7909f6b05e360a
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
12 years agoRemove misleading comment.
Jason McDonald [Wed, 23 Nov 2011 02:53:32 +0000 (12:53 +1000)]
Remove misleading comment.

In the QProcess test, QHostInfo is used as a quick and easy way to
create a background thread, and so is not (entirely) unnecessary.

Change-Id: I7204f113e7bc8a4b312d5a20f0a6ee076c56b35d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFixed typo in testcase.prf causing TESTDATA with multiple items to fail
Rohan McGovern [Wed, 23 Nov 2011 03:05:25 +0000 (13:05 +1000)]
Fixed typo in testcase.prf causing TESTDATA with multiple items to fail

This variable was renamed from `elem' to `file' at some point in
development, but the old name was left at one place.

Change-Id: I2cda42b02a753614176b466e507e8d8d9ed80a6e
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoAdded build system support for installing tests.
Rohan McGovern [Thu, 17 Nov 2011 05:39:19 +0000 (15:39 +1000)]
Added build system support for installing tests.

Tests will install under $$[QT_INSTALL_TESTS].

TESTDATA may be used to install additional testdata required by the
test.

The default install rule may be disabled by
CONFIG+=no_testcase_installs.

Change-Id: I204de60c8e844775906ffd016ca50bffbb414142
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoEnsure qmodule.pri is installed.
Rohan McGovern [Tue, 22 Nov 2011 06:58:30 +0000 (16:58 +1000)]
Ensure qmodule.pri is installed.

From the commit message of 0b2ce8520020a0db9b5b5feb5e72f64518d3eea5 and
the code in qt_module.prf, it is apparently intended that qmodule.pri is
installed, but this was never implemented correctly.  Make sure we
install it.

This has gone unnoticed because it happens to be installed by accident
unless $$QT_SOURCE_TREE != $$QT_BUILD_TREE and
$$QT_BUILD_TREE != $$[QT_INSTALL_PREFIX] (i.e. a shadow build which is
not using -developer-build).

Change-Id: Iee861a7bb592ca43a61ad91f1ef6a7a5bd21aff8
Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoCode cleanup in QVariant and QMetaType.
Jędrzej Nowacki [Mon, 21 Nov 2011 13:08:52 +0000 (14:08 +0100)]
Code cleanup in QVariant and QMetaType.

QMetaTypeGuiHelper was generalized and renamed to QMetaTypeInterface.
From now all types will have common interface which can be used for
basic operations.

Change-Id: I50d67f4a8081fa0f75c9d530a8211593ec37bc55
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove explict debug message
Jiang Jiang [Tue, 22 Nov 2011 10:09:19 +0000 (11:09 +0100)]
Remove explict debug message

Change-Id: I8159651d4894bb828416cddb402c946bbd1a535e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agouclibc: fenv.h does not define the necessary things.
Holger Hans Peter Freyther [Tue, 15 Nov 2011 20:43:52 +0000 (21:43 +0100)]
uclibc: fenv.h does not define the necessary things.

libstdc++ provides the fenv.h found and for uclibc default toolchains
the bits/c++config.h has _GLIBCXX_HAVE_FENV_H undefined leading to
no import of the uclibc fenv.h

Change-Id: I53173b099f3d8791f527f1ccb60991de57cd19db
Filed: https://bugs.busybox.net/show_bug.cgi?id=4484
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
12 years agofixqt4headers.pl: Add --strip-module option.
Friedemann Kleint [Tue, 22 Nov 2011 11:20:04 +0000 (12:20 +0100)]
fixqt4headers.pl: Add --strip-module option.

- Add --strip-module option to strip the module name for portable
  code
- Use GetOpt::Long
- Streamline, remove need for rewinding the file
- Streamline output, just report affected classes and introduce
  --verbose for normal operation.

Change-Id: I8643a5f53d4ed8ce2ae44721164cbdba1aad8b46
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
12 years agoAdd V8 snapshot support
Kent Hansen [Fri, 18 Nov 2011 08:48:54 +0000 (09:48 +0100)]
Add V8 snapshot support

A V8 snapshot is a serialized representation of the JavaScript heap.
Using a snapshot can vastly speed up V8 initialization.

This commit introduces a new tool, mkv8snapshot. mkv8snapshot is
automatically invoked as part of building QtV8, and generates a .cpp
file which is compiled into the QtV8 library.

Because mkv8snapshot itself needs to initialize the V8 environment
the non-snapshot way (i.e., by evaluating thousands of lines of
JavaScript), it needs to build all of V8. This means that V8 is
effectively built twice when snapshots are enabled.

When cross-compiling, only host=i386 and target=arm is supported,
since that's the only relevant case for which V8 currently
supports a simulator. mkv8snapshot is built and run as a host tool
(using the simulator), and generates a snapshot that will be used
on the target.

Task-number: QTBUG-21152
Change-Id: I9270652f129505508f78db8b0a39fbf57dc8b86d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoAdd some properties to QWindow
Alan Alpert [Fri, 18 Nov 2011 10:47:05 +0000 (20:47 +1000)]
Add some properties to QWindow

x,y,width,height,visible and orientation
Includes slot setters and notify signals for maximal QML compatibility.

Change-Id: I124399093c00f8ad1485d4fbae816dfbe3027eff
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agouclibc: Make the oomsimulator compile with uclibc
Holger Hans Peter Freyther [Tue, 15 Nov 2011 21:07:05 +0000 (22:07 +0100)]
uclibc: Make the oomsimulator compile with uclibc

In the infinite wisdom uclibc defines __GLIBC__ but is not a
full drop-in replacement for the GLIBC. Check for !UCLIBC. Make sure
there is a disableHooks in case the GLIBC code is not compiled

Change-Id: I246d3ee7c1d3f48f7f6445daa01a4f001b9a3cb0
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
12 years agoRevert 3a0f5d04fce00812cddd44e54ef25f7ab7d9240d
Toby Tomkins [Tue, 22 Nov 2011 06:15:55 +0000 (16:15 +1000)]
Revert 3a0f5d04fce00812cddd44e54ef25f7ab7d9240d

The removal of plugin cache in qt5 (8ed47d961dc7e6f161030654d11cd330a542eadf)
means that only the original loading error (from QElfParser) is reported.
In Qt4 this was previously two different strings depending on if the library
had been previously cached.

Task-number: QTBUG-22834

Change-Id: I15a4adc7d0f8f23f16bb2aa8ba8b968db770f074
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove reset test from QTimeLine.
Jason McDonald [Mon, 21 Nov 2011 08:07:13 +0000 (18:07 +1000)]
Remove reset test from QTimeLine.

QTimeLine::reset() never made it into the public API. Instead
QTimeLine::start() always starts from the beginning.

Remove the commented-out test for reset() and related remnants in other
tests.  Restarting a timeline using QTimeLine::start() is already tested
by the restart() test function.

Change-Id: Ia5c767ddae0781d645a407fbea76e80672895aab
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd test for QTimeLine::toggleDirection()
Jason McDonald [Mon, 21 Nov 2011 07:49:07 +0000 (17:49 +1000)]
Add test for QTimeLine::toggleDirection()

Before QTimeLine made it into the public API, the toggle() function
became toggleDirection() and isReversed() became the more generic
direction().  This commit uncomments the old toggle() test and uses the
final function names.

Change-Id: Ie3379f32ff0c78436f33c2733232d795ca88152b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRestore commented-out data in QString test.
Jason McDonald [Mon, 21 Nov 2011 07:26:08 +0000 (17:26 +1000)]
Restore commented-out data in QString test.

The restored test data was commented-out before the tests were imported
into the Qt repository in 2006, but appears to be valid and passes on
Linux.

Change-Id: I75795bf2b0b45fc2331bca6ac8d89f57cf12ed3d
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove obsolete data from QStringRef test.
Jason McDonald [Mon, 21 Nov 2011 05:48:52 +0000 (15:48 +1000)]
Remove obsolete data from QStringRef test.

The removed data was copied from the QString test (from which it has
since been removed) and wasn't valid, as comments indicated.

Change-Id: I44f066e41d28333326ad97f652c0a6813a173f15
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove obsolete code from QRegExp test.
Jason McDonald [Mon, 21 Nov 2011 05:38:12 +0000 (15:38 +1000)]
Remove obsolete code from QRegExp test.

The removed test functions were all empty and have been commented-out
since the tests were imported into the Qt repository in 2006.

Change-Id: I4ce86440aed355352a26ebefeafc95eeda1efbdd
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove handlesInputPanelVisibility() deprecation mechanism
Joona Petrell [Mon, 21 Nov 2011 14:17:50 +0000 (16:17 +0200)]
Remove handlesInputPanelVisibility() deprecation mechanism

Task-number: QTBUG-21964
Change-Id: I508ba690c90369d31ca33390d3001064857fb62e
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoSupport better committing preedit in QLineController
Pekka Vuorela [Tue, 15 Nov 2011 16:05:27 +0000 (18:05 +0200)]
Support better committing preedit in QLineController

Similar as 7851568c65e0560056c6fa541039543d43a63e20 for
QWidgetLineController

Change-Id: I7c1a1dc22e9b73515a5a72093866ac747a80896f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoSupport input method tentative commit string in QLineControl
Pekka Vuorela [Tue, 15 Nov 2011 13:09:55 +0000 (15:09 +0200)]
Support input method tentative commit string in QLineControl

Implements similar behavior as 8bd40fef0733a4796a308b3bc137a05296e142c4
did for QLineEdit.

Change-Id: I55de1f9a6703aca629f2e84398e481636c96eeca
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix QLineControl work properly with input method selection event
Pekka Vuorela [Tue, 15 Nov 2011 11:17:19 +0000 (13:17 +0200)]
Fix QLineControl work properly with input method selection event

Same as what 1189ebff320b8dd03637947c92df6e3ef84a3c06 did for
QWidgetLineControl.

Change-Id: I0991c2a2af126cfd7203829adc33bb4e6d45a7f2
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoAdd spaces for string concatenation to work around C++11 source incompatibility.
hjk [Mon, 21 Nov 2011 17:50:11 +0000 (18:50 +0100)]
Add spaces for string concatenation to work around C++11 source incompatibility.

Change-Id: I6acb7dca20d3bfcb24ea798c7ecd1a12464af5a6
Reviewed-by: QTBUG-22847
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoRemoved commented test data from QUrl test.
Jason McDonald [Fri, 18 Nov 2011 03:45:33 +0000 (13:45 +1000)]
Removed commented test data from QUrl test.

The removed test data is invalid for the toString() test function --
QUrl::toString() won't eliminate relative paths from URL's, you need to
call QUrl::resolved() to do that.  Add this test data to the test for
QUrl::resolved(), as the existing tests don't seem to cover the case of
a complete URL containing a relative path.

Change-Id: Idb0f4eac9cc75258a8e17f10fa95ddb75f01d470
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQNetworkProxy documentation: mention usage of "http_proxy" variable
Peter Hartmann [Mon, 21 Nov 2011 15:07:24 +0000 (16:07 +0100)]
QNetworkProxy documentation: mention usage of "http_proxy" variable

This is done on systems other than Windows or Mac.

Change-Id: I631ea350cb9bc123edc6df33b6f661afa8f0778b
Reviewed-by: Arvid Picciani <arvid.picciani@nokia.com>
12 years agoPass all key events through the shortcutmap
Lars Knoll [Thu, 13 Oct 2011 07:47:23 +0000 (09:47 +0200)]
Pass all key events through the shortcutmap

This has to happen in QGuiApp, not QApp.

Change-Id: If8a6e81df3ae9b601733d077cce57d2d21572f74
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoAccessibility: Clean up usage of navigate.
Frederik Gladhorn [Tue, 15 Nov 2011 17:32:55 +0000 (18:32 +0100)]
Accessibility: Clean up usage of navigate.

Prefer to use parent/child functions instead.

Change-Id: Ic92165b9439eb750c9d762ddf5dcd2a5ccf0277d
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoAdd debug stream for QAccessibleInterface.
Frederik Gladhorn [Wed, 16 Nov 2011 14:41:35 +0000 (15:41 +0100)]
Add debug stream for QAccessibleInterface.

Change-Id: I68fddac5a09bbf092c1e38c411d49dfbf640f27d
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoFix debug output in meego platform input context
Simon Hausmann [Mon, 7 Nov 2011 15:33:53 +0000 (16:33 +0100)]
Fix debug output in meego platform input context

Don't show debug output by default :)

Change-Id: I7df9264b3e0211e459cecb2cd9f389e017e9bca4
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
12 years agoGet rid of unused inputMethodEvent function
Joona Petrell [Fri, 18 Nov 2011 12:07:01 +0000 (14:07 +0200)]
Get rid of unused inputMethodEvent function

In Qt5 input method events are meant to be sent directly to
QInputPanel::inputItem() instead of the focused QWindow.

Change-Id: Idc8fe458973f066b578f6374ca33ce6f950bf9cf
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoAdd a roles argument to the dataChanged signal.
Stephen Kelly [Mon, 21 Nov 2011 12:34:24 +0000 (13:34 +0100)]
Add a roles argument to the dataChanged signal.

This allows more granular reporting of what has changed.

This change is binary incompatible and source compatible.

Change-Id: I7c5beaee651a24780cc94e41383f7a80210bc603
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRe-enable the opengl autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 09:56:14 +0000 (10:56 +0100)]
Re-enable the opengl autotests on Mac OS X

All tests pass.

Change-Id: I6fde0da3900292b66f80730f08d3f0afdb0bead8
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the v8 autotest on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 09:53:33 +0000 (10:53 +0100)]
Re-enable the v8 autotest on Mac OS X

This tests passes.

Change-Id: Ia1f420c0a241d1259fbb972957b20c37f5f9dfdc
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the sql autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 09:51:54 +0000 (10:51 +0100)]
Re-enable the sql autotests on Mac OS X

The QSql test currently crashes, which can destabilize the CI system
when attempting to re-enable the autotest. Skip this test for now by
disabling the check target for it.

Change-Id: I598f8ca7bce6b6f46daf6a053da5571b62486463
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the xml autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 09:45:39 +0000 (10:45 +0100)]
Re-enable the xml autotests on Mac OS X

All tests pass.

Change-Id: I864b12c1045db1b2a25bd8a22635d42d55e5f0de
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the dbus autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 09:44:52 +0000 (10:44 +0100)]
Re-enable the dbus autotests on Mac OS X

These tests aren't actually enabled due to the lack of dbus, but there's
no reason to explicitly disable the check target because of it.

Change-Id: I685008060c8e8d713cd27e7684cf3d474c0cf55d
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the testlib autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 08:54:19 +0000 (09:54 +0100)]
Re-enable the testlib autotests on Mac OS X

All tests pass.

Change-Id: If6fa41826299bfc9f712d66df85920f01c3bdef4
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the 'other' autotests on Mac OS X
Bradley T. Hughes [Fri, 18 Nov 2011 08:43:17 +0000 (09:43 +0100)]
Re-enable the 'other' autotests on Mac OS X

All tests pass.

Change-Id: I920ef758e0b967a7ba7548e79132a1fbb3cc27c5
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRe-enable the tools autotests on Mac OS X
Bradley T. Hughes [Thu, 17 Nov 2011 13:51:00 +0000 (14:51 +0100)]
Re-enable the tools autotests on Mac OS X

All tests pass.

Change-Id: I361a0a70ca2993a0ea3bf690c3c97743ec6f5831
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoV8: Fix linking with MinGW.
Friedemann Kleint [Mon, 21 Nov 2011 10:58:18 +0000 (11:58 +0100)]
V8: Fix linking with MinGW.

Change linker flags to work with MSVC (stub.lib) and MinGW
(stub.a).

Change-Id: I9319972a133e2d3abfe046e87e2b76590608044b
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoRe-enable the integrationtests autotests on Mac OS X
Bradley T. Hughes [Wed, 16 Nov 2011 15:15:00 +0000 (16:15 +0100)]
Re-enable the integrationtests autotests on Mac OS X

The tst_MacNativeEvents, tst_QAccessibility, and tst_QFocusEvent
tests currently fail, which will block any changes that attempt to
re-enable the autotests.  Ignore the failures for now by marking the
tests as insignificant.

The tst_Lancelot for currently crashes, which can destabilize the CI
system when attempting to re-enable the autotests.  Skip this test for
now by disabling the check target for it.

Change-Id: Icc1dc77ebb9b7be746606aae04c9abf2480d0c3f
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoAdded command line argument to make hellowindow example single window.
Samuel Rødal [Mon, 21 Nov 2011 11:18:15 +0000 (12:18 +0100)]
Added command line argument to make hellowindow example single window.

Useful when testing on embedded platforms with no support for multiple
top-level windows.

Change-Id: I212ca69c3f5d5d338e860169b14e3f9f3951712b
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
12 years agoRe-enable the corelib autotests on Mac OS X
Bradley T. Hughes [Wed, 16 Nov 2011 10:21:23 +0000 (11:21 +0100)]
Re-enable the corelib autotests on Mac OS X

This is the first change to re-enable the autotests for the individual
qtbase modules. This means adding subdir.CONFIG=no_check_target for each
module (except corelib) in tests/auto/auto.pro instead of in
tests/tests.pro

QFileSystemWatcher, QIODeice, QSettings, QTextStream, QSocketNotifier,
QVariant, QPluginLoader, QLocale: These tests currently fail, which
will block any changes that attempt to re-enable the autotests. Ignore
the failures for now by marking them as insignificant.

QAbstractItemModel: This test currently crashes, which can
destabilize the CI system when attempting to re-enable the autotests.
Skip this test for now by disabling the check target for it.

Change-Id: Ie5147d5c5cfae5e7d0a495d5c4788ce92fe2e6d8
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoAdd Q_ENUMS and Q_FLAGS to enumeration InputMethodQuery and flag InputMethodQueries
Joona Petrell [Fri, 18 Nov 2011 12:10:51 +0000 (14:10 +0200)]
Add Q_ENUMS and Q_FLAGS to enumeration InputMethodQuery and flag InputMethodQueries

Change-Id: If6f535a28af06e7e1790d8876f99dcb9ab8a3b41
Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoqtbase tests: Fix some warnings
Friedemann Kleint [Thu, 17 Nov 2011 14:52:53 +0000 (15:52 +0100)]
qtbase tests: Fix some warnings

- Fix warnings about QAtomicPointer/Int usage
- Fix some gcc 4.6 warnings about assigned/unused variables

Change-Id: Ib4dbf9110f0dad93ad48e97278310f05fad3a82a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRemove obsolete code from QRect test.
Jason McDonald [Mon, 21 Nov 2011 05:30:03 +0000 (15:30 +1000)]
Remove obsolete code from QRect test.

The removed code has been commented-out since Qt 4.0 and relates to
QCOORD, which was part of Qt3Support and has thus been removed from Qt5.

Change-Id: I4651738d505234abe9b79ef5045c55cbf132a88e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>