profile/ivi/qtbase.git
12 years agoAllow qmake to find features when using mkspecs in nested dirs
Sean Harmer [Tue, 6 Mar 2012 18:05:27 +0000 (18:05 +0000)]
Allow qmake to find features when using mkspecs in nested dirs

Commit 8e5eb1bddcfc introduced the assumtion that mkspecs are
immediately below the mkspecs directory itself. This is not true for
e.g. unsupported/blackberry-armv7le-qcc.

This commit restores qmake's ability to find the "root" of the mkspecs
collection no matter how deeply the actual mkspecs are nested.

Task-number: QTBUG-24665
Change-Id: I98faaf8e6ae7b8524277aea6c17e685e507e37b3
Reviewed-by: Sean Harmer <sh@theharmers.co.uk>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQT_RAW_INSTALL_FOO => QT_INSTALL_FOO/raw
Oswald Buddenhagen [Fri, 9 Mar 2012 18:11:27 +0000 (19:11 +0100)]
QT_RAW_INSTALL_FOO => QT_INSTALL_FOO/raw

this makes the "sysrootable" properties more magic, with the raw
versions being omitted from the qmake -query output and automatically
falling back to the "cooked" variant if there is no sysroot set.

this makes the "normal" qmake -query less noisy. this will become even
more obvious when i add more "overloads" of the properties.

Change-Id: I08000986427264ec6238c8fe0a77f5cecdbf1201
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agorip out -incremental from configure
Oswald Buddenhagen [Fri, 2 Mar 2012 18:30:00 +0000 (19:30 +0100)]
rip out -incremental from configure

the feature is rather obscure and unlikely to be used by anyone.

Change-Id: I2dfb4ca4d5d1f210d385c013f46bc6389fd6ea2d
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoUpdate qnx mkspecs to not use fixed tool paths
Sean Harmer [Sun, 11 Mar 2012 12:14:43 +0000 (12:14 +0000)]
Update qnx mkspecs to not use fixed tool paths

This changeset allows Qt to be built for QNX platforms in light of
commit d59e85d9095f5d8fa787149fe8d34e8dfac0a0b5.

Change-Id: Idf8e89cf1b0a5625ef7ee6397c223137fa151cdc
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoRestore some source compatibility
Lars Knoll [Sat, 10 Mar 2012 22:51:31 +0000 (23:51 +0100)]
Restore some source compatibility

Add an implicit #include back in to avoid
needless SC and compilation breaks.

Add some deprecated method for codecForTr, until
all other modules are ported to mot use it anymore.

Change-Id: I5334b47a0c32819b9eb6b7203cc98ce4e6073a64
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoMove tst_qicon.cpp and tst_qpixmapfilter.cpp to QtWidgets
Debao Zhang [Fri, 9 Mar 2012 00:05:03 +0000 (16:05 -0800)]
Move tst_qicon.cpp and tst_qpixmapfilter.cpp to QtWidgets

QIcon and QPixmapFilter belong to QtWidgets instead of QtGui.

Change-Id: I6d82811e04046edb0cc67c55970c161612e86d3f
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoSupport Growl >=1.3 in QSystemTrayIcon
Vincent A [Wed, 7 Mar 2012 18:24:29 +0000 (19:24 +0100)]
Support Growl >=1.3 in QSystemTrayIcon

The app name has changed in Growl 1.3, but the id
stays the same. Also don't send notifications if
Growl is not running to follow recommendations.

Change-Id: I31ff7df272b4af1b4f1e4db80c47e7ba75038dec
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoRemove outdated assumption from QVariant autotest.
Jason McDonald [Thu, 8 Mar 2012 05:52:03 +0000 (15:52 +1000)]
Remove outdated assumption from QVariant autotest.

The test was assuming that "data()" is a special function in autotests,
but that hasn't been the case since early prototypes of testlib.

Change-Id: Ic24cf5dc539b55d12eba0a6ab17173e2ed698f21
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFix compile warnings in QCoreApplication autotest.
Jason McDonald [Thu, 8 Mar 2012 06:20:31 +0000 (16:20 +1000)]
Fix compile warnings in QCoreApplication autotest.

- Use const_cast to avoid "deprecated conversion from string constant to
  'char*'" warning when building argv arrays from string literals.
- Use Q_UNUSED to avoid warnings on unused local variables.

Change-Id: Idd2c8279adc102b6ebc6af7486ba26fe9ed4e7c1
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoForce properties to be applied in the order in which they are specified.
Robin Burchell [Mon, 5 Mar 2012 14:05:16 +0000 (15:05 +0100)]
Force properties to be applied in the order in which they are specified.

Previously, property setting was randomized in order, which means that things
like: qproperty-foo: 4; qproperty-bar: 5; where foo may affect bar worked by
chance - or not at all - depending on the hash function.

Change-Id: Ifb9813ee72842cefb278cbedb644f24b91113f3f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove redundant and incorrect comment from QList autotest.
Jason McDonald [Thu, 8 Mar 2012 05:48:23 +0000 (15:48 +1000)]
Remove redundant and incorrect comment from QList autotest.

Change-Id: I3187d0d8ace120181a4c49bbc68f421ddf5acbe0
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agotestlib: Improve formatting of QCOMPARE failure messages.
Jason McDonald [Thu, 8 Mar 2012 01:30:10 +0000 (11:30 +1000)]
testlib: Improve formatting of QCOMPARE failure messages.

Make the various versions of the failure message align consistently so
that it's a little easier to compare the actual and expected values.  Of
course, the value won't align nicely unless the "actual" and "expected"
strings are the same length, but at least this commit makes that
consistent across all versions of the message.

Change-Id: If9ce231df3b5d279a06f6458fdb5da0aa4586068
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd Q_IS_ENUM(), and provide as flag in QMetaType::typeFlags()
Glenn Watson [Tue, 7 Feb 2012 02:25:07 +0000 (12:25 +1000)]
Add Q_IS_ENUM(), and provide as flag in QMetaType::typeFlags()

Add Q_IS_ENUM() macro to determine if a given type is an
enumeration. Use information from that in QMetaType::registerType()
to store whether custom registered metatypes are enums or not.
This information can then be accessed by calling
QMetaType::typeFlags(int type). This is used by the declarative
code to determine whether a custom type in a variant can be safely
cast to an integer, which is required to allow passing non-local
enums as signal/slot params.

Change-Id: I9733837f56af201fa3017b4a22b761437a3c0de4
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoCrash fix in QMetaType::typeFlags.
Jędrzej Nowacki [Thu, 8 Mar 2012 14:56:33 +0000 (15:56 +0100)]
Crash fix in QMetaType::typeFlags.

The function is public, so it should validate input instead of crashing

Change-Id: Id67463b0b61ab74a76c1ede7f052bdbed37822b6
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMake tst_qsql.cpp independent of QtWidgets
Debao Zhang [Sat, 10 Mar 2012 03:04:43 +0000 (19:04 -0800)]
Make tst_qsql.cpp independent of QtWidgets

Change-Id: I032902bea6fe2c7d9eb0491886fded7602ae2bcc
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoXCB: Implement native events for for windows.
Friedemann Kleint [Fri, 9 Mar 2012 13:35:11 +0000 (14:35 +0100)]
XCB: Implement native events for for windows.

Change-Id: Iacea1231b49ebe57da96f4012d3f314e1b037105
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoRemove unneeded check.
Sergio Martins [Sat, 10 Mar 2012 18:28:40 +0000 (18:28 +0000)]
Remove unneeded check.

It would have already crashed on
QOpenGLSharedResource(ctx->shareGroup()).

Change-Id: Ib68759457a0fa7e4417dcd30cc40fbabf3df232c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoqdoc3: qdoc user manual update
Martin Smith [Thu, 8 Mar 2012 10:57:34 +0000 (11:57 +0100)]
qdoc3: qdoc user manual update

Changed \bold to \b, \i to \e, and \o to \li.

Task-number:  QTBUG-24578

Change-Id: If02517164f30f05436596224c1b1895a86d9e9f8
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agobyteorder: Fix compilation for MIPS and GCC < 4.6.
Holger Hans Peter Freyther [Thu, 8 Mar 2012 09:28:56 +0000 (10:28 +0100)]
byteorder: Fix compilation for MIPS and GCC < 4.6.

Use the pre-processor macros to detect the byte order. This is
how it is done for ARM and other platforms. Use the variant of
the macro with the most underscores to match our ARM detection.

Change-Id: I7d2b34bf45a7f3979b44a1fe2e95f678152a5dcd
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoRemove commented 'comment'
ABBAPOH [Sun, 26 Feb 2012 11:19:00 +0000 (15:19 +0400)]
Remove commented 'comment'

Change-Id: I996a34fb2dc91da8b68039b4bc797a255c99d2e0
Reviewed-by: David Faure <faure@kde.org>
12 years agoFix commas according to qt coding style
ABBAPOH [Sun, 26 Feb 2012 11:17:59 +0000 (15:17 +0400)]
Fix commas according to qt coding style

Change-Id: Ibf49f1c3d426917d1cfcb382c8ed2771d43d6e99
Reviewed-by: David Faure <faure@kde.org>
12 years agofix the check for libraries having themselves as dependencies
Oswald Buddenhagen [Fri, 24 Feb 2012 19:00:08 +0000 (20:00 +0100)]
fix the check for libraries having themselves as dependencies

Change-Id: I6dc56228a068fe9158e989afd1c545a3d69848e6
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRevert "QNam: only init channels when needed."
Kent Hansen [Fri, 9 Mar 2012 20:27:45 +0000 (21:27 +0100)]
Revert "QNam: only init channels when needed."

This reverts commit ff25691d00d634068c6389f8f1607d7cc95ac5be.

The change broke qtdeclarative. Several autotests crash because
QHttpNetworkConnection::transparentProxy() calls proxy() on a
null socket.

Task-number: QTBUG-24717
Change-Id: I57e3ccf5d20683f59cf7450083d1fcb3fa1c40fe
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoanother attempt at solving the popping up of .qmake.cache problem
Oswald Buddenhagen [Fri, 9 Mar 2012 18:11:54 +0000 (19:11 +0100)]
another attempt at solving the popping up of .qmake.cache problem

syncqt may generate that file also as a result of configure tests. so
just check for the file's existence instead of trying to reproduce under
which circumstances it should appear.

Change-Id: Ia24f96b05fc70e104f7be19d08cea614ffb505be
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoRemove erroneous never referenced QT_NO_GUI define
Donald Carr [Fri, 9 Mar 2012 10:26:36 +0000 (10:26 +0000)]
Remove erroneous never referenced QT_NO_GUI define

Logic was clearly always off kilter, and this was only defined for GUI
builds

Change-Id: Ie85c156510e7c450a5192408b4c365ff07ce2029
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoUpdated codecs.pri to reflect new QNX mkspec name
Rafael Roquetto [Fri, 9 Mar 2012 10:49:28 +0000 (11:49 +0100)]
Updated codecs.pri to reflect new QNX mkspec name

Change-Id: Icd4a9dd774991c2be180b885b3892ff85a3f8dc1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agobyteorder: Improve the implementation comments for auto-detect
Holger Hans Peter Freyther [Thu, 8 Mar 2012 09:25:13 +0000 (10:25 +0100)]
byteorder: Improve the implementation comments for auto-detect

Parts of the auto-detection is using __BYTE_ORDER__. This
pre-processor macro was added in GCC 4.6. Document that in
the auto-detection code. Remove the misleading error message
in qsysinfo.h.

Change-Id: I66430ba1c9a1cdf476889ae6d5f3ca476243e000
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoFixes wrong iconv_open call under QNX
Rafael Roquetto [Fri, 9 Mar 2012 10:59:29 +0000 (11:59 +0100)]
Fixes wrong iconv_open call under QNX

The wrong macro logic was causing iconv_open to never be
called under QNX.

Change-Id: I3367872fc8440f87fb59667770acd06262aef723
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoremove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2)
Mark Brand [Fri, 9 Mar 2012 16:15:26 +0000 (17:15 +0100)]
remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2)

Follow-up to d13bedb9d8fb66f58ba901864555bcc9b6e463e0
where the regexp was a bit too tight and missed many specs.

Also cleaned up QMAKE_IDC, QMAKE_RCC and QMAKE_IDL.

Change-Id: Ia15007141739019ef5ccfdda0c856c478f732b85
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoqws: Remove decorations/kbd/mouse plugin support from configure
Holger Hans Peter Freyther [Fri, 9 Mar 2012 09:17:16 +0000 (10:17 +0100)]
qws: Remove decorations/kbd/mouse plugin support from configure

Change-Id: Iaca207ed892b2f5f5d1650ed27007532a172544c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoFix some duplication between QGuiApplication and QApplication,
David Faure [Wed, 7 Mar 2012 21:52:42 +0000 (22:52 +0100)]
Fix some duplication between QGuiApplication and QApplication,

for the mouseButtons and keyboardModifiers vars and methods.
Implement queryKeyboardModifiers with a new virtual in
QPlatformIntegration.

Task-number: QTBUG-11243
Change-Id: I9e95841542ac61c73ff72d7682ad962ea8aada42
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoFixes mismatching delete operator
Rafael Roquetto [Fri, 9 Mar 2012 11:19:15 +0000 (12:19 +0100)]
Fixes mismatching delete operator

Change-Id: Ib6640daa0fdd12f98f9d7e257c226e0abdcf31dc
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoMake tst_qapplication build when QT_NO_SHAREDMEMORY is defined
Kevin Krammer [Fri, 9 Mar 2012 11:56:41 +0000 (12:56 +0100)]
Make tst_qapplication build when QT_NO_SHAREDMEMORY is defined

Change-Id: I8cfd0ff2e17e6d5c04b81a042c665bcbbca36256
Reviewed-by: David Faure <faure@kde.org>
12 years agoUse qt_safe_read to read from low-level file descriptor
Kevin Krammer [Fri, 9 Mar 2012 11:59:48 +0000 (12:59 +0100)]
Use qt_safe_read to read from low-level file descriptor

Change-Id: I7c7bc379a423be4de471c5972cb98101c90bab8c
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoWindows: Fix QStyleSheetStyle autotest antialiasing issues
Miikka Heikkinen [Fri, 9 Mar 2012 09:06:18 +0000 (11:06 +0200)]
Windows: Fix QStyleSheetStyle autotest antialiasing issues

Antialiasing of fonts was causing two tests that relied on finding
at least a certain number of pixels of certain color to find one or two
too few pixels of that color and thus fail.
Fixed by increasing the amount of text displayed to make sure enough
pixels of correct color would be present.

Also removing the test insignification, as the test will now
pass completely when run under Windows Classic theme, which CI uses.

Task-number: QTBUG-24323
Change-Id: Ic0b614d33e4e4f5df18d53cb72a05db5d8b6b5e7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agodo not copy/symlink qmake to build dir
Oswald Buddenhagen [Fri, 9 Mar 2012 09:50:23 +0000 (10:50 +0100)]
do not copy/symlink qmake to build dir

make is perfectly capable of doing shadow builds

Change-Id: I7e1c27cddc385b7a17ae5645b9cd26fa56d2f029
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoMake tst_qmouseevent.cpp independent of QtWidgets
Debao Zhang [Fri, 9 Mar 2012 02:45:13 +0000 (18:45 -0800)]
Make tst_qmouseevent.cpp independent of QtWidgets

Change-Id: I6759c7be44c2d890c1a745effdd70faa3467fe5b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoClean up for some auto tests of the gui/kernel.
Debao Zhang [Fri, 9 Mar 2012 02:37:30 +0000 (18:37 -0800)]
Clean up for some auto tests of the gui/kernel.

They are not dependent on QtWidgets.

Change-Id: Icbc0b0b6f0b72537fd3058cc038a1f5c4bf2aba7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agotst_qimagereader: does not depend on QtWidgets
Debao Zhang [Thu, 8 Mar 2012 23:48:51 +0000 (15:48 -0800)]
tst_qimagereader: does not depend on QtWidgets

Both tst_qimagereader.cpp and tst_qimagewriter.cpp do not depend on
QtWidgets.

Change-Id: I7e8b31c23db203c44ccb4cd4e8e747d18c5d7ed7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoStart eventTime timer so that the .elapsed method will work.
Jon Trulson [Wed, 29 Feb 2012 23:06:56 +0000 (16:06 -0700)]
Start eventTime timer so that the .elapsed method will work.

QWindowSystemInterfacePrivate::eventTime.start() is never called,
resulting in all calls to
QWindowSystemInterfacePrivate::eventTime.elapsed() within
qwindowsysteminterface_qpa.cpp to return 0.  This could cause events
to be lost, such as mouse button press events from the evdevmouse
input plugin.

Change-Id: Iba9d23b51af80e8532d24ccf382e9077c06bb4be
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
12 years agomisc: Fix some random typos and grammar while reading code.
Holger Hans Peter Freyther [Wed, 7 Mar 2012 08:57:39 +0000 (09:57 +0100)]
misc: Fix some random typos and grammar while reading code.

Typos:
recieve   -> receive
descrived -> describe

Grammar:
this types -> these types

Change-Id: Iedacc51a6322996f423ac9472af0a597424a4fed
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix copy/paste error in QAbstractItemModel::insertRow docu.
David Faure [Thu, 8 Mar 2012 15:04:16 +0000 (16:04 +0100)]
Fix copy/paste error in QAbstractItemModel::insertRow docu.

This method is not virtual.

Change-Id: I1c82a63af07d7e78e7a572c0dfcfb2b82122d421
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoRemove widgets dependency from eglfs
Donald Carr [Tue, 6 Mar 2012 22:35:30 +0000 (22:35 +0000)]
Remove widgets dependency from eglfs

eglfs uses the (old) OpenGL paint engine for paint operations. This drags in a
QWidget dependency and hence everything bar the kitchen sink. This change
gets eglfs buildable without widget support although anything which relies
on a QPaintDevice will end up rendering nothing to the screen. (Similar
to the QWS simplegl driver)

Change-Id: If7fcdb79038ef7568e771402fd1667bc0318ff5f
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoRemove calls for default constructors
ABBAPOH [Sun, 26 Feb 2012 11:17:14 +0000 (15:17 +0400)]
Remove calls for default constructors

Change-Id: Ib33013bed9e6b7bb9ef54c858da5cd61f35f2c41
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoUse SSL_MODE_RELEASE_BUFFERS in QSslSocket
Martin Petersson [Wed, 7 Mar 2012 15:17:11 +0000 (16:17 +0100)]
Use SSL_MODE_RELEASE_BUFFERS in QSslSocket

If SSL_MODE_RELEASE_BUFFERS is available we should tell OpenSSL
to release memory early.
http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html

Task-number: QTBUG-14985
Change-Id: Ib6656ebb3c4d67ca868b317ee83ddbf0983953f9
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Markus Goetz <markus@woboq.com>
12 years agoFix a performance regression with shouldLoadFontEngineForCharacter.
Pierre Rossi [Wed, 7 Mar 2012 13:53:57 +0000 (14:53 +0100)]
Fix a performance regression with shouldLoadFontEngineForCharacter.

Calling FcFontMatch should be avoided as much as possible. We can simply
cache the patterns it returns, which should still save memory compared to
loading all font engines as we did before.

Change-Id: I67208a4f919338a948535f717cfd0139dbea2e5f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoFix platforms.pro to match new qnx mkspec name
Rafael Roquetto [Thu, 8 Mar 2012 10:58:32 +0000 (11:58 +0100)]
Fix platforms.pro to match new qnx mkspec name

Change-Id: Ib159b519d11c9b88979f0f47b87801552586abc0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sh@theharmers.co.uk>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoBuild fix when use '-no-stl' option
Yuchen Deng [Thu, 1 Mar 2012 12:24:56 +0000 (20:24 +0800)]
Build fix when use '-no-stl' option

error C2039: 'move' : is not a member of 'std'
error C3861: 'move': identifier not found

Change-Id: I40beb59f893a8969275154664c947889eb570c95
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd debug stream operator for QNetworkProxy
Shane Kearns [Tue, 28 Feb 2012 11:57:12 +0000 (11:57 +0000)]
Add debug stream operator for QNetworkProxy

Change-Id: Ib8e7ba041ede33dc9c751432e39be2d6a9f4662d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd cross_compile to qconfig.pri for global advertising
Donald Carr [Wed, 29 Feb 2012 23:55:13 +0000 (23:55 +0000)]
Add cross_compile to qconfig.pri for global advertising

.qmake.cache is not necessarily accessible to other modules which depend on
information about whether we are cross compiling or not. We might as well
advertise this fact globally via the CONFIG variable in qconfig.pri.

Change-Id: I6dee3e6604e5ca1c775c5f9f834fe29b4e27adb8
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com>
12 years agodon't put QMAKE_ABSOLUTE_SOURCE_ROOT into .qmake.cache
Oswald Buddenhagen [Fri, 2 Mar 2012 19:12:03 +0000 (20:12 +0100)]
don't put QMAKE_ABSOLUTE_SOURCE_ROOT into .qmake.cache

this is oxymoronic: if a .qmake.cache is present, telling qmake the
project root is utterly pointless.
the windows variant never had this.

Change-Id: Iefc6e242ad7458dc699b955a3657f31f1ecf4c7b
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove support for QMAKE_PLATFORM_DIR
Oswald Buddenhagen [Thu, 1 Mar 2012 20:44:54 +0000 (21:44 +0100)]
remove support for QMAKE_PLATFORM_DIR

this was a somewhat magic support for sysroots, automatically rewriting
a number of path-holding variables. this was (as usual) completely
undocumented, extremely fragile, and we are coming up with something
better now anyway.

Change-Id: I045910f532cb3efc839ea81c7a48f8db695e4092
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove the fixed qt tool assignments from the configures
Oswald Buddenhagen [Thu, 1 Mar 2012 16:45:55 +0000 (17:45 +0100)]
remove the fixed qt tool assignments from the configures

the tool locations are now determined with qtPrepareTool(), which takes
non-installed qt builds into account already.

Change-Id: I17b2c5f4b181417f2a612be2f540768e7dc0ae4e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoBlackBerry Plugin: support 8 mouse buttons, instead of just 3.
Rick Stockton [Thu, 8 Mar 2012 00:38:37 +0000 (16:38 -0800)]
BlackBerry Plugin: support 8 mouse buttons, instead of just 3.

The mask of possible mouse buttons in QNX provides tracking for the
up/down State of up to 8 mouse buttons. This update adds support
for the 5 buttons which we previously ignored in Qt on this Platform.

Task-number: QTBUG-24682

Change-Id: I8c1d2b2a5d0deb3b857fb387c242c3792e21ff95
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
12 years agoFix qtmodule-configtests to honor error codes
Girish Ramakrishnan [Thu, 8 Mar 2012 13:11:11 +0000 (05:11 -0800)]
Fix qtmodule-configtests to honor error codes

The test is marked as fail if qmake or make fails.

Change-Id: I565c68af4a9271d7aa36fb592ac399aa728ba4d8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
12 years agoQRegularExpression: minor fix to captureIndexForName
Giuseppe D'Angelo [Sun, 26 Feb 2012 22:37:45 +0000 (22:37 +0000)]
QRegularExpression: minor fix to captureIndexForName

Although passing a null pointer to pcre16_get_stringnumber for
the compiled pattern should simply make it error out, it's actually
an undocumented behaviour, so let's stay safe and add an explicit
check.

Tests for this codepath are added.

Change-Id: Ifd9c87874f6812ba487104ec1a5bbc83c3b16761
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQRegularExpression: improve JIT memory handling
Giuseppe D'Angelo [Thu, 23 Feb 2012 02:53:08 +0000 (02:53 +0000)]
QRegularExpression: improve JIT memory handling

PCRE's JIT uses by default 32K on the pcre_exec caller's stack. This
is fine for most situations, but in some cases (esp. patterns with
lot of recursion) more memory is required.

Therefore, if a match execution fails due to exhausting JIT memory,
we let PCRE allocate up to 512KB to be used for the JIT's stack.

The pointer to the allocated memory is put in thread local storage
(so it can be reused from the same thread, if needed, and automatically
goes away when the thread dies).

Change-Id: Ica5fb7d517068befff88ebb198a603a26ec5d8a7
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoWindows: Fix flag handling.
Friedemann Kleint [Thu, 8 Mar 2012 15:13:28 +0000 (16:13 +0100)]
Windows: Fix flag handling.

Fix a typo that caused a variable to be hidden such that
the Qt::WindowFlags were not used.

Change-Id: Iea4456b0cd4c968e0fbfdd53e5006ffee0298b24
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQtNetwork: blacklist two more certificates
Martin Petersson [Wed, 7 Mar 2012 11:05:59 +0000 (12:05 +0100)]
QtNetwork: blacklist two more certificates

The comodogate 72:03:21:05:c5:0c:08:57:3d:8e:a5:30:4e:fe:e8:b0
certificate is a test certificate and the MD5 Collisions was created
as a proof of concept deliberately made to be expired at the time
of it's creation.

Task-number: QTBUG-24654
Change-Id: Ic8eb417363569fe50bf19cd229658f5e371862f7
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agoreplace uses of QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT with module-specific variables
Oswald Buddenhagen [Mon, 5 Mar 2012 10:49:51 +0000 (11:49 +0100)]
replace uses of QMAKE_INCDIR_QT and QMAKE_LIBDIR_QT with module-specific variables

Change-Id: Id410887fa97f345a229e0cbf395633ccf303fa2f
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove obviously counterproductive uses of QT_SOURCE_TREE & QT_BUILD_TREE
Oswald Buddenhagen [Fri, 2 Mar 2012 20:32:02 +0000 (21:32 +0100)]
remove obviously counterproductive uses of QT_SOURCE_TREE & QT_BUILD_TREE

Change-Id: I77cf734b58f350d82277c084a680ab56fdf82f08
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove automatic building of moc from moc.prf
Oswald Buddenhagen [Fri, 2 Mar 2012 16:52:12 +0000 (17:52 +0100)]
remove automatic building of moc from moc.prf

the problem this (probably) tried to solve has been solved via ordered
builds a *long* time ago.

Change-Id: I84c58076c864735eea4210ec60aa060fe3e5d97e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agouse $$QT_BUILD_TREE instead of $$(QTDIR)
Oswald Buddenhagen [Mon, 5 Mar 2012 13:20:17 +0000 (14:20 +0100)]
use $$QT_BUILD_TREE instead of $$(QTDIR)

it's a "tad" more reliable

Change-Id: I7207daa6869d1682719cc357794cf6efff496225
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agodelete dumpcpp.prf
Oswald Buddenhagen [Mon, 5 Mar 2012 13:19:21 +0000 (14:19 +0100)]
delete dumpcpp.prf

it seems to be a no-op. presumably it was meant to be an auto-rebuild
hack like in moc.prf, but it wasn't really "wired".

Change-Id: I914456f5f5a63a06c2004b16edcf2e2ade448270
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove strange .qmake.cache hacks
Oswald Buddenhagen [Mon, 5 Mar 2012 11:15:50 +0000 (12:15 +0100)]
remove strange .qmake.cache hacks

they are obsolete (qmake knows the qt build configuration anyway), and
messing with QTDIR is a recipe for disaster.

Change-Id: Ib3594f38ec3192a5f70771f8bc5d8fd435bbbd15
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoRemove legacy pre-QPA gui/egl implementation
Donald Carr [Wed, 7 Mar 2012 16:30:08 +0000 (16:30 +0000)]
Remove legacy pre-QPA gui/egl implementation

Change-Id: I22a100cec7064df87eb2036adbca8a41aab5a10d
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoQAccessibleEvent needs a virtual destructor.
Frederik Gladhorn [Wed, 7 Mar 2012 15:21:11 +0000 (16:21 +0100)]
QAccessibleEvent needs a virtual destructor.

Change-Id: Ia0cd82c5457d39fe501e7ee6b5468ccb0f62f35a
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoDefer window activation if the window hasn't beenn mapped yet.
Lars Knoll [Thu, 8 Mar 2012 11:49:49 +0000 (12:49 +0100)]
Defer window activation if the window hasn't beenn mapped yet.

Change-Id: I60d616fc60d3be9b55ab2599abadede5f7c11f93
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoWindows: Removing insignification from QTextEdit test
Miikka Heikkinen [Thu, 8 Mar 2012 09:38:09 +0000 (11:38 +0200)]
Windows: Removing insignification from QTextEdit test

The commit 660af10dee503729025952ed2374b8a081f941a2 seems to have fixed
the test, so removing the insignification from it.

Task-number: QTBUG-24348
Change-Id: I564e90db53d10b54e22342a1cdbef6826929c63a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoFix a bug in the assignment operators for QJsonObject and Array
Lars Knoll [Thu, 8 Mar 2012 09:41:55 +0000 (10:41 +0100)]
Fix a bug in the assignment operators for QJsonObject and Array

When objects or arrays where being used read only, several objects
can share the same d pointer, but will have different pointers into
the binary data. Correctly change the pointer into the binary
data even if the d-pointer is the same.

Change-Id: Ife0ea5ac5daf46586f855dccdf35b51ec696a623
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoCrash fix in QMetaType::typeName.
Jędrzej Nowacki [Thu, 8 Mar 2012 14:36:38 +0000 (15:36 +0100)]
Crash fix in QMetaType::typeName.

The function is public, so it should validate input instead of crashing

Change-Id: Ifd9f1110f8631f942929d85db6a57eee7afffb6a
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoFix crash in QVariant::canConvert.
Jędrzej Nowacki [Tue, 6 Mar 2012 12:34:30 +0000 (13:34 +0100)]
Fix crash in QVariant::canConvert.

The function was crashing when an unsupported type id was given
as an input argument.

Change-Id: I2b0e3e6d43f6f248dc71532f8e6485efe68e8120
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoWindows: Make QMenuBar autotest significant again
Debao Zhang [Wed, 7 Mar 2012 17:58:34 +0000 (09:58 -0800)]
Windows: Make QMenuBar autotest significant again

The bug has been fix by 7bc576771de0b3c96905a6d11a75a01917334dc9 .

Task-number: QTBUG-24326
Change-Id: Ifd37e9fe76cb24e49132f22909c95a55a230b1ed
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRemove usage of QtXml from rcc, add test
Giuseppe D'Angelo [Sun, 26 Feb 2012 21:04:57 +0000 (21:04 +0000)]
Remove usage of QtXml from rcc, add test

Ported from QDom to QXmlStreamReader. This enables removal of QtXml
classes from bootstrap.

A new rcc test was added, copying the data from the
QResourceFileEngine test. The new test runs rcc to create binary
resources, dynamically loads them under various locales and checks
that they do contain the expected files.

Change-Id: I15d23dfda45de851a421156951ce2a60af4c1f7f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
12 years agoexamples: compile w/QT_NO_CAST_FROM_BYTEARRAY, at least on Unix
Marc Mutz [Thu, 23 Feb 2012 06:39:45 +0000 (07:39 +0100)]
examples: compile w/QT_NO_CAST_FROM_BYTEARRAY, at least on Unix

This is all pretty straight-forward, adding .constData() or
using QString::fromLatin1() instead of QLatin1String().

Change-Id: I984706452db7d0841620a0f64e179906123f3849
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoEnablers for shared graphics cache in raster paint engine
Jiang Jiang [Tue, 28 Feb 2012 11:50:27 +0000 (12:50 +0100)]
Enablers for shared graphics cache in raster paint engine

Required changes for using shared graphics cache for distance field
raster glyph rendering. Most of the logic is in platform plugins.

Platform plugins should implement
QPlatformIntegration::createImagePaintEngine() to create a subclass
of QRasterEngine.

Change-Id: Icf0a396e722e43b4caa2c1849aae38753cde38f1
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoRemove dead code.
Pierre Rossi [Tue, 6 Mar 2012 15:42:03 +0000 (16:42 +0100)]
Remove dead code.

This logic was introduced as part of change I92dfb39289a359f49caa02c2caf8baf66098fb59
but isn't used anymore.

Change-Id: I5bcfea99a7a2993434e1e978195a70dae52d6cfa
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agotestlib: Make QTestResult::verify() more robust.
Jason McDonald [Thu, 8 Mar 2012 01:20:41 +0000 (11:20 +1000)]
testlib: Make QTestResult::verify() more robust.

The statementStr parameter should always be non-null, so assert if it is
null.  The description parameter can be null in some cases (particularly
when the verify is successful, and thus no error description is going to
be displayed), so tolerate this.

Change-Id: I87b416d5f3b793bc608cd4aca14a4f7fe7527488
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAdd accessible role Desktop.
Frederik Gladhorn [Sun, 5 Feb 2012 22:41:34 +0000 (23:41 +0100)]
Add accessible role Desktop.

Another role that is mostly needed to make Qt based desktops accessible.
Would be nice to have for KDE's Plasma in the future.

Change-Id: I1d2ce9d55d677f73cc59f0a3646ee5e588c1d948
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
(cherry picked from commit edc6fae534835a2c72edffb52255fe522a37928f)

12 years agoCall updateAccessibility with the right index.
Frederik Gladhorn [Wed, 7 Mar 2012 12:39:57 +0000 (13:39 +0100)]
Call updateAccessibility with the right index.

In Qt 4 index 0 was the widget itself.
With the cleanup of child index this now changed.
The default constructor uses -1 as parameter to signify that
the widget is the cause, not a child.

Change-Id: I329a1cc91bf2d1d1d8534739acbddfe107f40364
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoChangelog: QEvent::Accessibility
Frederik Gladhorn [Tue, 14 Feb 2012 10:17:36 +0000 (11:17 +0100)]
Changelog: QEvent::Accessibility

Change-Id: I705d21f62e6101599ab59d9b8768c47d3a536bfd
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoFixes potential memory leak in qtextcodec.cpp
Nick Ratelle [Thu, 5 Jan 2012 22:13:46 +0000 (17:13 -0500)]
Fixes potential memory leak in qtextcodec.cpp

Change-Id: I56c0a1a6cc261bd15653bc4cbb94daed1f8aa811
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoselftests: Improve reporting of problems with loading expected output
Jason McDonald [Wed, 7 Mar 2012 06:17:46 +0000 (16:17 +1000)]
selftests: Improve reporting of problems with loading expected output

If the expected output file was missing (e.g. not included in
selftests.qrc), tst_selftests would trigger an assert inside QList by
calling QList::at() on an empty list.  Make tst_selftests detect this
error instead and give a meaningful error message.

When loading expected output for the crashes selftest, where there are
several alternative versions of the expected output, the code reused the
"exp" variable when loading the alternative test output files.  This
caused the last file loaded to be used unintentionally if none of the
alternative files had the correct number of lines.  Use a different
variable so that exp remains empty if none of the alternatives are
valid and a failure can be reported.

Change-Id: I35b2a3d905d069d3ee8dcb1447836eb68d5c8612
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agotestlib: Improve verbose and XPASS output
Jason McDonald [Wed, 29 Feb 2012 05:43:42 +0000 (15:43 +1000)]
testlib: Improve verbose and XPASS output

Previously, verbose (-v2) and XPASS test output showed all QCOMPAREs as
"COMPARE()", making it impossible to see what was compared and difficult
to match the output to the source of a test containing many calls to
QCOMPARE.

This commit changes testlib's internal compare_helper API so that string
representations of the compared expressions are always passed to
QTestResult::compare() when available, and can thus be shown in the
verbose and XPASS output.  The XPASS output has also been changed to
state explicitly that the comparison succeeded unexpectedly, bringing it
in line with the XPASS output resulting from a call to QVERIFY.

This commit also changes all calls to compare_helper() to call the
eight-argument version of the function, which simplifies much of the
calling code.  The now obsolete four-argument version of
compare_helper() has been changed to output a warning that it is
obsolete.  It will be removed once other modules have had some time to
catch up.

The improved XPASS and verbose output is demonstrated by the expectfail
and verbose2 selftests.

Change-Id: I8baa46d5dd30e6c43b26f366c34dc5b64aab5f7c
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agotestlib: Document a known limitation of QFINDTESTDATA.
Jason McDonald [Mon, 20 Feb 2012 04:45:50 +0000 (14:45 +1000)]
testlib: Document a known limitation of QFINDTESTDATA.

Change-Id: I72740e394bfe2a95f5b48566b29c9ef9200a8035
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoCall wait() after calling quit() so that it can gracefully finish
Andy Shaw [Wed, 7 Mar 2012 12:08:02 +0000 (13:08 +0100)]
Call wait() after calling quit() so that it can gracefully finish

There was a problem with slow https connections that if the download
was ongoing when quit() was called then it tended to cause a crash
because it tries to shutdown the SSL connection.

Task-number: QTBUG-24594
Change-Id: I6b161bc7a9bb99e41849537462de2d7c92661902
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoMark unstable windows network tests
Shane Kearns [Fri, 2 Mar 2012 19:10:41 +0000 (19:10 +0000)]
Mark unstable windows network tests

This is unfortunately still "most of them", because of QTBUG-24451
however some of the unit tests are still possible to test stably.

Also skipped test cases which would hang forever due to QTBUG-24451.

Bearer tests are not run, because they pass when test machine has no
wireless LAN, but fail or hang if it does (QTBUG-24503)

Change-Id: Icf99d45707102d2ef9219ed0b5ad521605716219
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoWindows - handle both auto detect proxy settings together
Shane Kearns [Wed, 22 Feb 2012 20:24:58 +0000 (20:24 +0000)]
Windows - handle both auto detect proxy settings together

If both "automatically detect settings" and "use automatic configuration
script" are selected in internet options, then respect that.
Because of performance issues, these are tried separately, and
disabled if they fail.

Task-number: QTBUG-13957
Task-number: QTBUG-10238
Change-Id: Ibc824d3039afeaf12c5ea82ed95287e5cf4e1776
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoFix a number of bugs with windows system proxies
Shane Kearns [Mon, 27 Feb 2012 15:59:48 +0000 (15:59 +0000)]
Fix a number of bugs with windows system proxies

TcpServer requests always returned no proxy, even if socks was available
Tag handling was broken for empty tag (if system proxies were tagged)
Tag handling was broken for unknown tags - now handled the same as if
    no tag was given at all.
When there are different proxies for http and https, windows returns
the http proxy first. However we should prefer to use the https proxy
for general sockets, as it's more likely to support the CONNECT method.

Change-Id: I55dcadf2e142367e857f94e55fdbb0c4ddb513a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Richard J. Moore <rich@kde.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoRework QNetworkProxyFactory::systemProxyForQuery autotest
Shane Kearns [Mon, 27 Feb 2012 15:50:19 +0000 (15:50 +0000)]
Rework QNetworkProxyFactory::systemProxyForQuery autotest

Rather than requiring specific hardcoded proxies in the system,
it now checks the proxies returned by the system have the required
capabilities for the request.

Note the test will pass if no proxy is configured (as
QNetworkProxy::NoProxy has all required capabilities)

The test prints the returned proxy lists and elapsed time
diagnostic for manual comparison and debugging.

Change-Id: I621ef4d1d7264a98c3e8bd485c30bc1166fcbdf0
Task-number: QTBUG-19454
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoWindows - fall back on static proxy config if autoproxy fails
Shane Kearns [Wed, 22 Feb 2012 21:20:46 +0000 (21:20 +0000)]
Windows - fall back on static proxy config if autoproxy fails

If both manual proxy settings are configured and the autodetect
setting is enabled, fall back on the manual configuration when
auto detection fails.

Task-number: QTBUG-10428
Change-Id: If008c7c967eec6256ce3c614fff0ec258190d451
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoWindows - handle proxy autoconfiguration resulting in no proxy
Shane Kearns [Wed, 22 Feb 2012 20:20:27 +0000 (20:20 +0000)]
Windows - handle proxy autoconfiguration resulting in no proxy

The PAC file may result in direct connection, in which case
WinHttp returns null strings for the proxies and the connection
type marked as direct.
In this case, return the default list (no proxy)

Change-Id: I601033f56a841bb92ea80a28174bb993b024ad79
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoWindows - fix proxy types for manually specified proxies
Shane Kearns [Wed, 22 Feb 2012 20:11:28 +0000 (20:11 +0000)]
Windows - fix proxy types for manually specified proxies

When the windows internet options are used to specify a
different proxy for each protocol, assume the proxy server type
matches that protocol too.
e.g. "socks=qt-test-server:1080" is both tagged for socks, and
assumed to be a socks server.
"ftp=qt-test-server:2121" is assumed to be an ftp proxy
"ftp=http://qt-test-server:3128" is overridden to be a http proxy
used for ftp.

Task-number: QTBUG-10502
Change-Id: I70615c89d6ede53f0e7d62e6d0754b90d042aa2e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMark tst_QNetworkReply::getThenDeleteObject as unstable
Shane Kearns [Tue, 6 Mar 2012 11:19:33 +0000 (11:19 +0000)]
Mark tst_QNetworkReply::getThenDeleteObject as unstable

It's unstable on all platforms, because the reply can be finished
due to a race with the http thread. It isn't crashing (which the
test was trying to test for), but rather the QVERIFY(!reply->isFinished())
fails, which is an inconclusive verdict.

Change-Id: Ib815a7cedd220544a0c9cb83023e3334df4a0fb3
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agotst_qnetworkreply - remove qRegisterMetaType duplicates
Shane Kearns [Mon, 5 Mar 2012 17:36:28 +0000 (17:36 +0000)]
tst_qnetworkreply - remove qRegisterMetaType duplicates

The metatypes are registered in the constructor, don't need to
register them in test cases as well.
Registering in a test case is bad practice, as it could result
in tests failing when run individually due to unknown metatype.

Change-Id: Ic4d65d0f5fe3cdd3ab57cf2512a4906d71205a05
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoAdd windows XFAIL to qnetworkreply autotest
Shane Kearns [Mon, 5 Mar 2012 17:32:48 +0000 (17:32 +0000)]
Add windows XFAIL to qnetworkreply autotest

The test case that depends on QLocalSocket consistently fails due
to bugs in QLocalSocket windows implementation

Change-Id: Ibfe9eb3590be4f72b52f14cd4fbe5be61f6cf70e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoAllow compilation of 3rdparty/pcre on QNX
Sean Harmer [Wed, 7 Mar 2012 18:22:39 +0000 (18:22 +0000)]
Allow compilation of 3rdparty/pcre on QNX

Change-Id: If9a56d5e042c8da9626feab377388e9bfc22b129
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agochiptester benchmark: compile
Marc Mutz [Thu, 1 Mar 2012 09:10:16 +0000 (10:10 +0100)]
chiptester benchmark: compile

The implementation uses QScrollBar, which is no longer
included by <QtGui>.

Change-Id: I2422cfccc427179ca71e9a3195f16bd637925fb3
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoexamples: use QVector<QPointF> instead of QList<QPointF>
Marc Mutz [Thu, 1 Mar 2012 09:09:02 +0000 (10:09 +0100)]
examples: use QVector<QPointF> instead of QList<QPointF>

QPointF is in the category of types for which QList
is needlessly inefficient (elements are copy-constructed
onto the heap and held through pointers). Use a vector
instead. This is consistent with the QPainter API.

Change-Id: Id0e910c067a60d12fbc175e7ee7da824834be374
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix typo: remember not remembet
Frederik Gladhorn [Tue, 6 Mar 2012 10:45:45 +0000 (11:45 +0100)]
Fix typo: remember not remembet

Change-Id: I6e3bc6a233e7ec8ba94ecaeeafc730b18dd32f02
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>