profile/ivi/qtbase.git
11 years agoFixed missing way of choosing EGL renderable type with QSurfaceFormat.
Samuel Rødal [Sat, 23 Jun 2012 15:24:37 +0000 (17:24 +0200)]
Fixed missing way of choosing EGL renderable type with QSurfaceFormat.

This has been long overdue, since EGL now lets you choose between
desktop and ES based OpenGL. We also add OpenVG for those who want to
use raw OpenVG with a QOpenGLContext. The underlying EGL API for using
OpenGL / OpenVG is the same, with eglMakeCurrent() and eglSwapBuffers().

Change-Id: Ib0146b3fde5fe632069ebf99e7712f496ee7ea4d
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoRemove some unused variables from QAccessibleWidgetPrivate
Jan-Arve Saether [Wed, 23 May 2012 08:11:58 +0000 (10:11 +0200)]
Remove some unused variables from QAccessibleWidgetPrivate

Change-Id: I22fd67d63131d48356023c26eb0689587ce96967
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
11 years agoFix QCOMPARE for QIcon in QtGui
Giuseppe D'Angelo [Tue, 26 Jun 2012 18:18:07 +0000 (19:18 +0100)]
Fix QCOMPARE for QIcon in QtGui

There's no need of QtWidgets for using QCOMPARE on two QIcons, as
QIcon lives in QtGui.

Change-Id: I40c3d4aeb15fb95876449383d9e2dd1ad39aa5f9
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoClarified documentation for QStandardItem::parent()
Markku Heikkila [Tue, 26 Jun 2012 10:05:17 +0000 (13:05 +0300)]
Clarified documentation for QStandardItem::parent()

Task-number: QTBUG-18785

Change-Id: I91ee8c3dc10c1484376a17e3f13794038d4a648f
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoAdd QAbstractDeclarativeData::isSignalConnected hook
Kent Hansen [Fri, 15 Jun 2012 08:47:49 +0000 (10:47 +0200)]
Add QAbstractDeclarativeData::isSignalConnected hook

Similar to QAbstractDeclarative::receivers. This hook will allow
QObject::isSignalConnected(QMetaMethod) to return true when there are
QML-managed connections.

It's important that the hook is called from
QObjectPrivate::isSignalConnected(uint), since QML calls that
function.

Change-Id: I9c5e42f2b3e7f985af02905985a3a47101cdee05
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agotst_qtextscriptengine: make it compilable under MSVC2010
Debao Zhang [Wed, 6 Jun 2012 06:44:56 +0000 (23:44 -0700)]
tst_qtextscriptengine: make it compilable under MSVC2010

Source files which contain UTF-8 literals can not be compiled
by MSVC with Chinese/Japanese locale.

Change-Id: I5daa2e45c5e1ceb86da91e72288c24018c49c0f6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
11 years agoFix compilation for XCB-without-Xlib
Giuseppe D'Angelo [Tue, 26 Jun 2012 18:04:59 +0000 (19:04 +0100)]
Fix compilation for XCB-without-Xlib

Commit 6481218da13539529b87626a352a17f42c57be61 broke the build by
removing the #ifdef XCB_USE_XLIB guards, but forgetting to port
Button1 to the XCB equivalent.

Change-Id: I9102feceb4deb0135ce0df318e46b35d1134a0b9
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agomkspecs: Use the right variable name to find the qdevice.pri
Holger Hans Peter Freyther [Tue, 26 Jun 2012 17:59:44 +0000 (19:59 +0200)]
mkspecs: Use the right variable name to find the qdevice.pri

Commit 8b822825c5066957622194acf0fc267a6bf473fd introduced the
/get version but used the wrong variable name. Fix it by using
QT_HOST_DATA.

Change-Id: Ia4759b8c6ff2de9726f3aebae2f2f39c6644d4ec
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoDon't try build devicediscovery if evdev is not available.
Robin Burchell [Fri, 22 Jun 2012 13:43:31 +0000 (15:43 +0200)]
Don't try build devicediscovery if evdev is not available.

Fixes build on Android.

Change-Id: I1e6af972e8c29dd4c38773985e8f201064c2164f
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoFix QIODevice warning when running rcc.
Mitch Curtis [Mon, 11 Jun 2012 11:32:17 +0000 (13:32 +0200)]
Fix QIODevice warning when running rcc.

When opening a QFile on stdout, for example,
we must not call seek as it is a sequential device.
This has been flagged as a warning since commit Ie3a96d3a
and has resulted in spurious warnings being emitted.

In the case of opening a QFile in Append mode, QIODevice::open
already sets the position marker, so calling seek is redundant.
This is also true for the file engine's open function (called
through openExternalFile()), which also ensures the handle or
descriptor is repositioned appropriately.

Task-number: QTBUG-26104
Change-Id: I71040c399efe54e7538f54433368b432e959e08d
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoclean up specdir()
Oswald Buddenhagen [Tue, 26 Jun 2012 13:32:17 +0000 (15:32 +0200)]
clean up specdir()

the only callers which used non-default arguments are gone now, so remove
the arguments entirely. this also enables us to re-enable result caching.

Change-Id: I62f76e17e531a4eeafddb9b29716ca0a0eb3dbea
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agofix -spec/-xspec argument re-assembly
Oswald Buddenhagen [Tue, 26 Jun 2012 13:29:35 +0000 (15:29 +0200)]
fix -spec/-xspec argument re-assembly

the specs in Option are now only fixifiable absolute paths if an actual
path was passed on the command line - otherwise these are just names,
and we should pass them on verbatim.

Change-Id: I5b3535dadf2d6b2b3116331e6636f6e363a5361f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoAdd missing subdirs (the new QUrl unit tests were not compiled and run)
David Faure [Sat, 23 Jun 2012 09:26:35 +0000 (11:26 +0200)]
Add missing subdirs (the new QUrl unit tests were not compiled and run)

Change-Id: I1b39d92b8a14d5aeca957180858e1980a534894b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoFix PCRE build under non-__GNUC__ compilers
Giuseppe D'Angelo [Thu, 21 Jun 2012 19:14:33 +0000 (21:14 +0200)]
Fix PCRE build under non-__GNUC__ compilers

PCRE's JIT has several paths that end in a #error under compilers that
don't #define __GNUC__.

This is because either
- those platforms were unavailable to PCRE devs so they were not tested;
- the #ifdef guards inline assembly fragments in GCC (AT&T) syntax;
- the #ifdef guards functions present f.i. in ARM's EABI and unavailable
  f.i. under WinCE.

This commit disables PCRE's JIT under ARM and MIPS unless __GCC__ is
defined. The MIPS #define from MSVC (_M_MRX000) is also dropped.

Change-Id: I59f959c321413845ffbdf1ac32740b400422e0ee
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
11 years agoRemove toRect_normalized().
Robin Burchell [Sat, 23 Jun 2012 19:28:22 +0000 (21:28 +0200)]
Remove toRect_normalized().

Seems to have been unused since qt4's fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd.

Change-Id: I7ec88fb4ca8c1ffda469a1c048b4fea17ff042bc
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoFix warning when ibus is not available.
David Faure [Sat, 23 Jun 2012 20:50:14 +0000 (22:50 +0200)]
Fix warning when ibus is not available.

This is perfectly ok on a linux desktop, so no reason to abort when
setting QT_FATAL_WARNINGS.

Change-Id: I64ba987679195741631fb204af57ae3d283bb516
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoQPlatformWindow: Add Window masks.
Friedemann Kleint [Mon, 25 Jun 2012 11:58:41 +0000 (13:58 +0200)]
QPlatformWindow: Add Window masks.

Add functionality for window masks to QPlatformWindow, which is
required to implement QWidget::setMask() in order to fix
the regression in functionality from Qt 4.8.

Change-Id: I2c2d5629f0b4c6d90e52595ad70b13559aab1f41
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoMake QRegion not need to be friends with QVector
Thiago Macieira [Tue, 19 Jun 2012 15:36:10 +0000 (17:36 +0200)]
Make QRegion not need to be friends with QVector

This hack was introduced in Qt 4.5 and the intention was to resize
(hopefully, shrink) the QVector without causing it to reallocate
memory. We can accomplish the same by reserving the size: until we
clear() or squeeze(), the container will not free memory.

Change-Id: I03a09537a617be0ce865eefa043005e4051e8706
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agomake using testlib automatically "promote" all modules to -private
Oswald Buddenhagen [Mon, 25 Jun 2012 15:18:26 +0000 (17:18 +0200)]
make using testlib automatically "promote" all modules to -private

autotests often need private headers (especially with qpa headers now
being private) and have no compatibility requirements, so it makes sense
to just use the privates of requested modules.

this also suppresses the useless warning about using privates, in case
they are still explicitly specified.

Change-Id: I9e499bedcf6ef25777283ff1432cef7254e9093a
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoignore mkspecs/modules-inst/
Oswald Buddenhagen [Sun, 24 Jun 2012 19:30:49 +0000 (21:30 +0200)]
ignore mkspecs/modules-inst/

only generated files in there

Change-Id: I6eb327fc686af08d46d343066420525bc2e0dde5
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agoMake QGtkStyle build with QT_NO_FILEDIALOG
Sukhyun Kim [Wed, 20 Jun 2012 09:22:11 +0000 (18:22 +0900)]
Make QGtkStyle build with QT_NO_FILEDIALOG

Fix compilation failure with qconfig large

Change-Id: I8ae14f01879b94430dcbb5c85c61d14e922f6eb9
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoFactorize the cmake test infrastructure to be reusable.
Stephen Kelly [Sat, 23 Jun 2012 07:48:19 +0000 (09:48 +0200)]
Factorize the cmake test infrastructure to be reusable.

This makes it easy to add cmake module tests for all modules.

Change-Id: I303bf7674ca6ae7a8544488f96e8e02afbaa6ff0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agoAvoid macro re-definition after 1838a6c2fb5e3b4368c871aa330d028b255b83af
Konstantin Ritt [Thu, 21 Jun 2012 20:33:07 +0000 (23:33 +0300)]
Avoid macro re-definition after 1838a6c2fb5e3b4368c871aa330d028b255b83af

Change-Id: I2631ff687881278ba42edacd237a2130c103b69f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
11 years agoQIODevice: free memory when buffer is cleared
Martin Petersson [Mon, 11 Jun 2012 13:35:04 +0000 (15:35 +0200)]
QIODevice: free memory when buffer is cleared

The QIODevicePrivateLinearBuffer does not deallocate any data on
readAll or clear. This fix will change the buffer so that
data is deallocated on clear, readAll and when read emptied the
buffer.

This is needed for QAbstractSockets that don't have
readBufferMaxSize set, as the buffer will grow but never
decrease in size when you read from it.

Change-Id: Iab42e40182f9ebe0739c99b2d1e820ce287dc931
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoQAbstractSocket: Enable readNotifier on read from buffer
Martin Petersson [Mon, 4 Jun 2012 14:34:13 +0000 (16:34 +0200)]
QAbstractSocket: Enable readNotifier on read from buffer

This is needed for the QSslSocket. When we read on that socket we will
only read from the QIODevice buffer to get the unencrypted data.
So when the readNotifier has been turned off on the plainsocket there
is nothing to trigger it to be turned on again.

This will add a readData with zero size when we have read everything
from the buffer. This is so that we get a call into the socket to
check if the readNotifier should be turned on again.

Change-Id: I3b63e33de007db823e964480903186eb1b8caac2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQtNetwork: remove double buffering on sockets
Martin Petersson [Wed, 30 May 2012 15:03:57 +0000 (17:03 +0200)]
QtNetwork: remove double buffering on sockets

Removes the readBuffer from the QAbstractSocket since data is already
buffered in the QIODevice.

Change-Id: I4e50b791fd2852455e526fa2c07089d4d3f0b2a4
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years ago[QNX] Enable MT screen event handling on Blackberry
Rafael Roquetto [Wed, 20 Jun 2012 09:22:32 +0000 (11:22 +0200)]
[QNX] Enable MT screen event handling on Blackberry

Consuming incoming screen events through the BPS event
dispatcher on its current incarnation has proven to be
very inefficient since it cannot put up with the screen
event throughput. This patch enables the screen event
thread also for Q_OS_BLACKBERRY platforms, in addition
to stock QNX. This behavior can still be configured
through the project file, though.

Task-number: QTBUG-26177
Change-Id: I98a3b22549c9fbf0c16b5a8c39a55c1eaa6ec1f4
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agoFixed inputMethodQuery() for Qt::ImHints
Tasuku Suzuki [Mon, 21 May 2012 23:14:34 +0000 (08:14 +0900)]
Fixed inputMethodQuery() for Qt::ImHints

to return QWidget::inputMethodHints()

Change-Id: I46735c553e0cb4689cd0c53a69d07ed61ba56bf6
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
11 years agoQTBUG-26035: Remove positive sign from start of string
Tarja Sundqvist [Fri, 8 Jun 2012 08:33:41 +0000 (11:33 +0300)]
QTBUG-26035: Remove positive sign from start of string

Updated removeGroupSeparators(QLocalePrivate::CharBuff *num) so that it
removes also positive sign ('+') at the start of the string. Auto test
included.

Task-number: QTBUG-26035

Change-Id: I8e0e071d6c682d9192a8c6bb2f282510e21b3c48
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
11 years agofix somewhat common edge case in $$shadowed()
Oswald Buddenhagen [Sun, 24 Jun 2012 15:22:23 +0000 (17:22 +0200)]
fix somewhat common edge case in $$shadowed()

if source and build dir are direct children of the common root and we
are shadowing the top-level source dir, there is of course no trailing
slash to match.

Change-Id: I8a34a6a72d16cb21d77d056e037235af9b32a008
Reviewed-by: Davide Pesavento <davidepesa@gmail.com>
Reviewed-by: Andreas Hartmetz <ahartmetz@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoUse valSeen since it results in unused warning otherwise
Girish Ramakrishnan [Wed, 20 Jun 2012 01:27:54 +0000 (18:27 -0700)]
Use valSeen since it results in unused warning otherwise

Change-Id: Iccfa4b895d9e50227efa1747ea20ce07ce70327e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agoDon't re-evaluate the lib location.
Stephen Kelly [Sat, 23 Jun 2012 14:31:48 +0000 (16:31 +0200)]
Don't re-evaluate the lib location.

Rely on the DESTDIR variable being set correctly by qt_module_config.

Change-Id: I1a166124024722ec5a189a7402b38646179aa890
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoFix the DEFINITIONS for Qt modules.
Stephen Kelly [Sat, 23 Jun 2012 14:30:31 +0000 (16:30 +0200)]
Fix the DEFINITIONS for Qt modules.

As the DEFINITIONS to be used for QtAddOns is different to essential
modules, rely on the logic in qt_module_config setting this variable
correctly.

Change-Id: I64485ccd6df093216cac4a97fb1cfaac0122a218
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoQGraphicsItem::setAcceptsHoverEvents is deprecated, replace it
Thiago Macieira [Mon, 25 Jun 2012 18:05:58 +0000 (20:05 +0200)]
QGraphicsItem::setAcceptsHoverEvents is deprecated, replace it

It is replaced by setAcceptHoverEvents (note the lack of s), even
though the original name made more sense -- "set (if this item)
accepts hover events".

Change-Id: Ia6137c0e37b0a5932836f1d08fb8fa436f736eed
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoReplace the QGraphicsItem deprecated transforming functions
Thiago Macieira [Mon, 25 Jun 2012 17:44:44 +0000 (19:44 +0200)]
Replace the QGraphicsItem deprecated transforming functions

The scale(), rotate() and translate() functions are replaced with
QGraphicsItem::setTransform.

Change-Id: Icb81c71b1513c049e2fd607995ca3a868108ee30
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Andreas Aardal Hanssen <andrhans@cisco.com>
11 years agoSmall documentation fix about the text streams default encoding.
Lars Knoll [Mon, 25 Jun 2012 10:47:51 +0000 (12:47 +0200)]
Small documentation fix about the text streams default encoding.

It's UTF-8, not Latin1 on most systems nowadays. Only Windows
still living in the past...

Change-Id: I70f1bd7a49bed6dcc8e39bbc0f0613475791afdb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQSKIP test that is blocking unrelated changes in CI
Shane Kearns [Mon, 25 Jun 2012 16:43:22 +0000 (17:43 +0100)]
QSKIP test that is blocking unrelated changes in CI

The test looks vulnerable to misbehaviour if the working directory
contains unexpected files and folders. As it's already skipped on
Mac, skip on linux as well to unblock the CI.

Change-Id: Id2e48ea455eb77e36c4f9d899885e101f674c0a3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoWe shouldn't have a Makefile here.
Lars Knoll [Sun, 24 Jun 2012 22:18:36 +0000 (00:18 +0200)]
We shouldn't have a Makefile here.

Change-Id: If55952b4aa9b95ff9311c1b7338b77af62a5c503
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoRemove the font codecs
Lars Knoll [Sun, 24 Jun 2012 21:45:22 +0000 (23:45 +0200)]
Remove the font codecs

These codecs have only been used for XLFD based fonts.
These are not supported anymore by Qt 5.

Change-Id: I7dc083f2efcd42363b144b24bd62c169d83390cf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoThe codecForTr() should be utf8
Lars Knoll [Sun, 24 Jun 2012 21:31:45 +0000 (23:31 +0200)]
The codecForTr() should be utf8

tr() assumes utf8 as input encoding, not
latin1.

Change-Id: If834f8c169bdb431d78713d14b03542d3a7ca8e4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix docs mentioning Q_EXPORT_PLUGIN2
Lars Knoll [Sun, 24 Jun 2012 20:12:21 +0000 (22:12 +0200)]
Fix docs mentioning Q_EXPORT_PLUGIN2

Fix all remaining places where Q_EXPORT_PLUGIN2
was being used in the documentation.

Change-Id: I7be67b83c18545d0e74f250b4b26583444b01909
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUse the new plugin system
Lars Knoll [Sun, 24 Jun 2012 20:11:39 +0000 (22:11 +0200)]
Use the new plugin system

Convert the last remaining three plugins over from
the old plugin system.

Change-Id: I355e6bb068ec4afb58a2ee9542f86e2913b3851d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix return type of isActiveConfig("host_build")
Simon Hausmann [Sat, 23 Jun 2012 15:52:41 +0000 (17:52 +0200)]
Fix return type of isActiveConfig("host_build")

The return type of isActiveConfig is a boolean, so return that when
host_build is queried.

Change-Id: I6d1420b49b09e51442c4b2d482e2f19b165081d8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoMake qtbase compile with QT_NO_DRAGANDDROP
Tasuku Suzuki [Wed, 20 Jun 2012 01:29:04 +0000 (10:29 +0900)]
Make qtbase compile with QT_NO_DRAGANDDROP

Change-Id: Ief16e435af6e6d246b84505a1c1208994c7b0b38
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
11 years agoEnsure that no extra bits can leak into QUrl::toEncoded.
Thiago Macieira [Tue, 22 May 2012 13:16:01 +0000 (15:16 +0200)]
Ensure that no extra bits can leak into QUrl::toEncoded.

Technically, this function should take QUrl::UrlFormattingOptions, but
that doesn't exist. So we just mask out the high bits that determine
the encoding options. toEncoded only supports one encoding way: fully
encoded.

Change-Id: I1445ad7c292500921ec2672be4524d7d76a39f98
Reviewed-by: David Faure <faure@kde.org>
11 years agoadd possibility to set $$MODULE_IMPORT_SUFFIX in module .pri files
Oswald Buddenhagen [Tue, 19 Jun 2012 15:09:47 +0000 (17:09 +0200)]
add possibility to set $$MODULE_IMPORT_SUFFIX in module .pri files

quick1 got a suffix, so we need a way to set it

Change-Id: I099b868106abd4d3040047703472faa65f694f31
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoMake qtbase compile with QT_NO_CSSPARSER
Tasuku Suzuki [Wed, 20 Jun 2012 20:55:57 +0000 (22:55 +0200)]
Make qtbase compile with QT_NO_CSSPARSER

Change-Id: Iadcc7dfde6b06c339118c00a645d9dc592a0eead
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoWrap QObject usage in qsharedpointer_impl.h with ifndef QT_NO_QOBJECT
Thiago Macieira [Sat, 23 Jun 2012 22:41:57 +0000 (00:41 +0200)]
Wrap QObject usage in qsharedpointer_impl.h with ifndef QT_NO_QOBJECT

Otherwise, bootstrapped tools like qmake and moc won't compile, unless
QObject is forward-declared (which it isn't anymore).

Change-Id: If67ca1cd8fdb7b29628f9dc4b454595d26a715d0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoRemove documentation for QIconEnginePlugin::keys().
Robin Burchell [Sat, 23 Jun 2012 10:03:24 +0000 (12:03 +0200)]
Remove documentation for QIconEnginePlugin::keys().

Method was removed in dcf3c95175a93cf883e14a6d434b4306df50cf37.

Change-Id: I6c01ea7d329e15aec8b4ce29e8d3d5c3e784731a
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
11 years agoGuard evdev specifics with QT_NO_EVDEV.
Robin Burchell [Fri, 22 Jun 2012 13:12:38 +0000 (15:12 +0200)]
Guard evdev specifics with QT_NO_EVDEV.

Android fails the evdev configure test at present.

Change-Id: I1cbaf2dab589f647c02c8c5b92f72bd5159ccfa9
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoSet Wayland as default platform on Raspberry-Pi
Donald Carr [Wed, 6 Jun 2012 22:11:21 +0000 (22:11 +0000)]
Set Wayland as default platform on Raspberry-Pi

Update Raspberry-Pi mkspec to indicate that wayland is the default platform
for the Raspberry-Pi.

Change-Id: I10b30ecfb16faed6027137225d9e95409faa7e87
Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
11 years agoFix setMouseTracking on QGLWidget
Laszlo Agocs [Sat, 23 Jun 2012 09:12:10 +0000 (11:12 +0200)]
Fix setMouseTracking on QGLWidget

Remove the function altogether. Alternatively we could call the
base class implementation but there is no reason to keep this
confusing, non-virtual override.

Change-Id: Ie8724f7bbc6666fdace7ff777bcde99f3d8a9561
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoMake test work on Mac OS X
Harald Fernengel [Fri, 22 Jun 2012 22:06:18 +0000 (00:06 +0200)]
Make test work on Mac OS X

Change-Id: I0c2d9bc7500972144d44060f38bc7a5da65ed30f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoDon't operate on bogus data, assert on preconditions instead
João Abecasis [Fri, 8 Jun 2012 13:25:26 +0000 (15:25 +0200)]
Don't operate on bogus data, assert on preconditions instead

QVector::erase shouldn't try to make sense of iterators it doesn't own,
so the validation being done here is bogus and dangerous. Instead, it's
preferrable to assert, the user needs to ensure proper ownership.

The case of erasing an empty sequence is not checked for preconditions
to allow

    QVector v;
    v.erase(v.begin(), v.end());

, while being stricter on other uses.

Autotests were using ill-formed calls to the single argument erase()
function on an empty vector and were fixed. This function erases exactly
one element, the one pointed to by abegin and require the element exist
and be valid.

Change-Id: I5f1a6d0d8da072eae0c73a3012620c4ce1065cf0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoSkip 3 test methods if the test server isn't set up.
David Faure [Sat, 23 Jun 2012 09:40:53 +0000 (11:40 +0200)]
Skip 3 test methods if the test server isn't set up.

This makes things easier for developers touching QtCore and running
all QtCore unit tests.

Change-Id: I7aa832a6a1be07d90cacad2eecb2364285ff3818
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agoAdd a variable for the private includes for modules.
Stephen Kelly [Fri, 22 Jun 2012 17:18:45 +0000 (19:18 +0200)]
Add a variable for the private includes for modules.

This is required to use QPA for example in 5.0.

Change-Id: I44bfc6987d778370e55c05c591f63ff84c482d0a
Reviewed-by: David Faure <faure@kde.org>
11 years agoGive the CMake unit tests more meaningful names.
Stephen Kelly [Fri, 22 Jun 2012 08:04:05 +0000 (10:04 +0200)]
Give the CMake unit tests more meaningful names.

Change-Id: I0a54d32ec62ff6daf7672d0aabdeb038f4c7c78f
Reviewed-by: David Faure <faure@kde.org>
11 years agoForward-port change to QT4_ADD_RESOURCES macro for missing rcc files.
Stephen Kelly [Tue, 19 Jun 2012 15:09:23 +0000 (17:09 +0200)]
Forward-port change to QT4_ADD_RESOURCES macro for missing rcc files.

Forward-port of commit 9ce67d30011db4528d3d0bbee36412e13cfb80cc in
cmake.git.

Change-Id: I2d6c14f68f1630fc0835b3103e5058f52c2d0d13
Reviewed-by: David Faure <faure@kde.org>
11 years agoImplement QXcbIntegration::queryKeyboardModifiers()
David Faure [Thu, 21 Jun 2012 23:30:39 +0000 (01:30 +0200)]
Implement QXcbIntegration::queryKeyboardModifiers()

Change-Id: Ifd2255362f5ef005e2a57f4001a72d932497b453
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoDocu: fix copy/paste typo
David Faure [Thu, 21 Jun 2012 13:41:00 +0000 (15:41 +0200)]
Docu: fix copy/paste typo

Change-Id: Ie3573ab6983c2b66c66b0f9c342f72018674016c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoQPA docs: list the platform names that the method is likely to return.
David Faure [Thu, 21 Jun 2012 13:38:19 +0000 (15:38 +0200)]
QPA docs: list the platform names that the method is likely to return.

Change-Id: Ia98c534fbdb157ff7b2b328a832941772ea833ec
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoAdd gui-private to generic plugins
Girish Ramakrishnan [Fri, 22 Jun 2012 12:27:43 +0000 (14:27 +0200)]
Add gui-private to generic plugins

QWindowSystemInterface will shortly be marked as QPA API.

Change-Id: I0b7cb1a75e3a4f0fc4627329edd3bfd21583a0a6
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
11 years agoeglfs: move m_pos into Cursor
Girish Ramakrishnan [Wed, 20 Jun 2012 00:09:06 +0000 (17:09 -0700)]
eglfs: move m_pos into Cursor

Change-Id: I51e92d265e7ea6372ae58b357f75362e2d9a2df9
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
11 years agoFix non inheritable socket creation on old windows versions
Shane Kearns [Tue, 19 Jun 2012 16:38:40 +0000 (17:38 +0100)]
Fix non inheritable socket creation on old windows versions

The documentation is misleading, as using the new API actually
causes WSASocket to fail.
New behaviour:
On windows vista or earlier: skip the new API, use old one
On windows 7: try the new API first, if it fails try the old one
On windows 8: try the new API only

The windows 7 behaviour is because we don't know if the service
pack has been installed or not. (And IT departments may have
specifically installed/blocked the hotfix)

Task-number: QTBUG-26224
Change-Id: I6da47959919caee0cd2697f1ae1fca46aa33c1ff
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Mikhail Vorozhtsov
11 years agoEnsure that Proxy-Connection: Keep-Alive is respected for HTTP 1.0
Andy Shaw [Fri, 22 Jun 2012 08:45:51 +0000 (10:45 +0200)]
Ensure that Proxy-Connection: Keep-Alive is respected for HTTP 1.0

When doing a NTML authentication it would close the connection after
the second phase before replying when the reply was a HTTP 1.0 version
reply. Since the Proxy-Connection header is set to Keep-Alive in this
case we want to ensure we do not close in this siutation.

Task-number: QTBUG-26037

Change-Id: Icaaf2277efc0d05a946c52fb42b5191964e2e0fe
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
11 years agoFix key modifiers in mouse wheel events on Windows.
Glenn Watson [Fri, 22 Jun 2012 00:36:36 +0000 (10:36 +1000)]
Fix key modifiers in mouse wheel events on Windows.

The Windows platform plugin was not checking for the control or
shift keyboard modifiers when processing mouse wheel events. Added
a function to convert Windows wheel events to Qt::KeyboardModifiers
and passed this through the event chain.

Task-number: QTBUG-25754
Change-Id: I6551e98b4eaebad5704058bddfb06502ded5155d
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoReimplement QXcbWindow::startSystemResize() with xcb
Uli Schlachter [Thu, 21 Jun 2012 19:01:48 +0000 (21:01 +0200)]
Reimplement QXcbWindow::startSystemResize() with xcb

This function just sends a ClientMessage to the window manager. XCB can
do this fine and there is no need to require Xlib for the job.

Change-Id: Iad3d78c393c1f439fff987fa19b4d82513810930
Signed-off-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoqtdbus: Export org.freedesktop.DBus.Peer interface when introspected
Daniele E. Domenichelli [Thu, 21 Jun 2012 18:41:27 +0000 (20:41 +0200)]
qtdbus: Export org.freedesktop.DBus.Peer interface when introspected

The ofD.Peer interface is automatically implemented when an object is
registered on DBus, but the ofD.Introspectable.Introspect method does
not show it.

You can test it by running

$ qdbus --literal <some service> <some object> \
>    org.freedesktop.DBus.Peer.Ping

$ qdbus --literal <some service> <some object> \
>    org.freedesktop.DBus.Peer.GetMachineId

Change-Id: I7062ba0cdae486d443011ee19cf3874aabf90205
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQUnicodeTables: some internal API renamings
Konstantin Ritt [Sun, 17 Jun 2012 01:55:07 +0000 (04:55 +0300)]
QUnicodeTables: some internal API renamings

enums GraphemeBreak, WordBreak, and SentenceBreak has been renamed to
GraphemeBreakClass, WordBreakClass, and SentenceBreakClass respectively,
their values has been renamed to contain a '_' as logical enum-value separator
(just like many other nums in Qt, e.g. LineBreakClass);
*BreakFormat has been replaced with *Break_Extend (some format characters are
kind of subtype of the extender characters, not vice versa).

Change-Id: I9ddbcf8848da87409736c2d6d1798a62fa28cab8
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoClean-up the Unicode tables generator code and the generated header
Konstantin Ritt [Sun, 17 Jun 2012 01:20:59 +0000 (04:20 +0300)]
Clean-up the Unicode tables generator code and the generated header

This fixes the blocks and memory consumption reports, the whitespace issues
and makes the code a bit cleaner.

Since I'm the only one who does change this code, such a no-op commit
could not hurt anyone or even git blame ;)

Change-Id: Ib069f925a3791c82e16c368c8392bcffbfd68c53
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
12 years agoembedded doesn't exist anymore
Girish Ramakrishnan [Fri, 22 Jun 2012 05:10:16 +0000 (07:10 +0200)]
embedded doesn't exist anymore

Change-Id: Ib56895defb72f51bb790994b9fd72fc81ef25af5
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agotst_qgraphicsview hoverLeave regressed
Toby Tomkins [Fri, 22 Jun 2012 03:16:43 +0000 (13:16 +1000)]
tst_qgraphicsview hoverLeave regressed

Task-number: QTBUG-26274

Change-Id: Ieafc6bf4a7fa5287985610a4dea57fbe6f3a9eba
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRestore building of examples, tests.
Rohan McGovern [Thu, 21 Jun 2012 01:01:27 +0000 (11:01 +1000)]
Restore building of examples, tests.

Without this, a simple "configure && make" will not build the examples
or tests, even if the "-make tests -make examples" options were used.

This is a partial revert of 709cc8800e7d8600e181cf6b9f8b1033faefe596.

Change-Id: If363cd24d30ba4c102a35ed2617999ae4e9ed9b0
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoFixes high CPU usage on timer expiration when using glib event loop.
Daniel Thor Kristjansson [Wed, 20 Jun 2012 19:17:15 +0000 (15:17 -0400)]
Fixes high CPU usage on timer expiration when using glib event loop.

GTimerSource has 1ms accuracy, QTimerInfoList::timerWait() has 1us accuracy.
So when there is less than 1 ms left on the timer we enter a tight loop
checking for timer expiration since we don't round up the timerWait()
timer to the nearest millisecond.

Task-number: QTBUG-7618
Change-Id: I684c9236324f598bc69c6810be270aa47c791f91
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoUpdate the docs about setRoleNames deprecation.
Stephen Kelly [Thu, 21 Jun 2012 14:24:28 +0000 (16:24 +0200)]
Update the docs about setRoleNames deprecation.

Change-Id: I5aff626979238014d34cba1d383051cd4b048499
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
12 years agofix doc typo in qwindow.cpp
Joerg Bornemann [Thu, 21 Jun 2012 12:42:39 +0000 (14:42 +0200)]
fix doc typo in qwindow.cpp

Change-Id: I0980319e32b94882fe882c57cd8341f6b3e62048
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix possible crash when copying QImage.
Kim Motoyoshi Kalland [Wed, 20 Jun 2012 11:45:32 +0000 (13:45 +0200)]
Fix possible crash when copying QImage.

Task-number: QTBUG-14766

Change-Id: I82a4736dbd5ac08ede1b2bdccfa29a2009ebb4d8
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoQDoc: Use the module page as link in qt.ditamap.
Casper van Donderen [Wed, 13 Jun 2012 17:33:32 +0000 (19:33 +0200)]
QDoc: Use the module page as link in qt.ditamap.

If the number of [QML]module pages in a single qdoc run is 1: Use it as the link for the nested group of documentation pages in the automatically generated ditamap.

Change-Id: Idbc3e2e5d65a1e7f0201638102ffab62475a66ec
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQDoc: Use 'Type' instead of 'element' in instantiates.
Casper van Donderen [Thu, 21 Jun 2012 07:58:03 +0000 (09:58 +0200)]
QDoc: Use 'Type' instead of 'element' in instantiates.

On a C++ documentation page "is instantiated by QML element" was printed
when you have a QML Type that instantiates this class. The text is now
changed to "is instantiated by QML Type".

Change-Id: I6c93531edc6ef9ac112573034fd54fa52390bc37
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoRemove QWS references from testlib
Girish Ramakrishnan [Wed, 20 Jun 2012 01:22:44 +0000 (18:22 -0700)]
Remove QWS references from testlib

Change-Id: Iad52a5c44b27cb11a47987c9f8890cc67b557fb7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAvoid unnecessary detach when saving to BMP.
Kim Motoyoshi Kalland [Tue, 19 Jun 2012 12:18:16 +0000 (14:18 +0200)]
Avoid unnecessary detach when saving to BMP.

Task-number: QTBUG-11486

Change-Id: Ic9aa733da4f23dc3eaba111c97a39bfd911f8cb3
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoNew command line switches for configure.exe
Rafael Roquetto [Wed, 20 Jun 2012 14:00:34 +0000 (16:00 +0200)]
New command line switches for configure.exe

Adds support for the following command line switches to configure.exe tool:
    * -nis (-no-nis)
    * -cups (-no-cups)
    * -iconv (-sun-iconv, -gnu-iconv, -no-iconv)
    * -neon (-no-neon)
    * -largefile
    * -fontconfig (-no-fontconfig)
    * -posix-ipc
    * -glib
    * -system-freetype
    * -sysconfdir <dir>

Change-Id: I0e299f02605bdcb588ae746f397b92ec23a7ff23
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQTextLayout docs: a minor typo fix
Konstantin Ritt [Tue, 19 Jun 2012 01:27:41 +0000 (04:27 +0300)]
QTextLayout docs: a minor typo fix

Change-Id: I5e6d02f17e9064afe0c21dda806e67bc14c728b7
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoproper filling when using Qt::TexturePattern
Konrad Grochowski [Tue, 19 Jun 2012 15:15:11 +0000 (17:15 +0200)]
proper filling when using Qt::TexturePattern

fix for using both Qt::OpaqueMode and
Qt::TexturePatter for filling

Task-number: QTBUG-19202
Change-Id: Ia92363cacaa51140fe78b542d9768aead81868ff
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
12 years agoFix qitemview and qdatetimeedit autotest builds for WinCE.
Janne Anttila [Tue, 19 Jun 2012 08:27:06 +0000 (11:27 +0300)]
Fix qitemview and qdatetimeedit autotest builds for WinCE.

Defined missing SPI_GETPLATFORMTYPE macro as it was done in for example
in qwidget and qaccesiblity test cases.

Change-Id: I33a1e0119848911fbc4830299fcc1854f5259e86
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
12 years agoFix qdiriterator autotest build for WEC7.
Janne Anttila [Tue, 19 Jun 2012 08:08:39 +0000 (11:08 +0300)]
Fix qdiriterator autotest build for WEC7.

Change-Id: I18b1bdd79905761eff7a5ddbe1c6538c33624a1f
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
12 years agoFixed mouse grabbing preventing popups from being closed.
Samuel Rødal [Mon, 18 Jun 2012 13:53:30 +0000 (15:53 +0200)]
Fixed mouse grabbing preventing popups from being closed.

The pointer grabbing leads to fake Enter events being sent to the
Qt::Popup window, preventing it from closing since QWidget::underMouse()
returns true. We should only send Enter events if the mouse is actually
inside the widget.

Change-Id: I4ba3fb08943580f93ad4337ff0227becd647767e
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoHandle fragmented responses on SOCKS5 control channel
Shane Kearns [Tue, 12 Jun 2012 15:46:37 +0000 (16:46 +0100)]
Handle fragmented responses on SOCKS5 control channel

Server responses may arrive in more than one packet, though this
is rare due to nagle algorithm.
Also fixed IPv6 addresses being discarded from server responses,
which was caught by the new autotest.

Task-number: QTBUG-18564

Change-Id: I32d9e2978037fb3e1fff27b7e618b5da6d222f28
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoFix qfile autotest build for WEC7
Janne Anttila [Tue, 19 Jun 2012 08:11:13 +0000 (11:11 +0300)]
Fix qfile autotest build for WEC7

Change-Id: I6c4b4c91ea841ccb91ad685510caaecaf51baced
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoAdd new benchmark metrics to testlib
Chris Adams [Wed, 9 May 2012 06:43:53 +0000 (16:43 +1000)]
Add new benchmark metrics to testlib

QElapsedTimer provides nanosecond-resolution elapsed timing, which
allows for finer granularity benchmark reporting.  Also, clients
may also wish to benchmark the memory usage of a particular component,
but no metric currently exists which matches that requirement.

This commit adds the WalltimeNanoseconds and BytesAllocated metrics
to meet these needs.  It is intended for manual use by clients via
setBenchmarkResult() only.

Change-Id: Ib37ada374e265c857eda02d047d51d436618e4a7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoDoc: tmake -> qmake, it's about time
Daniel Molkentin [Mon, 18 Jun 2012 23:00:16 +0000 (01:00 +0200)]
Doc: tmake -> qmake, it's about time

Pushing this before 5.0 since it will most certainly
trigger a major recompile, which is probably why
this has never been changed.

Change-Id: I5fd90537d3b754d0a8a1b522d66183513693e0af
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoChange default Content-Type for http POST to match 4.7.4
Shane Kearns [Wed, 13 Jun 2012 16:27:31 +0000 (17:27 +0100)]
Change default Content-Type for http POST to match 4.7.4

Qt 4.7.3 sent no Content-Type header by default.
This was fixed independently on 4.8.0 and 4.7.4 branches, with
different defaults.
Since this is often used for web service logins, the 4.7.4
default of x-www-form-urlencoded seems more likely to work.

The warning message is left in place, since not specifying the
content type is still an application bug.

Task-number: QTBUG-23350
Change-Id: I30bf50fd216ee9894d0168e904cea1ed4251ec68
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoRemove references to Q_WS_QWS
Girish Ramakrishnan [Wed, 20 Jun 2012 01:15:48 +0000 (18:15 -0700)]
Remove references to Q_WS_QWS

Affected code includes:
src/widgets/dialogs/qmessagebox.cpp
src/widgets/graphicsview/qgraphicsitem.cpp
src/widgets/kernel/qapplication_p.h
src/widgets/kernel/qwhatsthis.cpp
src/widgets/kernel/qwidget.h
src/widgets/widgets/qdockwidget.cpp

Change-Id: Ib9e920b3cc1253b39e4e00d7137c21321ecc0399
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoplastique: Use QPlatformTheme::DialogButtonBoxButtonsHaveIcons
Girish Ramakrishnan [Wed, 20 Jun 2012 01:03:47 +0000 (18:03 -0700)]
plastique: Use QPlatformTheme::DialogButtonBoxButtonsHaveIcons

Change-Id: I2f493d45820063ef62f16febde0df89a874dddb0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRemove dead code
Girish Ramakrishnan [Wed, 20 Jun 2012 00:58:29 +0000 (17:58 -0700)]
Remove dead code

Change-Id: I48c1e3b2ebcf4ec2fb21ed2d1a88e1dae64e937d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoFix QWidgetWindow sending duplicate drag-drop events
James Turner [Wed, 20 Jun 2012 12:55:40 +0000 (14:55 +0200)]
Fix QWidgetWindow sending duplicate drag-drop events

Unlike the other event handlers in QWidgetWindow, the drag-drop events are not followed by an
early return. This causes all drag-drop events to also be sent to the root widget of the window,
which is a bug. For example in the fridgemagnets example, where the target widget and
root widget are the same, the drop event is received twice.

Change-Id: I99e56ad8c48b3d31b0bd7c815cea8490edbf0af4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRecord if a metatype is a smart pointer to a QObject derived.
Stephen Kelly [Thu, 24 May 2012 12:35:45 +0000 (14:35 +0200)]
Record if a metatype is a smart pointer to a QObject derived.

This allows QVariant/QMetaType software (such as QtDeclarative) to
deal with smart pointers in a similar way to how they can deal with
naked pointers (accessing properties etc).

This also adds a requirement that T be fully defined when
QSharedPointer<T> is inserted into a QVariant.

Change-Id: I29e12b8a6aa5f4aadbd62f92b89bc238f64b5725
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoAdd some internal API for extracting a QSharedPointer<T> from QVariant.
Stephen Kelly [Sat, 9 Jun 2012 20:57:35 +0000 (22:57 +0200)]
Add some internal API for extracting a QSharedPointer<T> from QVariant.

The T must be derived from QObject, or it will fail to compile.

This will allow scripting or other 'wrapping' and runtime environments like
QtDeclarative to handle QSharedPointers to types derived from QObject
properly. A QSharedPointer<T> can be inserted into a QVariant, and
where T derives from QObject, a QSharedPointer<QObject> can be
extracted from the QVariant, and its properties are then accessible.

Change-Id: I68d6d89aceceb019267bd7301baa2047f9c09b90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQNetworkAccessManager: delete the httpThread
Martin Petersson [Wed, 13 Jun 2012 06:59:35 +0000 (08:59 +0200)]
QNetworkAccessManager: delete the httpThread

The httpThread was using deleteLater the finished signal of the
thread to call the deleteLater slot. If the QNetworkAccessManager is
deleted when the application is closed then then fished is emitted
but we never return to the eventloop so the deletion is never done.

This will delete the httpThread directly instead of using deleteLater

Task-number: QTBUG-25487
Change-Id: I1fdbd4eca01e8bd8b3a98936298e5c78217752b4
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoChange *-clang mkspec globs to *-clang*
Bradley T. Hughes [Thu, 14 Jun 2012 05:14:05 +0000 (07:14 +0200)]
Change *-clang mkspec globs to *-clang*

Like with the numerous g++ mkspecs, we have mkspecs with suffixes, and
these mkspecs should still match the clang globs.

Change-Id: I9296408b5192bc72cc468d229a57923e3f5ab6f0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>