profile/ivi/qtbase.git
11 years agoproperly C-quote the manifest file name in the rc file
Oswald Buddenhagen [Fri, 14 Sep 2012 15:29:13 +0000 (17:29 +0200)]
properly C-quote the manifest file name in the rc file

Change-Id: I8c8eb85d412becc8c4029c2aa393abf6f8e949b6
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agorewrite *_manifest.rc unconditionally
Oswald Buddenhagen [Fri, 14 Sep 2012 15:19:38 +0000 (17:19 +0200)]
rewrite *_manifest.rc unconditionally

the file has no dependency tracking, so changes to the source would get
missed and cause hard to debug build issues.
and as nothing does dependency tracking on that file, this change
doesn't even cause a noticable performance regression.

Change-Id: I108b490b71a43018e0c7ef5d7c0b11d79a8e726b
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agofactor out qtAddToolEnv()
Oswald Buddenhagen [Thu, 13 Sep 2012 16:13:13 +0000 (18:13 +0200)]
factor out qtAddToolEnv()

so it's available for other users as well

Change-Id: I2d5a14ae427575c07321ac532b13ee03308b837f
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoremove 3rd parameter from qtPrepareTool()
Oswald Buddenhagen [Thu, 13 Sep 2012 15:34:35 +0000 (17:34 +0200)]
remove 3rd parameter from qtPrepareTool()

it's been superseded by the QTTOOL.* module stuff.

Change-Id: I01c9fc3ebbb22111bfb03f82693c7cf08b5fc9d4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agodefine QT_OPEN_LARGEFILE
John Peterson [Mon, 17 Sep 2012 19:59:22 +0000 (21:59 +0200)]
define QT_OPEN_LARGEFILE

it must be defined, even if zero

Task-number: QTBUG-27232
Change-Id: I950ef61ede197af9c2d8aedddd712cc6d4cc745b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd Q_PRINTSUPPORT_EXPORT to qdoc ignores.
Frederik Gladhorn [Wed, 5 Sep 2012 14:05:33 +0000 (16:05 +0200)]
Add Q_PRINTSUPPORT_EXPORT to qdoc ignores.

Change-Id: I0b8676a14133baf818ec12cda77dcb0670b5ee85
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
11 years agoLet qVersion() be extern "C" if this is not a namespace build
Thiago Macieira [Wed, 29 Aug 2012 10:09:31 +0000 (12:09 +0200)]
Let qVersion() be extern "C" if this is not a namespace build

This allows one to even dlopen() QtCore and call qVersion, to figure
out which version it is. A bit crazy, but someone might want to do it.

Change-Id: I932460515d07bed3f0e41c8ab2b46fc268ca73ff
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoHTTP header may be damaged - fix, unit test
Tomasz Duda [Thu, 6 Sep 2012 20:15:26 +0000 (22:15 +0200)]
HTTP header may be damaged - fix, unit test

"HTTP/1.1 100 CONTINUE\r\n"
If the header from a server is splitted between two packets
the first packet contains "HTTP/1.1 100" and the second one
contains " CONTINUE\r\n", one space (0x20) is skipped. After
processing the line looks in this way "HTTP/1.1 100CONTINUE".
QHttpNetworkReplyPrivate::readStatus(QAbstractSocket *socket)
is called twice, if a http header is splitted as above.
The function always removes whitespace from the beginning of a packet,
even if it is the second part of a http header.

QHttpNetworkReply returns QNetworkReply::RemoteHostClosedError
due to damaged http header during processing.

Improvement of unit test.

Task-number: QTBUG-27161

Change-Id: Ifc2949f62473209b4032185effbf5078b4130cda
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agoexamples: Mark ctor's as explicit
Sergio Ahumada [Sat, 15 Sep 2012 11:46:14 +0000 (13:46 +0200)]
examples: Mark ctor's as explicit

Make C++ class constructors that can be used with only one
required argument 'explicit' to minimize wrong use of the class.

Change-Id: Ida9f9c2f0c8608c35b0137b2512a6747afd69515
Reviewed-by: Mitch Curtis <mitch.curtis@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoqmake: Include own header first
Sergio Ahumada [Sat, 15 Sep 2012 13:34:17 +0000 (15:34 +0200)]
qmake: Include own header first

cpp files should include their own headers first (but below config.h)

Change-Id: I10ef37854843ae6438d68f96ce5ee83eede33db5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoSIC: QtPrintSupport - Remove QAbstractPageSetupDialog
John Layt [Sun, 20 May 2012 21:38:28 +0000 (22:38 +0100)]
SIC: QtPrintSupport - Remove QAbstractPageSetupDialog

QAbstractPageSetupDialog is a completely unnecessary base class that
is not really abstract and is used nowhere else.  This changes merges
its methods into the QPageSetupDialog main class.

While technically SIC no-one else uses this so no apps should be
affected.

Change-Id: I59b1739f1c453c34c25d1664d5d042e7918db316
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agouse qmake to get PKG_CONFIG in configure script
Mark Brand [Fri, 14 Sep 2012 08:03:18 +0000 (10:03 +0200)]
use qmake to get PKG_CONFIG in configure script

The value of PKG_CONFIG might depend on device options.
For example, "-device-option PKG_CONFIG" might be used with configure
or a mkspec might prefix PKG_CONFIG with CROSS_COMPILE which is
specified as a device option.

The shell functions of configure for parsing mkspecs do not take
device options into account, but qmake is pretty good at it now.

Change-Id: I1c9558e550c48e8441ebdac34b82066473c2ce3a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agotest: Mark tst_QTabBar::sizeHints() failure as XFAIL
Sergio Ahumada [Sat, 15 Sep 2012 10:57:56 +0000 (12:57 +0200)]
test: Mark tst_QTabBar::sizeHints() failure as XFAIL

The test has one stable failure on Mac OS X, so mark this
with QEXPECT_FAIL and remove the QSKIP

Task-number: QTBUG-22320
Task-number: QTBUG-27230
Change-Id: I7660df5770c39788792068a5b68e8236551288c4
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
11 years agoExclude QIcuCodec when QT_NO_TEXTCODEC is defined
J-P Nurmi [Wed, 12 Sep 2012 11:30:06 +0000 (13:30 +0200)]
Exclude QIcuCodec when QT_NO_TEXTCODEC is defined

Change-Id: Iec0178c427abcc1c79e4fe6ef449d399ac8ca363
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agonetwork: Fix missing or improper include guard in headers
Sergio Ahumada [Sat, 15 Sep 2012 16:29:50 +0000 (18:29 +0200)]
network: Fix missing or improper include guard in headers

Use an include guard in headers to ensure the header is not included
more than once. Make the header guard match its file name.

Also, cpp files should include their own headers first (but below config.h)

Change-Id: Iecf5da23c0f8e6d457f67657b88ef7557bde9669
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoconcurrent: Fix missing or improper include guard in headers
Sergio Ahumada [Sat, 15 Sep 2012 15:31:44 +0000 (17:31 +0200)]
concurrent: Fix missing or improper include guard in headers

Use an include guard in headers to ensure the header is not included
more than once. Make the header guard match its file name.

Also, cpp files should include their own headers first (but below config.h)

Change-Id: I902c8936382f5c1a8e0de7dbf49e5423f9b72bbe
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agogui/opengl: Fix missing or improper include guard in headers
Sergio Ahumada [Sat, 15 Sep 2012 14:51:51 +0000 (16:51 +0200)]
gui/opengl: Fix missing or improper include guard in headers

Use an include guard in headers to ensure the header is not included
more than once. Make the header guard match its file name.

Change-Id: I29b41e9d33e4ea17165f44c49de0a963574dd809
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
11 years agoAttempt to stabilize QMenu auto tests
J-P Nurmi [Fri, 14 Sep 2012 09:18:19 +0000 (11:18 +0200)]
Attempt to stabilize QMenu auto tests

Change-Id: I7d8260570a280182990d78e07d696aa4b46e1747
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
11 years agoMake maemo scope syntax in project files more generic
Laszlo Papp [Fri, 14 Sep 2012 14:21:34 +0000 (15:21 +0100)]
Make maemo scope syntax in project files more generic

It is necessary to use the n9 device file for now in scratchbox or/and on the
community open build service because the maemo platform mkspecs file assumes
that a cross-toolchain is used all the time. If no platform file is used, then
for instance certain plugins may not be built in general. There is currently an
ongoing issue with the meego plugin for context management in the Harmattan
components project. That is currently not built due to this issue, so no
orientation works in those applications.

The nice solution would be to make the maemo platform file work with cross and
native toolchains as well, but that requires a decent amount of investigation
and work. Thereby, the scope is extended this way for now.

Change-Id: I172c7d152bdbb2db279526d9fd1ca5648d0cd0a9
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
11 years agoBlackberry: fix tst_QFileInfo::fileTimes()
Rafael Roquetto [Thu, 13 Sep 2012 17:11:25 +0000 (14:11 -0300)]
Blackberry: fix tst_QFileInfo::fileTimes()

The Blackberry OS uses a filesystem with the noatime option,
which returns a "wrong" access time.

Change-Id: I04cdb899699e819a36e0917e30d750067b33388d
Reviewed-by: Tobias Koenig
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Peter Hartmann <phartmann@rim.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoQErrorMessage: Use qInstallMessageHandler instead of qInstallMsgHandler
Kai Koehne [Wed, 12 Sep 2012 07:56:51 +0000 (09:56 +0200)]
QErrorMessage: Use qInstallMessageHandler instead of qInstallMsgHandler

qInstallMsgHandler got deprecated in Qt 5. Use qInstallMessageHandler instead.

Change-Id: Ie1156ca11eb6be555c681007ddc230978211d029
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoAutotests: Use qInstallMessageHandler
Kai Koehne [Wed, 12 Sep 2012 08:42:25 +0000 (10:42 +0200)]
Autotests: Use qInstallMessageHandler

qInstallMsgHandler got deprecated in Qt 5.

Change-Id: Ib36983e66b3a8090b99f14e3fd4e210602a3f018
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoqdoc: Refactoring of qdoc data structures
Martin Smith [Thu, 13 Sep 2012 09:38:45 +0000 (11:38 +0200)]
qdoc: Refactoring of qdoc data structures

This commit is the beginning of a significant
overhaul of qdoc. A new class, QDocDatabase, is
added, which will eventually encapsulate all the
data structures used by qdoc. In this commit, the
Tree class is made private and only accessible
from QDocDatabase. Several maps structures are
also moved into QDocDatabase from other classes.

Much dead code and unused parameters were removed.
Further simplification will follow.

Change-Id: I237411c50f3ced0d2fc8d3b0fbfdf4e55880f8e9
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoFix the comment for the maemo mkspecs since it does not work for fremantle
Laszlo Papp [Fri, 14 Sep 2012 06:08:50 +0000 (07:08 +0100)]
Fix the comment for the maemo mkspecs since it does not work for fremantle

See the bug QTBUG-18361 for details.

Change-Id: Idbe2043c07cca795e8e2fca8204993dfb0a11988
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoRename the N9 device mkspecs folder to match the *-maemo* regex
Laszlo Papp [Thu, 13 Sep 2012 18:38:25 +0000 (19:38 +0100)]
Rename the N9 device mkspecs folder to match the *-maemo* regex

Change-Id: I0c7b74d67f44d776a74671d38bbc0f2424974c2c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Romain Pokrzywka <romain.pokrzywka@kdab.com>
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
11 years agoMark (non-public API's) ctor's as explicit
Sergio Ahumada [Sat, 8 Sep 2012 17:08:53 +0000 (19:08 +0200)]
Mark (non-public API's) ctor's as explicit

Make C++ class constructors that can be used with only one
required argument 'explicit' to minimize wrong use of the class.

Change-Id: I12ad5b6eb1794108c6b7464a2573e84068733b03
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoremove usage of QT_MAKEDLL in favor of the new QT_STATIC macro
Joerg Bornemann [Mon, 10 Sep 2012 15:21:04 +0000 (17:21 +0200)]
remove usage of QT_MAKEDLL in favor of the new QT_STATIC macro

Change-Id: I411cab0d92a8cad6b4f3676afe5cee050c4b789b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoRemove support for Intel C++ 7.1 and 8.0
Thiago Macieira [Fri, 14 Sep 2012 10:53:10 +0000 (12:53 +0200)]
Remove support for Intel C++ 7.1 and 8.0

Those compilers are old and untested. Qt is only tested with ICC 12.1
and 13.0.

Change-Id: I3a5fa9452de27a61ee087700cc054a76fe4160ee
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoFix repaint issue when resizing a window in Windows
Miikka Heikkinen [Wed, 12 Sep 2012 10:09:42 +0000 (13:09 +0300)]
Fix repaint issue when resizing a window in Windows

QWindowsWindow::handleWmPaint() cached the device context it got from
BeginPaint call and used that for the window when the backing store
blitted itself to the window. The problem with this device context is
that the clipping region is set to only encompass the newly exposed
areas, which means any changes caused by the resize on the previously
exposed area were not repainted.

Fixed by removing the DC caching. The benefit was minimal anyway.

Change-Id: I8bd3c4031432ce6b52434c80bfe65d35d9feae49
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoQDoc manual: ordered command list
Jerome Pasion [Tue, 11 Sep 2012 11:43:15 +0000 (13:43 +0200)]
QDoc manual: ordered command list

Some commands were not listed in alphabetical order.

Change-Id: I299abe145ca0f9d63c9ceefb801f5c53548e7938
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Martin Smith <martin.smith@nokia.com>
11 years agoDocumented QtOpenGL classes that have better replacements as obsolete.
Samuel Rødal [Fri, 14 Sep 2012 08:47:57 +0000 (10:47 +0200)]
Documented QtOpenGL classes that have better replacements as obsolete.

These have new replacements in QtGui since Qt 5.0.

Change-Id: I20e8fdd4e9c14d8c626eda3072217af1858bf492
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoqpa: avoid useless resize in DirectFB platform
Julien Brianceau [Thu, 13 Sep 2012 09:05:53 +0000 (11:05 +0200)]
qpa: avoid useless resize in DirectFB platform

Check current size before resizing QDirectFbBackingStore through
its resize() method to avoid useless deallocation/reallocation.

Change-Id: Idc32eb20d3d3cac988fa9dd2feb80910303f5763
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoAvoid deprecated QTest method in unit test
Pekka Vuorela [Tue, 11 Sep 2012 14:00:24 +0000 (17:00 +0300)]
Avoid deprecated QTest method in unit test

Change-Id: I1d6fc84962ba29a8963f99b87cccb4af465a2935
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agoRemove deprecated QInputMethod::visible()
Pekka Vuorela [Tue, 4 Sep 2012 13:20:01 +0000 (16:20 +0300)]
Remove deprecated QInputMethod::visible()

Replaced with isVisible()

Change-Id: Id47683954e89c53e73fc5171977609de7f1b4245
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoFix compilation on Harmattan
Simon Hausmann [Thu, 13 Sep 2012 10:52:49 +0000 (12:52 +0200)]
Fix compilation on Harmattan

The GLES2 libraries on Harmattan do not provide a typedef for GLChar.  Work
around it here by adding it. The Kkronos headers specify GLChar as a typedef to
char, so if an implementation already provides it, then this doesn't do any
harm.

Change-Id: I0848b72b81fcc602dc8d9eecefdacb5436163040
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agotests: Don't omit the body of a test function with QT_BUILD_INTERNAL
Sergio Ahumada [Tue, 4 Sep 2012 10:40:16 +0000 (12:40 +0200)]
tests: Don't omit the body of a test function with QT_BUILD_INTERNAL

Changing it outside of the test function definition to avoid running
empty/inapplicable test functions.

Change-Id: I713560cde7f715696984ed082d682900f5f1bcdd
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
11 years agoMove QRecursiveMutexPrivate to qmutex.cpp and mark inline
Thiago Macieira [Thu, 16 Aug 2012 14:12:07 +0000 (16:12 +0200)]
Move QRecursiveMutexPrivate to qmutex.cpp and mark inline

Disassembly of the optimised code shows that the compiler was already
inlining the bodies of one or both functions (since they're in the same
.cpp, it's allowed to do that).

However, since there was no "inline" marker, the compiler was also
emitting an out-of-line copy, which wasn't used by anyone, as the class
is not exported.

So add the marker. To make sure that they don't get used by accident
elsewhere, the class is moved to the .cpp file too.

Change-Id: Iead578ec9c7d8dd6b4e6bb582ce5b829cdec5992
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoRemove QBasicAtomic::tryLock with a timer
Thiago Macieira [Sat, 11 Aug 2012 16:18:27 +0000 (18:18 +0200)]
Remove QBasicAtomic::tryLock with a timer

The non-futex implementation does not support timed locks in
QBasicMutex. That is only supported in QMutex (due to the
destructor).

Change-Id: I46d33a66a36e05c8a4344823537178e80a6ddd76
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years ago#include the qmutex_xxx.cpp at the end of qmutex.cpp
Thiago Macieira [Sat, 11 Aug 2012 14:28:53 +0000 (16:28 +0200)]
#include the qmutex_xxx.cpp at the end of qmutex.cpp

This produces slightly better inlining results.

Change-Id: Ie86471577f888cb2d9c9989306ec69ce0a296108
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoUse storeRelease to unlock a mutex instead of fetchAndStoreRelease
Thiago Macieira [Sat, 11 Aug 2012 13:23:56 +0000 (15:23 +0200)]
Use storeRelease to unlock a mutex instead of fetchAndStoreRelease

We're not checking the result anyway, so use a simpler operation.

Change-Id: I8c2db35be86660b29d81dd97ce3e269de55a37df
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoAvoid calling QElapsedTimer::nsecsElapsed before the first futex sleep
Thiago Macieira [Sat, 11 Aug 2012 14:03:51 +0000 (16:03 +0200)]
Avoid calling QElapsedTimer::nsecsElapsed before the first futex sleep

The first time we're going to sleep, the timeout should be exactly the
value that was passed by the user. We don't need to calculate the time
elapsed between start() and a few lines below.

Change-Id: I99c363b6f0ecfd07ad787b79b75e61771733c2b3
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoSplit the timed mutex lock from the non-timed lock functions
Thiago Macieira [Sat, 11 Aug 2012 10:18:45 +0000 (12:18 +0200)]
Split the timed mutex lock from the non-timed lock functions

Non-timed mutex locks are by far more common, so let's try not to
penalise the locking of those with code that won't get used that
often.

Change-Id: I37f56d6429836467fdec2e588c0fb22d914b5d75
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoSimplify the futex lock loop: no need for nested while
Thiago Macieira [Sat, 11 Aug 2012 12:47:10 +0000 (14:47 +0200)]
Simplify the futex lock loop: no need for nested while

Once we enter the inner loop, we never exit it except to return from
the lockInternal() function, so the rest is never executed again.

As a consequence of this, we won't try to fastTryLock() twice per
mutex. Therefore, for a non-recursive mutex, if lockInternal() is
entered, we'll definitely need to use futexes.

Change-Id: Ice617ed27449c1fbdc112a159a86cd0660125e13
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoMake QBasicMutex be exclusively non-recursive
Thiago Macieira [Sat, 11 Aug 2012 14:45:14 +0000 (16:45 +0200)]
Make QBasicMutex be exclusively non-recursive

Dispatch to the recursive mutex functions from QMutex::lock, tryLock
and unlock.

This has the benefit that those using QBasicMutex will not go through
the testing for recursive mutexes. It simplifies a little the code for
those users.

For the users of QMutex, the code required to perform a lock does not
appear to change.

Change-Id: I0ca9965e012b283c30f1fab8e9f6d9b3288c2247
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoDon't recheck about timeout == 0 during mutex locking
Thiago Macieira [Sat, 11 Aug 2012 12:08:39 +0000 (14:08 +0200)]
Don't recheck about timeout == 0 during mutex locking

If the timeout wasn't zero, it can only become zero if we return from
futex() with a non-timeout reason but subsequently expires while we're
recalculating something.

A side effect is that we try-lock a non-recursive mutex exactly
once. Before this change, we'd fastTryLock() twice even with
timeout == 0.

Change-Id: I0af09fc2a84669a683a843fcf1513203b075dfb7
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoHoist the recursive mutex check out of the inner loop
Thiago Macieira [Sat, 11 Aug 2012 11:51:26 +0000 (13:51 +0200)]
Hoist the recursive mutex check out of the inner loop

A non-recursive mutex doesn't suddenly become recursive, so we don't
need to check it multiple times.

Change-Id: Id040254b6142d320a7bd3111491082ad09968404
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoQtDBus: added missing QT_NO_DBUS guards
J-P Nurmi [Wed, 12 Sep 2012 12:00:49 +0000 (14:00 +0200)]
QtDBus: added missing QT_NO_DBUS guards

Change-Id: If3bbba7765a4949e5a7aefca063dc56c21c06687
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix QDBusServer with more than one connection
Jan Arne Petersen [Fri, 23 Mar 2012 12:58:04 +0000 (13:58 +0100)]
Fix QDBusServer with more than one connection

Create a new QDBusConnectionPrivate for every new connection in
qDBusNewConnection instead of creating a single QDBusConnectionPrivate
in the QDBusServer constructor which gets assigned the latest connected
DBusConnection in qDBusNewConnection (and loses track on all previous
DBusConnections).

Also extend tst_QDBusConnection::registerObjectPeer() test with multiple
connections to the server.

Task-Number: 24921
Change-Id: I4341e8d48d464f3fe0a314a6ab14f848545d65a0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd qdbusconnectionmanager_p.h to the HEADER list.
Thiago Macieira [Wed, 12 Sep 2012 12:33:14 +0000 (14:33 +0200)]
Add qdbusconnectionmanager_p.h to the HEADER list.

Change-Id: Iacba510beb0ee72182931e97044eaa5b46df30af
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
11 years agothrow() is C++, so don't use it in C mode
Thiago Macieira [Wed, 12 Sep 2012 13:20:06 +0000 (15:20 +0200)]
throw() is C++, so don't use it in C mode

Q_DECL_NOTHROW is used by qVersion(), which can be extern "C".

Change-Id: If71f3bc3a0df3e8321237e5ac9f3bea82380c1e4
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoconfig.tests/arch: make distclean on the test, not qt
Mark Brand [Thu, 13 Sep 2012 21:46:41 +0000 (23:46 +0200)]
config.tests/arch: make distclean on the test, not qt

Additionally, qmake no longer needs -o since we are in the project
directory.

Change-Id: I89dbe829c064663b653e8f747f0849d63ceb367e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoUse QElapsedTimer instead of QTime to measure elapsed time
Thiago Macieira [Wed, 12 Sep 2012 12:56:06 +0000 (14:56 +0200)]
Use QElapsedTimer instead of QTime to measure elapsed time

QElaspedTimer is a lot more efficient.

Change-Id: I66d9514108f800a45181d8960b01a5e7d3fa9e80
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoIncrease the fuzziness of the QSemaphore test to 50 ms
Thiago Macieira [Wed, 12 Sep 2012 12:55:09 +0000 (14:55 +0200)]
Increase the fuzziness of the QSemaphore test to 50 ms

The test tries to acquire a semaphore that isn't ready, so it will
timeout. The test is working properly.

The only problem is that 10 ms is too strict. For a wide variety of
reasons, especially since the Qt CI system runs multiple tests in
parallel, the program may not run again in that 10 ms window.

Change-Id: Ic0f684895f73646db5f1cc783fe9ef75fb1ab02b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoFixed: QFileInfo::lastModified() returning wrong value.
Markku Heikkila [Tue, 5 Jun 2012 12:50:13 +0000 (15:50 +0300)]
Fixed: QFileInfo::lastModified() returning wrong value.

Fixed so that empty QDateTime is returned for non existing file.
Fixed also created() and lastRead() to return empty QDateTime for
non existing file.

QFileSystemEngine::fillMetaData() returned true for non existing
files. This was also corrected.

Task-number: QTBUG-25811

Change-Id: I523eb99e4405b4b813b2950f85cc646239181d07
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Christian Stromme <christian.stromme@nokia.com>
11 years agoDoc: Marked the QUrlInfo class documentation as \internal
Venugopal Shivashankar [Thu, 13 Sep 2012 11:38:38 +0000 (13:38 +0200)]
Doc: Marked the QUrlInfo class documentation as \internal

Change-Id: Ib84c9ffc181edf17850d5334c95c035428d31b6c
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoTest: Redo remove QSKIP from printsupport tests
Caroline Chao [Fri, 7 Sep 2012 12:59:15 +0000 (14:59 +0200)]
Test: Redo remove QSKIP from printsupport tests

Redoing 5704cbc462ad0b316a6b55a0f1dadc3c50762ef

This can't work, because the define comes from qconfig.h, not qmake.

Skipping initTestCase and cleanupTestCase when QT_NO_PRINTER is
defined.

Change-Id: I2527c018294b7518a4692f2c93da933848640b5d
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
11 years agoFix QAbstractItemModel documentation errors.
Mitch Curtis [Wed, 12 Sep 2012 11:59:55 +0000 (13:59 +0200)]
Fix QAbstractItemModel documentation errors.

Added a dependency on the qtwidgets module to qtcore.qdocconf so that
it has access to widgets examples. Also added examples/widgets to
exampledirs.

Change-Id: I7a69f51d51b65bd534950f0df5b348d6ef61a5d9
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoDoc: Fix snippet bug in Getting Started Qt
Geir Vattekar [Wed, 12 Sep 2012 10:07:45 +0000 (12:07 +0200)]
Doc: Fix snippet bug in Getting Started Qt

Change-Id: I9c8caabee4c6f6131a69851586ef992138beb211
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoFix QPrinter documentation errors.
Mitch Curtis [Thu, 13 Sep 2012 08:06:21 +0000 (10:06 +0200)]
Fix QPrinter documentation errors.

Removed documentation for non-existent functions and added
external-resources.qdoc.

Change-Id: I5159540d8304dd6e2e452be11404d40fc599a2a7
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoFix qtestlib-manual.qdoc errors.
Mitch Curtis [Thu, 13 Sep 2012 08:44:01 +0000 (10:44 +0200)]
Fix qtestlib-manual.qdoc errors.

Corrected paths to tutorials and added qt-webpages.qdoc for missing
links.

Change-Id: I1c318f2f80804b73941acfcb5a53df456108f018
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoRemove documentation for non-existent QToolButton functions.
Mitch Curtis [Wed, 12 Sep 2012 14:31:08 +0000 (16:31 +0200)]
Remove documentation for non-existent QToolButton functions.

Change-Id: If453b181c53bc0b80ec9ba7745d24399520bbc4b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoRemove documentation for non-existent QToolBox functions.
Mitch Curtis [Wed, 12 Sep 2012 14:16:21 +0000 (16:16 +0200)]
Remove documentation for non-existent QToolBox functions.

Change-Id: I185e70f2e5183b02ce2c487991ac98aafc990bfb
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoDocs: Add "\since" info for QEventLoopLocker.
Christian Kandeler [Tue, 11 Sep 2012 10:34:43 +0000 (12:34 +0200)]
Docs: Add "\since" info for QEventLoopLocker.

Change-Id: Ie749b6f2539be5bd08d7a6a00eb4e8655cec1227
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoQt 5 API should correspond to Qt 4.8 on Windows, not 4.9.
Stephen Kelly [Wed, 12 Sep 2012 15:51:35 +0000 (17:51 +0200)]
Qt 5 API should correspond to Qt 4.8 on Windows, not 4.9.

Change-Id: I052e76b4dcf0765d142567f748022d652072075c
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoRemove documentation for non-existent QTextEdit functions.
Mitch Curtis [Wed, 12 Sep 2012 14:07:52 +0000 (16:07 +0200)]
Remove documentation for non-existent QTextEdit functions.

Change-Id: I92b67e676c78c641bfefc636efada22254e0bca3
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoFix QByteArray documentation errors.
Mitch Curtis [Wed, 12 Sep 2012 11:33:51 +0000 (13:33 +0200)]
Fix QByteArray documentation errors.

Add missing external resource link. Provide constructor documentation.

Change-Id: I6d28a19da5c409dd0e0b48e0f693837b63de38f0
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
11 years agoBlackberry: fix tst_QFileInfo::isWritable()
Rafael Roquetto [Thu, 13 Sep 2012 14:29:47 +0000 (11:29 -0300)]
Blackberry: fix tst_QFileInfo::isWritable()

This test checks the access permissions for '/etc/passwd', however the
filesystem on Blackberry is always read-only

Change-Id: I9299531397d4467287541b04184540ad6e2eae72
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoAdd QMAKE_CXXFLAGS_CXX11 & QMAKE_LFLAGS_CXX11 flags of win32-g++
Yuchen Deng [Sun, 19 Aug 2012 08:10:07 +0000 (16:10 +0800)]
Add QMAKE_CXXFLAGS_CXX11 & QMAKE_LFLAGS_CXX11 flags of win32-g++

Change-Id: I752c37b581af6d5ea171ec99ef0afe29ffa78002
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix compilation for win32-g++ and C++11
Kai Koehne [Wed, 5 Sep 2012 14:10:47 +0000 (16:10 +0200)]
Fix compilation for win32-g++ and C++11

gcc defines __STRICT_ANSI__ implicitly for -std=c++0x. The MinGW headers
however omit the declaration of common functions like putenv then.

Instead of working around this MinGW particularity on a case by case basis, rather
just use gnu++0x for QtCore.

Change-Id: Iefe4e7f77014a4f1d501b149e34f7049deb52fb9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoAdd c++11 option to configure.exe
Kai Koehne [Wed, 5 Sep 2012 08:31:49 +0000 (10:31 +0200)]
Add c++11 option to configure.exe

Also check for c++11 support in configure.exe (which is also used by MinGW builds).
The c++11 check is therefore moved from 'unix' to 'common' directory.

Change-Id: I082848f032c2770e52e34f331b83820f395c06b6
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoNetwork: Fix gcc warning about conversion from string to wchar *
Kai Koehne [Wed, 12 Sep 2012 14:03:50 +0000 (16:03 +0200)]
Network: Fix gcc warning about conversion from string to wchar *

Fix gcc 4.7 warning:
'deprecated conversion from string constant to 'SEC_WCHAR*'

Change-Id: I5df44ffdc0d505789f99b58d68e02b7535ce761b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoKernel: Fix gcc warning in qsharedmemory_win.cpp
Kai Koehne [Wed, 12 Sep 2012 13:43:09 +0000 (15:43 +0200)]
Kernel: Fix gcc warning in qsharedmemory_win.cpp

Fix gcc 4.7 'arning: converting 'false' to pointer type 'HANDLE {aka void*}' [-Wconversion-null]'

Change-Id: I28d890d5fd4975517a9329d68c9ef73f6fadf36c
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoKernel: Fix gcc warning about narrowing conversion
Kai Koehne [Wed, 12 Sep 2012 13:35:31 +0000 (15:35 +0200)]
Kernel: Fix gcc warning about narrowing conversion

Fix gcc 4.7.1 warning: 'narrowing conversion of 'value' from 'int' to
'uint {aka unsigned int}' inside { } is ill-formed in C++11 '

Change-Id: I64ee1a35ecd60cc6a5d7d024c5f903078b3d4f60
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoThreads: Fix mingw-gcc warning about 'cast to pointer from integer of different size'
Kai Koehne [Wed, 12 Sep 2012 13:30:59 +0000 (15:30 +0200)]
Threads: Fix mingw-gcc warning about 'cast to pointer from integer of different size'

Use reinterpret_cast to convert from DWORD to pointer.

Change-Id: I17a12940850aeb0bc27080725a18eb93fee72ff7
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoImprove QMetaType docs.
Jędrzej Nowacki [Tue, 11 Sep 2012 13:55:08 +0000 (15:55 +0200)]
Improve QMetaType docs.

Change-Id: I4ad4188d1bb984b83ffe4bb4ff098158e888d183
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Mitch Curtis <mitch.curtis@nokia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agoFix crash when invalidating a QSortFilterProxyModel
Stephen Kelly [Thu, 13 Sep 2012 13:23:15 +0000 (15:23 +0200)]
Fix crash when invalidating a QSortFilterProxyModel

Task-number: QTBUG-27122

Change-Id: Ibca46b88442f4f92422d9b3182e4bbf25716a07f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agounscramble option help text
Mark Brand [Thu, 13 Sep 2012 13:54:11 +0000 (15:54 +0200)]
unscramble option help text

Change-Id: I1e38aced5c3188c4db470e26fa117b0dd08bf100
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoremove support for non-lowercased $$eXpaNd() functions
Oswald Buddenhagen [Mon, 3 Sep 2012 15:08:56 +0000 (17:08 +0200)]
remove support for non-lowercased $$eXpaNd() functions

we have been warning about such functions for a while now, now execute.
the qmake language is (generally) case-sensitive, so this wasn't all
that useful anyway.

Change-Id: I1388ac2d5a1104389aeb3347e739a0d5e69e138d
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agodelete grossly outdate changelog file
Oswald Buddenhagen [Wed, 12 Sep 2012 17:29:17 +0000 (19:29 +0200)]
delete grossly outdate changelog file

Change-Id: Ibd35690e82849457a10d8d2f99564d2e0bde257b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agobump qmake version
Oswald Buddenhagen [Wed, 12 Sep 2012 17:27:42 +0000 (19:27 +0200)]
bump qmake version

the world has awaited this moment for a long time. very patiently.

Change-Id: Iba8697e7eebb5cdd43caadb64cd89126de395e66
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoreplace qmake_version() with a simple string literal
Oswald Buddenhagen [Wed, 12 Sep 2012 17:27:09 +0000 (19:27 +0200)]
replace qmake_version() with a simple string literal

Change-Id: I12e715aab23e01267e8a1434a3a965276c1a6182
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agodon't pretend that break()/next()/return() are functions
Oswald Buddenhagen [Tue, 11 Sep 2012 17:30:29 +0000 (19:30 +0200)]
don't pretend that break()/next()/return() are functions

it's a pretty braindead thing to implement control flow statements as
(built-in) functions.

as a "side effect", this fixes return() value handling for lists.

(cherry picked from qtcreator/f53ed6c4b3feca59a94d4f0de8b1a7411122e30e)
(cherry picked from qtcreator/f529e22ec38fb9a656d74394e484d2453cf42c69)
Change-Id: I59c8efa0e4d65329327115f7f8ed20719e7f7546
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoimprove parse error recovery paths
Oswald Buddenhagen [Tue, 11 Sep 2012 16:43:29 +0000 (18:43 +0200)]
improve parse error recovery paths

to reduce collateral damage from parse errors.

(cherry picked from qtcreator/00c0d0d5e42d28e03c2846c17d3acbcd8420859d)
Change-Id: Ic59700d657069d3b15372509b4bff966057d27a9
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoRemove documentation for non-existent QLineEdit functions.
Mitch Curtis [Wed, 12 Sep 2012 13:44:22 +0000 (15:44 +0200)]
Remove documentation for non-existent QLineEdit functions.

Several functions in qlineedit.cpp are documented but don't exist. QDoc
was complaining... e.g.: "Cannot find 'repaintArea(...)' in '\fn' void
QLineEdit::repaintArea(int a, int b)".

Change-Id: I56ca0dbc8e7b4da5f23ad2ca8d8280cdf91c2dc2
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
11 years agoFix regression in QTextDocument::toHtml() with font pixel size
Eskil Abrahamsen Blomfeldt [Wed, 12 Sep 2012 10:13:35 +0000 (12:13 +0200)]
Fix regression in QTextDocument::toHtml() with font pixel size

Introduced by 2e0003eda4783f69a40fb4b31e7084c761d9640d. We were
missing a attributesEmitted=true which caused the output from
toHtml() to sometimes be invalid when using pixel sizes to
specify the font size.

Task-number: QTBUG-25778
Change-Id: Ied61fcaef425a590d71c0b52292ac676cb88ba52
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jiang Jiang <gzjjgod@gmail.com>
11 years agoFix build with QT_NO_EXCEPTIONS
Harald Fernengel [Wed, 12 Sep 2012 12:27:18 +0000 (14:27 +0200)]
Fix build with QT_NO_EXCEPTIONS

qTerminate is declared within a #ifndef QT_NO_EXCEPTIONS block, so the
implementation must use the same #ifdef

Change-Id: I5d2d58a55fce5084c0538d18a9dd3998b12ed703
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Arvid Picciani <aep@exys.org>
11 years agoAdd configure -help output for the ICU option.
Thiago Macieira [Mon, 10 Sep 2012 15:39:44 +0000 (17:39 +0200)]
Add configure -help output for the ICU option.

Change-Id: I922d3fd4d3c2d9e8e844dfb661a91934e4b05aea
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoTest: Update QSKIP for tst_QGLThread on Mac
Caroline Chao [Wed, 5 Sep 2012 12:38:18 +0000 (14:38 +0200)]
Test: Update QSKIP for tst_QGLThread on Mac

Task-number: QTBUG-22361
Change-Id: I6182a37dc38294011fd3b3934317f22c7297a4ca
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
11 years agoPartial revert "cross compile with mingw": unbreak pkg-config
Mark Brand [Wed, 12 Sep 2012 07:01:45 +0000 (09:01 +0200)]
Partial revert "cross compile with mingw": unbreak pkg-config

This partially reverts commit
07a978d3d4b41739eff1061dc45dbfa737bf78b9.

Despite what the commit message said, pkg-config previously worked
and was useful, particularly for static Qt. Qt itself even installs
its own .pc files.

Note: The mkspec win32-g++-cross had a PKG_CONFIG definition to avoid
using the pkg-config installation on the build machine.

Change-Id: Ia4a8d18cd57f74a00bdb9b6a171d20151978a9cc
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Peter Kümmel <syntheticpp@gmx.net>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoqpa: extend drawPixmap capabilities
Julien Brianceau [Tue, 11 Sep 2012 15:20:30 +0000 (17:20 +0200)]
qpa: extend drawPixmap capabilities

Extend drawPixmap capabilities for qpa through new ExtendedPixmapCapability
QBlittable flag and add related implementation in DirectFB platform.

Change-Id: If5436e16bfb37bf081bf864cad73a5e97394df8c
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
11 years agoCocoaPlugin: add missing auto release pools
Richard Moe Gustavsen [Thu, 6 Sep 2012 10:20:34 +0000 (12:20 +0200)]
CocoaPlugin: add missing auto release pools

Add auto release pools to the entry functions of the plugin
that leads to mem leaks. By adding them as early as possible
in the callstack, we avoid creating to many pools

Change-Id: I715e06bd8d3280c6877340fc724eb1afbf804ae1
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
11 years agoDoc: Fix misc. doc errors and document undocumented functions
aavit [Tue, 11 Sep 2012 09:37:06 +0000 (11:37 +0200)]
Doc: Fix misc. doc errors and document undocumented functions

Change-Id: I0c1e0a36ee37d5a8f3741f0405f63f9b26967f32
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
11 years agoTest: remove QSKIP from printsupport tests
Caroline Chao [Fri, 7 Sep 2012 12:59:15 +0000 (14:59 +0200)]
Test: remove QSKIP from printsupport tests

Exclude printsupport tests from the build when QT_NO_PRINTER is
defined.

Change-Id: Iedae91666a599f4b77250abc8aac14c256fde34e
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
11 years agoStabilize qprinter test
Eskil Abrahamsen Blomfeldt [Mon, 10 Sep 2012 13:05:28 +0000 (15:05 +0200)]
Stabilize qprinter test

The CreationDate entry in the two PDF files can potentially
be different depending on when the test is run. We ignore the
line for this entry when comparing the two results.

Task-number: QTBUG-27171
Change-Id: I8978678295217edd537edb0d2c25260813aa3d93
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
11 years agoDon't manipulate immutable data
João Abecasis [Fri, 24 Aug 2012 08:53:58 +0000 (10:53 +0200)]
Don't manipulate immutable data

QArrayData can point to data it does not own (cf. fromRawData()), which
shouldn't be modified. Not even upon destruction, as this data can live
in Read-Only memory or be otherwise shared outside the QArrayData realm.

Change-Id: I8bdf3050a17802fb003b77d5f543fe31769a7710
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andreas Hartmetz <ahartmetz@gmail.com>
11 years agoQFileSystemEngine: fix realpath() buffer size
Rafael Roquetto [Tue, 11 Sep 2012 12:58:32 +0000 (09:58 -0300)]
QFileSystemEngine: fix realpath() buffer size

realpath() returns at most PATH_MAX _plus_ the terminator.

Change-Id: I4c2e3e166a5f476863ad8c6999800e6468535dbe
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoQNX: fix call to realpath() on QFileSystemEngine
Rafael Roquetto [Tue, 11 Sep 2012 12:45:20 +0000 (09:45 -0300)]
QNX: fix call to realpath() on QFileSystemEngine

QNX6, as opposed to later QNX versions, does not define the behavior of
realpath() when the second parameter is NULL. We leave it then for the
compiler to decide which implementation to call, by relying on the _POSIX_VERSION_
macro, which in QNX6 happens to evaluate to < 200801L.

Change-Id: I3a6d3859858f56b69f0d391384c2703083a01257
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agodon't require (dummy) qconfig.h for qmake build
Oswald Buddenhagen [Tue, 11 Sep 2012 13:22:29 +0000 (15:22 +0200)]
don't require (dummy) qconfig.h for qmake build

Change-Id: I22a2c9aa1366ff858b3bb646617543968c810136
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agocall syncqt before building qmake
Oswald Buddenhagen [Tue, 11 Sep 2012 13:08:48 +0000 (15:08 +0200)]
call syncqt before building qmake

otherwise non-developer builds (which don't have it run by the configure
bootstrap) don't work.

Change-Id: Ide49c0d1646b22687d16366530b246c3754926eb
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoremove setcepaths.bat
Oswald Buddenhagen [Tue, 11 Sep 2012 12:56:49 +0000 (14:56 +0200)]
remove setcepaths.bat

we don't need it any more, as the makefiles are self-contained now.

Change-Id: I1a560a8331856e246e03c55ec1b1dd1a5cb112e4
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>