profile/ivi/qtbase.git
12 years agoconfigure: Remove the -dwarf2 argument for Mac OS X builds
Bradley T. Hughes [Fri, 11 May 2012 08:03:49 +0000 (10:03 +0200)]
configure: Remove the -dwarf2 argument for Mac OS X builds

Modern versions of Xcode properly support dwarf2, and as such dwarf2 is
always enabled. This change removes the ability to turn it off, making
dwarf2 non-optional.

Change-Id: I149daeae6048ee8a1ed116363572173ad219102e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQtNetwork: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:54:40 +0000 (01:54 +0100)]
QtNetwork: remove \link usages

Change-Id: I3f804a31eb9f623fb884052b4892fd45cdcdd126
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtSql: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:59:34 +0000 (01:59 +0100)]
QtSql: remove \link usages

Change-Id: I9723c34184b298e8b0a2be7185416b9e911f948e
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoRemove declarative from qmltestcase.prf.
Friedemann Kleint [Fri, 11 May 2012 09:06:12 +0000 (11:06 +0200)]
Remove declarative from qmltestcase.prf.

Change-Id: Ia4bf45132a74ec7bbbb2a918088c176f87a26e76
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQDoc: Return correct path when quoting example files.
Casper van Donderen [Thu, 10 May 2012 15:35:00 +0000 (17:35 +0200)]
QDoc: Return correct path when quoting example files.

When the exampledirs qdocconf variable is . the first 2 characters of
the file to quote from were being cut off, since there was a string
comparison between the size of the strings with and without './'

Change-Id: Iede54b5f77ec8a7530c608908f08e7eb4351f0f1
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agotst_QNetworkReply: fix backgroundRequestInterruption test.
Martin Petersson [Thu, 10 May 2012 16:20:31 +0000 (18:20 +0200)]
tst_QNetworkReply: fix backgroundRequestInterruption test.

After we have change the policy we should set the readbuffersize to
unlimited again, so that we try to download all data.

Change-Id: I1b9bdb6c2e5f408c920f6e6d7e85a39e4c18316b
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoQNetworkReply::setReadBufferSize fix for threaded http
Martin Petersson [Mon, 7 May 2012 10:41:58 +0000 (12:41 +0200)]
QNetworkReply::setReadBufferSize fix for threaded http

Added the setReadBufferSize functionallity again by limiting the
amount that the delegate read from the channel. Each time that data is
fetched from the reply buffer, we communicate back to the thread so
that more data can be fetched.

Task-number: QTBUG-25327
Change-Id: I2f9950196e64acd09bc8da50c1116f2c9deacad4
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoconfigure.exe: move a few things from qmodule.pri to qconfig.pri
Rohan McGovern [Thu, 10 May 2012 00:29:24 +0000 (10:29 +1000)]
configure.exe: move a few things from qmodule.pri to qconfig.pri

QMAKE_RPATHDIR, QT_LIBINFIX and QT_NAMESPACE were previously set in
qmodule.pri on Windows, and qconfig.pri on platforms other than Windows.
Make the behavior consistent, move them to qconfig.pri.

qconfig.pri is the correct file because these variables need to be
visible for _all_ users of Qt, and not only the other Qt modules (the
ones who load qmodule.pri).

Change-Id: I4d517488a80b134a78ebde8d3196bdab3c3ab991
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agosignificant unicodetables generator performance optimization
Konstantin Ritt [Tue, 8 May 2012 01:43:16 +0000 (04:43 +0300)]
significant unicodetables generator performance optimization

since the entire range of a valid unicode code points is in use, QHash
is suboptimal and could be replaced with QList;
taking the value by ref and not inserting it back to the map + not calculating
the default value over and over gains us up to 60% performance boost!

Change-Id: I48c54a8e88472cf76c79c0aac44e65eeefa44861
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoLogging: Show pattern warning also on Windows GUI apps
Kai Koehne [Mon, 7 May 2012 08:03:49 +0000 (10:03 +0200)]
Logging: Show pattern warning also on Windows GUI apps

Change-Id: Ibbeb606469e7cec5aa68525b05714453151ee066
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix -Wlogical-op warning in qtestmouse.h
David Faure [Sat, 5 May 2012 20:37:52 +0000 (22:37 +0200)]
Fix -Wlogical-op warning in qtestmouse.h

error: logical 'or' of collectively exhaustive tests is always true
[-Werror=logical-op]
Indeed these asserts do not test anything, given that MouseButtonMask is
0xffffffff

Change-Id: I33cf59d3e77d9c644fc307de36f4e0ab1bea80f8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoDon't return http proxy for server usages
Shane Kearns [Tue, 8 May 2012 17:09:02 +0000 (18:09 +0100)]
Don't return http proxy for server usages

Http proxy cannot support server sockets or udp sockets, so don't
offer it as the system proxy (in the generic environment variables
implementation)

Change-Id: I234ab1024952b2630e668ddc35c665efade8e2b9
Reviewed-by: Adrien Bustany <adrien@bustany.org>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoDoc: Fix \sa usage
Marius Storm-Olsen [Thu, 10 May 2012 11:10:23 +0000 (13:10 +0200)]
Doc: Fix \sa usage

Ensure comma between elements (757 missing), single space and curly-
braces around title elements, etc.

Change-Id: Id16c3fda7fc47a12a0682f8720214f4990609a97
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoAdd Windows NTLM Sign-Sign-On / Integrated Proxy Authentication
Aron Rosenberg [Wed, 25 Apr 2012 17:45:35 +0000 (10:45 -0700)]
Add Windows NTLM Sign-Sign-On / Integrated Proxy Authentication

- Adds support for doing NTLMv2 integrated authentication via logged in
users domain credentials using the Windows SSPI api.

Task-number: QTBUG-17332
Change-Id: I4e840f7fb54ce1ace8a6151868f59f413d232295
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoDo not use charset loaded by fontconfig
Jiang Jiang [Wed, 9 May 2012 14:38:54 +0000 (16:38 +0200)]
Do not use charset loaded by fontconfig

The only use for storing charset loaded by fontconfig in font engines
is for determine if a font supports certain codepoint, however FreeType
already does that. The charset loaded is sometimes not complete, for
instance in fontconfig 2.9.0 it removed Apple Roman platform support
for cmap loading, thus results a regression in common symbol fonts
(Wingdings, Webdings) rendering. Because those symbol fonts produced
by Monotype only contain two cmap tables: Apple Roman and Microsoft
Symbol, since the Microsoft Symbol table has a weird 0xF000 offset,
we always fallback to the Apple Roman cmap table.

Removing freetype charset cache also make each font engine consuming
less memory.

Change-Id: I88f3f44981f3a1c517b84809a3f5b834ffff7681
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoAdd more descriptions for configure for Windows
Andreas Holzammer [Thu, 10 May 2012 12:37:57 +0000 (14:37 +0200)]
Add more descriptions for configure for Windows

Add some more of the prefix options that are
already implemented to the usage information.

Change-Id: I89ee37ebc6deee8b6a5fd5a1c16d26ae3ead1f30
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoImplement the move constructor for containers.
Olivier Goffart [Sun, 22 Apr 2012 20:04:46 +0000 (22:04 +0200)]
Implement the move constructor for containers.

This changes all the containers that uses QtPrivate::RefCount
(QMap already had one), and QVariant

In Qt 4.8, it was pointless to have the move constructor because we did
not have quick way to re-initialize a null container. (shared_null still
needed to be refcounted)
But now that we have RefCount, and that the shared_null do not have
reference count, we can implement a fast move constructor that do not generate
code to increment the reference count.

Change-Id: I2bc3c6ae96983f08aa7b1c7cb98d44a89255160b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoMake sure animation drivers knows about the temporal offset after a pause
Gunnar Sletta [Thu, 10 May 2012 08:39:42 +0000 (10:39 +0200)]
Make sure animation drivers knows about the temporal offset after a pause

Change-Id: I932e469389241f6a12816b52180936f061cd78f8
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
12 years agoChange to/fromAscii to to/fromUtf8 in the QString conversions
Thiago Macieira [Wed, 2 May 2012 11:25:16 +0000 (13:25 +0200)]
Change to/fromAscii to to/fromUtf8 in the QString conversions

This commit matches the previous documentation commit that says that
the conversions are applied using to/fromUtf8.

Change-Id: I304e4d866ddedac5094fef8500cbeba299a02cb5
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agofix QString::isRightToLeft() for SMP code points
Konstantin Ritt [Thu, 10 May 2012 09:07:58 +0000 (12:07 +0300)]
fix QString::isRightToLeft() for SMP code points

Change-Id: Ib8afc932d9566df1a8922da9a75b9f9cbbdd321d
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMake the qt5_use_modules public API.
Stephen Kelly [Sat, 5 May 2012 21:40:19 +0000 (23:40 +0200)]
Make the qt5_use_modules public API.

This cmake function handles all of the necessary logic for using the
include directories of Qt modules, linking to Qt modules, adding
the required definitions, and most importantly, adding the position
independent flags required on UNIX systems to use Qt by default.

The function relies on functionality available in CMake 2.8.8, so it
is only available if that version of CMake or greater is used.

Change-Id: Ibe698e06819129479348c240844264c41553b5fb
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoKeep object name of QWidgetWindow in sync with the widget.
Friedemann Kleint [Thu, 10 May 2012 14:57:41 +0000 (16:57 +0200)]
Keep object name of QWidgetWindow in sync with the widget.

Use new objectNameChanged() signal.

Change-Id: I247566bd51d23ec65ff74ba9ac7be0d18e8ff160
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoCompile.
Morten Johan Sorvig [Thu, 10 May 2012 11:53:19 +0000 (13:53 +0200)]
Compile.

gtkstyle depends on x11.

Change-Id: Ia056b5e63c1f1eedfa107f7622226e6a59dae894
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoFix deprecation warnings in QtGui, QtPlatformSupport.
Friedemann Kleint [Wed, 9 May 2012 15:21:32 +0000 (17:21 +0200)]
Fix deprecation warnings in QtGui, QtPlatformSupport.

Change-Id: I355a059c5311928301907d5d1e3ecce00a94341d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoFix for windows platform plugin to work with WINCE.
Bjoern Breitmeyer [Thu, 10 May 2012 12:43:26 +0000 (14:43 +0200)]
Fix for windows platform plugin to work with WINCE.

Made opengl optional.
Made Clipboard and Accessability optional.
Moved internal mime data into its on source file,
was implemented in the clipboard source
which is just strange.

Change-Id: I6ddf0c656533bd45e22e24492fc2254d15b7822f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoAdd underscore to internal implementation detail variables.
Stephen Kelly [Thu, 10 May 2012 12:39:26 +0000 (14:39 +0200)]
Add underscore to internal implementation detail variables.

Change-Id: I4c70ed2808396931fff986fbfad5940dd39e74f6
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoInclude the VERSION_STRING in CMake config files.
Stephen Kelly [Thu, 10 May 2012 12:36:39 +0000 (14:36 +0200)]
Include the VERSION_STRING in CMake config files.

Change-Id: I9f0e9316241b4cb615350876b11ee263f7efd3bf
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoRemove the HAVE_DECLARATIVE define.
Stephen Kelly [Thu, 10 May 2012 12:40:19 +0000 (14:40 +0200)]
Remove the HAVE_DECLARATIVE define.

It is unconditionally defined.

Change-Id: I8961805eab984dd7331b7ce3dc228a031193892b
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix warnings in evdevkeyboard-plugin.
Friedemann Kleint [Wed, 9 May 2012 15:18:47 +0000 (17:18 +0200)]
Fix warnings in evdevkeyboard-plugin.

- Fix warning about set-but-unused variable in case QT_NO_LIBUDEV.
- Compile with QT_NO_CAST_FROM_ASCII, string usages.

Change-Id: Ie98f1b4283919be878f8bbfc6e7378ad655152f8
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
12 years agoChange Wince functions definition
Andreas Holzammer [Wed, 9 May 2012 14:11:49 +0000 (16:11 +0200)]
Change Wince functions definition

Use inline functions, instead of defines for global
functions. As the defines will break member functions
that have the same name. As inline functions are only
available for C++, just define them for C++. This will
only effect 3rd party dependencies, but they don't need
them anyhow.

Change-Id: I929562401e03f08b068edba107a3f67a585952a2
Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoCorrectly parse json documents with a leading BOM
Lars Knoll [Thu, 10 May 2012 11:24:28 +0000 (13:24 +0200)]
Correctly parse json documents with a leading BOM

A leading byte order mark is valid in utf-8 and we should
parse documents starting with those correctly.

Change-Id: Id85398ff6e05b93ceefbaf4a6de5571d5e61ca13
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agoQDoc: Generate images inline for \inlineimage
Casper van Donderen [Thu, 10 May 2012 09:27:35 +0000 (11:27 +0200)]
QDoc: Generate images inline for \inlineimage

Change-Id: I1ee001870ac1289a8b0340707f62c7cc3fb84492
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoqdoc: Removed some obsolete ifdefs
Martin Smith [Thu, 10 May 2012 11:11:13 +0000 (13:11 +0200)]
qdoc: Removed some obsolete ifdefs

Also removed a few useless comments.

Change-Id: I62a52bb826c1299ea9da3f0f3c23f267703c6509
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix warnings about unused variable d.
Friedemann Kleint [Thu, 10 May 2012 09:58:06 +0000 (11:58 +0200)]
Fix warnings about unused variable d.

Change-Id: I8fc204928699c5a5821f9381e08b52fa2bc74fbf
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoCompile with -qtnamespace on Windows
Bradley T. Hughes [Thu, 10 May 2012 09:11:57 +0000 (11:11 +0200)]
Compile with -qtnamespace on Windows

qatomic_msvc.h declares some Windows intrinsic functions which should
not be in the Qt namespace.

Change-Id: I1b2f91798159c08cf167ee3d1ed2818c12c9b833
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoXShaping drag and drop fixes
Albert Astals Cid [Tue, 8 May 2012 23:41:33 +0000 (16:41 -0700)]
XShaping drag and drop fixes

No shaping rectangles means no interaction with the window
The shaping rectangles are based on the window coords, so need to substract the window coords when checking for the point

Change-Id: Ic9004a8ec0f447cddcd1b4324d9fd60a94787cb9
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoqdoc: Fixed a qdoc error problem
Martin Smith [Thu, 10 May 2012 08:38:42 +0000 (10:38 +0200)]
qdoc: Fixed a qdoc error problem

When a page exists in more than one file,
qdoc was reporting this sometimes without
reference to the locations of the files.
This has now been fixed.

Change-Id: I0697acc170b94a74b15fb384556dd76f764f7792
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoAvoid trying to load libthai again and again if it's not present
Simon Hausmann [Thu, 10 May 2012 08:30:58 +0000 (10:30 +0200)]
Avoid trying to load libthai again and again if it's not present

Change-Id: I3bcbde7bbb307fb27c36709c33c8ff5cd09ab7f8
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agomove the default text breaking algorithm impl from HarfBuzz to Qt
Konstantin Ritt [Thu, 10 May 2012 07:31:16 +0000 (10:31 +0300)]
move the default text breaking algorithm impl from HarfBuzz to Qt

there are several reasons to do this:
* text breaking is not a shaper's job;
* since the text breaking rules are bound to a specific Unicode version,
  updating Qt's internal unicode data would require updating the data in HB as well;
* makes porting to HurfBuzz-NG some easier

Change-Id: I0bbf8e8a343bc074696f4ddf2ae4e7fa32a61629
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoadd some useful methods to QUnicodeTables::
Konstantin Ritt [Wed, 9 May 2012 13:44:36 +0000 (16:44 +0300)]
add some useful methods to QUnicodeTables::

in order to reduce code duplication and prepare the ground for upcoming changes

Change-Id: I980244149f65384c9484bbec4682de8b7b848b08
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoMerge "Merge branch 'docs-refactoring' into master" into refs/staging/master
Marius Storm-Olsen [Thu, 10 May 2012 07:56:00 +0000 (09:56 +0200)]
Merge "Merge branch 'docs-refactoring' into master" into refs/staging/master

12 years agogettingStarted, part 3-5: sanitize parameter names and compile fix
hjk [Wed, 9 May 2012 15:56:47 +0000 (17:56 +0200)]
gettingStarted, part 3-5: sanitize parameter names and compile fix

Change-Id: I12795439de71a41728f98b3d3438324664b27a0f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoMerge branch 'docs-refactoring' into master
Marius Storm-Olsen [Thu, 10 May 2012 07:11:17 +0000 (09:11 +0200)]
Merge branch 'docs-refactoring' into master

Change-Id: Iebd1966abace3cdf7f9428dcfc1ded5b124ab113

12 years agoDon't add C-style copyright headers to qmake project files
Marius Storm-Olsen [Thu, 10 May 2012 06:53:06 +0000 (08:53 +0200)]
Don't add C-style copyright headers to qmake project files

Leads to parse errors, and we don't really put copyrights into these
files anyways.

Change-Id: I4b423b3f4f5c4f1f5051d8e3613133c4f1df342a
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoqpa: Remove QPlatformDialogHelper::deleteNativeDialog()
Bradley T. Hughes [Wed, 9 May 2012 11:55:25 +0000 (13:55 +0200)]
qpa: Remove QPlatformDialogHelper::deleteNativeDialog()

This function isn't really needed. The QDialogPrivate destructor deletes
the platform helper, so the QDialog destructor does not need to do it.
Subclasses of QPlatformDialogHelper are now responsible for deleting any
native resources they create.

The one place in QFileDialog that needs to recreate the native dialog
can simply recreate the helper. QDialogPrivate::deleteNativeDialog() now
becomes QDialogPrivate::deletePlatformHelper(), which resets all state
to allow the platform helper to be recreated.

Change-Id: I58adfe8801e02e63b3cb4a9a3a0b8cb5b3c7b161
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoqpa: Clean up QPlatformDialogHelper API
Bradley T. Hughes [Wed, 9 May 2012 10:54:38 +0000 (12:54 +0200)]
qpa: Clean up QPlatformDialogHelper API

Remove the _sys suffix from all members of QPlatformDialogHelper and its
subclasses. The QPlatform* class prefix already implies that these
methods are system specific, we don't need the method suffix as well.

Change-Id: I5ad1f928fab3a989992951acc244915e7fa48d32
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix a crash when parsing a URL with username and port, but no password
Thiago Macieira [Tue, 8 May 2012 20:31:12 +0000 (13:31 -0700)]
Fix a crash when parsing a URL with username and port, but no password

This was crashing because the ':' was found past the end of the
username, causing the recoder to run from position 22 to 11, via the
long way around the memory.

Change-Id: Ic1ae596f34f7db857fb4210294974fb5a6adf691
Reviewed-by: Alexis Menard <alexis.menard@openbossa.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix test case dependency in tst_exceptionsafety.
Jędrzej Nowacki [Mon, 7 May 2012 11:14:04 +0000 (13:14 +0200)]
Fix test case dependency in tst_exceptionsafety.

Change-Id: Icb3887e8bca55a7e76b264b0a5ce8aa2dd118275
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
12 years agoDon't ignore default font's font capitalization in QTextDocument
Eskil Abrahamsen Blomfeldt [Wed, 9 May 2012 13:06:25 +0000 (15:06 +0200)]
Don't ignore default font's font capitalization in QTextDocument

The consequence of this was e.g. that it would be impossible to
set the capitalization of TextEdit elements (or Text elements
with RichText format) in QML.

Change-Id: Ie219fac7e4305efc59a4ac9da5b06c25ff3ac9ac
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
12 years agoFix a QSslSocket test expectation on ubuntu 11.10
Shane Kearns [Tue, 8 May 2012 17:11:18 +0000 (18:11 +0100)]
Fix a QSslSocket test expectation on ubuntu 11.10

Because SSL2 is disabled in ubuntu's openssl binaries, the SSL
connection is expected to succeed rather than fail when the server
side is using SSL3/TLS1.0.
Used the OPENSSL_NO_SSL2 macro to decide this.

Change-Id: I2c35aa5aa0c9432ae78000c81f70086bdc31843d
Reviewed-by: Richard J. Moore <rich@kde.org>
12 years agoRemove QAbstractDeclarativeData::objectNameChanged.
Michael Brasser [Thu, 19 Apr 2012 02:31:45 +0000 (12:31 +1000)]
Remove QAbstractDeclarativeData::objectNameChanged.

There is now an actual NOTIFY signal for this property, and the callback
is no longer necessary.

Change-Id: I664714e22e607c747f144250cfb78de8c1d28686
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoDoc: Move some remaining files over for modularization.
Casper van Donderen [Wed, 9 May 2012 10:35:30 +0000 (12:35 +0200)]
Doc: Move some remaining files over for modularization.

The files in this change were still in qtbase/doc/src or required for
it. qtbase/doc/src should now only contain example documentation and
images for the example documentation.

Change-Id: Ia7ca8e7fd2b316e77c706a08df71303bc8294213
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoqdoc: Fixed three qdoc error problems
Martin Smith [Wed, 9 May 2012 12:04:22 +0000 (14:04 +0200)]
qdoc: Fixed three qdoc error problems

1. For QML properties documented in a .qml file,
qdoc no longer prints the error message that it
can't detect whether the property is read-only.

2. For QML properties documented in .cpp files,
qdoc now includes the file path and line number,
when it prints the error that it can't detect
whether the property is read-only.

3. qdoc also includes the completely qualified
property name in the error messages described
in 2.

Change-Id: If88381783fd0f29271f579ae170a0a6f4b1a7344
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQDoc: Remove generateQmlDesc and use generateApiDesc instead.
Casper van Donderen [Wed, 9 May 2012 12:27:40 +0000 (14:27 +0200)]
QDoc: Remove generateQmlDesc and use generateApiDesc instead.

generateQmlDesc was basically a copy of generateApiDesc. Just using
generateApiDesc also fixes a bug with the generation of a <shortDesc>
inside an <apiDesc>

Change-Id: I129a24ab0244283cc394c2afacc0f8227e4e5a88
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoRemove garbage.
Stephen Kelly [Tue, 8 May 2012 17:45:47 +0000 (19:45 +0200)]
Remove garbage.

Change-Id: I0801932ee9ce7002fdf897354f9e6e6d3999c8c2
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
12 years agoFix various NTLM/Digest multi-threading and usage issues
Aron Rosenberg [Wed, 25 Apr 2012 16:57:43 +0000 (09:57 -0700)]
Fix various NTLM/Digest multi-threading and usage issues

- Fix multi-threading bug where NTLM/Digest auth would fail when
concurrent requests were on the wire. The fix for this is too not
internally share QAuthenticationPrivate pointers, since the challange
values would get overridden in different threads. This was failing
because the internal QAuthenticationPrivate members would have been
set with the status/values of the current request which would mess
up the state of the new request. As currently implemented, the helper
functions inside QAuthenticationPrivate can't call detach to implement
proper copy on write symantics.
- Fix issue where if user was set via constructor, the NTLM domain
parsing would not occur. Parsing of DOMAIN\user is now redone if
proxy type is determined to be NTLM.

Task-number: QTBUG-15472
Task-number: QTBUG-17322
Task-number: QTBUG-18794
Task-number: QTBUG-13063
Task-number: QTBUG-16585
Change-Id: I8a898c51fb04fab6fb08d96d88dd73be0c87af5d
Reviewed-by: Aron Rosenberg <aronrosenberg@gmail.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoFix qDecodeDataUrl for already percentage encoded content.
Alexis Menard [Wed, 9 May 2012 16:34:17 +0000 (13:34 -0300)]
Fix qDecodeDataUrl for already percentage encoded content.

If the url we pass as parameter already have percentage encoded data,
we don't want to decode it and call fromPercentEncoding. The test
coverage is not complete for qdataurl.cpp file but it is better than
previously and it will also protect us from future regressions.

Change-Id: I79f709f44bed1b7f274a3de639c7e291fa91a193
Reviewed-by: Thiago Macieira
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoqdoc: Fixed a qdoc error problem
Martin Smith [Wed, 9 May 2012 13:23:30 +0000 (15:23 +0200)]
qdoc: Fixed a qdoc error problem

When an example was missing, qdoc printed
an error message without specifying the
location of the error. Now it includes the
file path and line number of the \example
command where the error can be fixed.

Change-Id: Ib75ffc467c0f266ed3939b8aa4b24800ec5eb92e
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoCompile fix for kms plugin.
Samuel Rødal [Tue, 1 May 2012 20:29:20 +0000 (22:29 +0200)]
Compile fix for kms plugin.

Change-Id: I0ad9716273a7beb643fab5fafc7fcf4884c8a364
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoEnable float coords in evdevtouch
Laszlo Agocs [Wed, 9 May 2012 08:22:07 +0000 (11:22 +0300)]
Enable float coords in evdevtouch

There is no reason to truncate the touch position.

Change-Id: I2bdcd43d3bb06a664e909d92704a701ece603847
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoQDoc: Use node name for page DITA title when name argument is empty.
Casper van Donderen [Wed, 9 May 2012 14:45:37 +0000 (16:45 +0200)]
QDoc: Use node name for page DITA title when name argument is empty.

When QML documentation is being generated from .qdoc files the 'name'
argument of the generateHeader() function is always empty, since the
plaincodemarker sets the plainFullTitle to "".

In that case the Node->name() should be used to specify the title of the
page, this will always be the first argument given to the \qmlclass qdoc
command.

Change-Id: If3e86ce59be1fdad608fab9f32fbe7bbca97aa93
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agogettingStarted: sanitize parameter names and compile fix for Qt 5
hjk [Wed, 9 May 2012 15:11:14 +0000 (17:11 +0200)]
gettingStarted: sanitize parameter names and compile fix for Qt 5

Change-Id: I3f30ccee89b8add8718a9a36f0f16fa7b2e9bad1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoWindows: Disable Non-modal native file dialogs.
Friedemann Kleint [Mon, 7 May 2012 08:22:49 +0000 (10:22 +0200)]
Windows: Disable Non-modal native file dialogs.

Disable dialogs, add explanatory comment. This is now
equivalent to Qt 4.

Change-Id: Ib6f4853d6f7ef1812bd5887d3ced8d7c8d1db5c8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQPA: Cleanup native dialog modal execution
Bradley T. Hughes [Mon, 30 Apr 2012 12:26:47 +0000 (14:26 +0200)]
QPA: Cleanup native dialog modal execution

Remove the _q_platformRunNativeAppModalPanel() function, together with
the launchNativeAppModalPanel() signal and
emitLaunchNativeAppModalPanel() slot, which were previously used to run
the modal loop inside the QDialog::exec() loop. This trick isn't
necessary anymore, so remove the mechanism and code related to it.

Rename QPlatformDialogHelper::platformNativeDialogModalHelp() to
exec_sys(). This function is now responsible for both showing the native
dialog and running the modal loop. QDialog:exec() now calls this
function if a native dialog is in use (it does not call
QEventLoop::exec() anymore).

The dialogResultCode_sys() function was unused, so it has also been
removed.

This commit also removes some unused private slots that were left over
from the port to QPA.

Note that the comments in the Cocoa plugin are still valid and relevant,
but this commit does not fix the scenarios mentioned. This will be done
in a future commit.

The Windows plugin needs minor changes. The QueuedConnections to
accept() and reject() cause the deliver to come too late, resulting in
crashes, hence the change to AutoConnection (which ends up being a
DirectConnection).

Change-Id: Ifc90325c945ca78737e60bf331929f03ecc52e0a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoMake sure QWidgetPrivate::hide_sys() really hides
Bradley T. Hughes [Fri, 4 May 2012 12:55:49 +0000 (14:55 +0200)]
Make sure QWidgetPrivate::hide_sys() really hides

When commit 55fa3c189f88933d390177ad5606d3de9deacf93 was merged from
api_changes, the conflict resolution left it possible for hide_sys() to
leave a visible window on screen. This happens when
Qt::WA_DontShowOnScreen is set on a visible widget. hide_sys() needs to
always hide the platform window if it is non-zero.

Change-Id: I3a1a882b66954e90d6ba80c657de69cae32e75a7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoDon't handle window events after Qt::WA_DontShowOnScreen is set
Bradley T. Hughes [Tue, 8 May 2012 05:37:04 +0000 (07:37 +0200)]
Don't handle window events after Qt::WA_DontShowOnScreen is set

QWidget can set WA_DontShowOnScreen while visible, which generates
events when the QWidgetWindow is hidden. This causes
QWidgetWindow::handleExposeEvent() to clear the WA_Mapped flag which was
set by QWidgetPrivate::show_sys(). Once WA_Mapped is cleared, the
QWidget becomes non-functional, causing failures in at least
tst_QGraphicsProxyWidget::paintEvent(), since paint events are not sent
to widgets that don't have WA_Mapped set.

Change-Id: I2d3e5b3baffb07ab73f41520771866f181260bd2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoNo longer use deprecated methods for plugin loading.
Friedemann Kleint [Tue, 8 May 2012 11:14:09 +0000 (13:14 +0200)]
No longer use deprecated methods for plugin loading.

Change-Id: I19c66b1c41ea4dd236726c86d7d071b210ec9244
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoImprove widget geometry.
Friedemann Kleint [Tue, 17 Apr 2012 15:30:06 +0000 (17:30 +0200)]
Improve widget geometry.

- Rename posFromMove to posIncludesFrame in Widgets and
  make the handling more fine-grained; try to clean it up
  as soon as the frame margins are known
  in QWidgetPrivate::fixPosIncludesFrame().
- Implement QWidgetPrivate::updateFrameStrut().
- Windows: Handle posIncludesFrame in window creation,
  notify changed geometry after setting window flags.
- XCB: Do not change the window gravity in propagateSizeHint()
  as this causes the window to jump around. Determine
  the gravity in window creation, leave it constant and
  fix the geometry when setting instead.
- Store the normal geometry when maximize/fullscreen
  state change events are received.
- Remove xfails from fixed tests

Task-number: QTBUG-25331
Task-number: QTBUG-24905
Task-number: QTBUG-24294

Change-Id: I89c7229d86aaf88f02247d63915da7905e4a27ea
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoUse bool for the template argument.
Stephen Kelly [Tue, 8 May 2012 17:24:54 +0000 (19:24 +0200)]
Use bool for the template argument.

It is only ever called with 'true' or 'false'.

Change-Id: Ibaba1c964cebb3ac75a230471a7a6547c2245039
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoAvoid assert in QTextLayout for certain strings
Eskil Abrahamsen Blomfeldt [Tue, 8 May 2012 14:35:20 +0000 (16:35 +0200)]
Avoid assert in QTextLayout for certain strings

As in other shapers, we need to make sure that the default
attributes of the first character is set before doing the
greek-specific composition (which will set the attributes
for characters > 0). The effect of this would be that
the clusterStart did not default to true in the start of
the string, and we would get an unexpected situation
in addNextCluster() in QTextLayout which would cause an assert.

The example in the task, which combines a greek polytonic
(dasia-oxia: u1FDE) with a regular combining diacritic
(asterisk under: u0359), is not a correct string, but should
not cause an assert.

Task-number: QTBUG-22864
Change-Id: Ieaff3cccbd10abc634e95e9a79dcde4c48504a3c
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoEnsure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY
David Faure [Tue, 8 May 2012 10:23:42 +0000 (12:23 +0200)]
Ensure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY

19d160b72ba broke it temporarily, and this wasn't detected by
tst_headersclean, because it sets QT_NO_CAST_FROM_ASCII too,
which disabled the faulty code.
So this adds a new unittest for QT_NO_CAST_FROM_BYTEARRAY alone.

Change-Id: Iaf7a36a1378e77188bcc636e5dc9a1f9b84f70a7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoFix QUrl::StripTrailingSlash for the case of no path at all.
David Faure [Tue, 8 May 2012 11:17:26 +0000 (13:17 +0200)]
Fix QUrl::StripTrailingSlash for the case of no path at all.

Change-Id: I1fd0fe4b9b67996732c85c1792415e371e865595
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoDoc: Add "make docs" targets for libraries.
Casper van Donderen [Tue, 8 May 2012 11:32:37 +0000 (13:32 +0200)]
Doc: Add "make docs" targets for libraries.

Change-Id: I249c238f4986f443f84aaa6a3ac4ce102abff4db
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtTest documentation.
Casper van Donderen [Tue, 8 May 2012 09:33:17 +0000 (11:33 +0200)]
Doc: Modularize QtTest documentation.

This change moves the snippets to the modularized directories.

Change-Id: I917dd1dae5ee5d4b6bd5a0390783a8b9a99edc06
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtPrintSupport documentation.
Casper van Donderen [Tue, 8 May 2012 09:13:18 +0000 (11:13 +0200)]
Doc: Modularize QtPrintSupport documentation.

This change moves the snippets and images to the modularized
directories.

Change-Id: Ib8f8556bcef13593ee40ac1122d765ed307ecb93
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtOpenGL documentation.
Casper van Donderen [Tue, 8 May 2012 08:28:29 +0000 (10:28 +0200)]
Doc: Modularize QtOpenGL documentation.

This change moves the snippets to the modularized directories.

Change-Id: Ifcf22fa3f234681f851d1e7eed5fe44e2e223ffd
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtWidgets documentation.
Casper van Donderen [Mon, 7 May 2012 16:49:48 +0000 (18:49 +0200)]
Doc: Modularize QtWidgets documentation.

This change moves the snippets and images to the modularized
directories.

Change-Id: Idec1afb9db7ea6add1ca4cf25ec4019d8bce0c4d
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtGui documentation.
Casper van Donderen [Mon, 7 May 2012 13:50:31 +0000 (15:50 +0200)]
Doc: Modularize QtGui documentation.

This change moves the snippets and images to the modularized
directories.

Change-Id: I5f86f598fbe7c47d632c613b85d94ced89ba2c29
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtDBus documentation and add missing file to QtNetwork.
Casper van Donderen [Mon, 7 May 2012 12:03:02 +0000 (14:03 +0200)]
Doc: Modularize QtDBus documentation and add missing file to QtNetwork.

This change moves the snippets and images to the modularized
directories.

Change-Id: Idacff866735d00b048d65318bc4c3ee1dfa16310
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtConcurrent documentation.
Casper van Donderen [Mon, 7 May 2012 09:33:42 +0000 (11:33 +0200)]
Doc: Modularize QtConcurrent documentation.

This change moves the snippets and images to the modularized directories.

Change-Id: If52f69c0f8bb4d2df4ee46f5524a82047ec214de
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Fix typo in QtNetwork qdocconf.
Casper van Donderen [Mon, 7 May 2012 09:19:53 +0000 (11:19 +0200)]
Doc: Fix typo in QtNetwork qdocconf.

Change-Id: I759e8a77b0471d380ffd9f893ae5bb5ed0c5c992
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoDoc: Modularize QtNetwork documentation.
Casper van Donderen [Mon, 7 May 2012 09:10:29 +0000 (11:10 +0200)]
Doc: Modularize QtNetwork documentation.

This change moves the snippets and imagesto the modularized directories.

Change-Id: If14912692a7f72d7de345eaf88d9ec9752310fca
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoProperly implement a 'make docs' target for subdirs and apps/libs
Marius Storm-Olsen [Mon, 7 May 2012 11:54:52 +0000 (13:54 +0200)]
Properly implement a 'make docs' target for subdirs and apps/libs

Only call qdoc for projects which sets the QMAKE_DOCS variable to
point to a qdocconf file.

Exclude examples/ and tests/ from the qdoc run, by adding
    no_docs_target
to CONFIG for those projects.

Change-Id: Ic856c8f19db59309302d0602b3e99735609e525a
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix qpa legacy headers installation
Girish Ramakrishnan [Tue, 8 May 2012 19:29:23 +0000 (12:29 -0700)]
Fix qpa legacy headers installation

syncqt is run twice when using the top level configure (as in
the CI system). The pri_install_files and pri_install_pfiles
variables are not populated if the file already exists when
generating the compatibility headers.

Therefore, headers.pri ends up with different content in
each syncqt run. In the first run, the compatibility headers
are part of SYNCQT.HEADER_FILES. In the second run, they
are not part of it since the header files already exist.

Change-Id: I4908fb934a639a3c9f6af1796d56a40fd4df2d50
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
12 years agoQtDBus: add member-swap to shared classes
Marc Mutz [Thu, 5 Apr 2012 12:49:02 +0000 (14:49 +0200)]
QtDBus: add member-swap to shared classes

Implemented as in other shared classes (e.g. QPen).

Change-Id: Ic827540b535fc5506165b5395b796a53a00bb096
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQTextEngine: simplify the code a bit
Konstantin Ritt [Tue, 8 May 2012 11:24:17 +0000 (14:24 +0300)]
QTextEngine: simplify the code a bit

by using QVarLengthArray so we can avoid the manual clean-up code.

Change-Id: I35e2f7150d777c1760f722553e6fe7a20f6ecc46
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoqdoc: Fixed qdoc error messages
Martin Smith [Tue, 8 May 2012 11:13:14 +0000 (13:13 +0200)]
qdoc: Fixed qdoc error messages

qdoc prints many error messages without including the
source file path and the line number for where the error
occurs. This makes it difficult to find the place to
fix the error. This update corrects some of those error
messages. Further updates will fix the others.

Change-Id: I9c0eed96482c61643a2d83c5135368413e63ae52
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoRemove qplatformdrag.h dependency in qguiapplication_p.h
Lars Knoll [Tue, 8 May 2012 10:49:56 +0000 (12:49 +0200)]
Remove qplatformdrag.h dependency in qguiapplication_p.h

Including a qpa/ header here doesn't really work very well
for other modules using qguiapplication_p.h.

Change-Id: I7620b40bc4731d5a74fe11537637f376c578a786
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoDivehi is written right to left
Lars Knoll [Tue, 8 May 2012 08:52:47 +0000 (10:52 +0200)]
Divehi is written right to left

QLocale::textDirection() was missing Divehi as a
right to left language.

Change-Id: Ib2395afe0e1dfbac23cb607dbf7833e6c12b2ce9
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agoQPA: Add a themeHint for the animations.
Friedemann Kleint [Tue, 8 May 2012 11:02:44 +0000 (13:02 +0200)]
QPA: Add a themeHint for the animations.

Introduce a flag matching the Qt::UI_Effect enumeration and
return it as hint.

Replace the separate boolean flags in QApplication by a single
integer using the flags.

Change-Id: I29e33d4d23d13723ddb1b3f62fe781b9c0747572
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoConnect bearer engines to manager with QueuedConnection
Shane Kearns [Fri, 27 Apr 2012 10:31:58 +0000 (11:31 +0100)]
Connect bearer engines to manager with QueuedConnection

This is to avoid a deadlock that happens when a user thread is
accessing the QNetworkConfigurationManager at the same time the
plugin emits a signal.

i.e.
plugin is holding engine lock
user thread is holding manager lock and blocked trying to acquire
the engine lock
In the manager slot, it tries to acquire the manager lock.

By using queued connection, there are no locks held at the time the
manager slot is called.

Change-Id: I95f28028b5e77f77b2b9b7e31cbd1b78a8fe3097
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoAvoid emitting finished() before user can connect the signal
Shane Kearns [Fri, 4 May 2012 12:55:45 +0000 (13:55 +0100)]
Avoid emitting finished() before user can connect the signal

QNetworkSession::open can synchronously emit an error, therefore
we need to queue this.
Otherwise QNetworkReply::finished is emitted before the user has
had a chance to connect the signals.

Task-number: QTBUG-18824
Change-Id: I703d5e31d2934afafabdf0a77ea3aaf5336e8dec
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoBump moc revision after introducing QMetaType::SChar.
Jędrzej Nowacki [Tue, 8 May 2012 09:59:56 +0000 (11:59 +0200)]
Bump moc revision after introducing QMetaType::SChar.

Normally we do not have to change moc version if a new type is added,
but for this particular case we need to do it. It is so because the old
moc could generate wrong type id (QMetaType::Char) for signed char.

Change-Id: I20be2a24adc59a305674595dafe23fb1774b475d
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
12 years agoDon't leak native dialog resources
Bradley T. Hughes [Tue, 8 May 2012 08:29:45 +0000 (10:29 +0200)]
Don't leak native dialog resources

Have QDialog::~QDialog() call deleteNativeDialog_sys() on the helpers,
so that we don't risk leaking any resources allocated in the helper.
QFileDialog does this now, but not QColorDialog or QFontDialog. The
Cocoa plugin worked around this problem by calling
deleteNativeDialog_sys() itself, but the Windows plugin does not do
this, resulting in leaks.

Change-Id: I380d87c95686c8f3cb260f9242299be27329280d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoAdded QScreen::refreshRate() to get the vertical refresh rate.
Samuel Rødal [Fri, 4 May 2012 11:10:41 +0000 (13:10 +0200)]
Added QScreen::refreshRate() to get the vertical refresh rate.

To give applications that want it the option to use a fixed timestep for
animations, and to avoid having values of 60 hard-coded (we have a
couple of those in qtdeclarative/src/quick already), we need to know the
refresh rates of the screens we are rendering to.

Change-Id: Ife49162e830440ad7eab563a27e8aebbbafc5fc5
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoFix qpa files installation
Girish Ramakrishnan [Tue, 8 May 2012 10:50:50 +0000 (03:50 -0700)]
Fix qpa files installation

qpa header files were not installed under qpa/.

Change-Id: I243c3a7e83a342f7485791a1a29b65c9a8f25d6b
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
12 years agoFix typo
Frederik Gladhorn [Tue, 8 May 2012 09:09:24 +0000 (11:09 +0200)]
Fix typo

Change-Id: I94a2b7e2b895c234e4520e0a9093a6af9bef3fbb
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoAdd 'FullScreen' into QKeySequence::StandardKey
stockton [Mon, 7 May 2012 22:32:50 +0000 (15:32 -0700)]
Add 'FullScreen' into QKeySequence::StandardKey

This StandardKey was never defined in Qt4, and should be added to
simplify cross-platform Shortcut handling for this Action.
Comment concerning the sort-order requirement in QKeyBinding is
expanded to discuss the role of Modifier Keys in the Sort Order.

Task-number: QTBUG-25517

Change-Id: I8c26404010f1e55164e25fe6a586d9795869c25f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
12 years agoIntroduce a new built-in type: signed char.
Jędrzej Nowacki [Fri, 4 May 2012 13:19:17 +0000 (15:19 +0200)]
Introduce a new built-in type: signed char.

C++ distinguish between "char", "signed char" and
"unsigned char", they are three independent types.

Fix QVariant behavior on ARM. On ARM "char" may mean
"unsigned char", but we depends on the sign during
a numerical conversions.

Change-Id: I610ce3fb88ed5964b67f3ae442d264fe16b2d261
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQTextEngine: drop unused leftovers
Konstantin Ritt [Tue, 8 May 2012 00:05:36 +0000 (03:05 +0300)]
QTextEngine: drop unused leftovers

qIsControlChar() doesn't handle SMP code points, it is outdated
and is not used anymore; drop it

Change-Id: I934ace1e44eb2652e426fccc579b563d31197fca
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>