profile/ivi/qtbase.git
12 years agoInclude qobject_p.h from qmetaobject_p.h
Kent Hansen [Sun, 27 May 2012 19:57:54 +0000 (21:57 +0200)]
Include qobject_p.h from qmetaobject_p.h

Needed for QObjectPrivate::Connection. Since it's a nested class,
it's not possible to merely forward declare it.

Change-Id: Ie2ad1b3972df5433cdb49ee443f053ba2d613779
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoDon't call metaObject() redundantly
Kent Hansen [Sun, 27 May 2012 20:23:50 +0000 (22:23 +0200)]
Don't call metaObject() redundantly

The desired meta-object is already stored in a local variable.

Change-Id: I40c7840f07f5dbd67110e2f7d5bb618cbb269047
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoDon't call metaObject()->method() redundantly
Kent Hansen [Sun, 27 May 2012 20:21:23 +0000 (22:21 +0200)]
Don't call metaObject()->method() redundantly

The desired method is already stored in a local variable.

Change-Id: Ibf0078813c7aebc83604b9c7ad9a8b6c596c5c65
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoeglfs: allow cursor to be created without a context
Girish Ramakrishnan [Fri, 25 May 2012 23:30:00 +0000 (16:30 -0700)]
eglfs: allow cursor to be created without a context

Textures are now created and uploaded on demand on first render()
call where we are guaranteed to have a current GL context.

Change-Id: I352c876dd1d8b7ed73536de21fa2880cdc6bdb60
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoMake fontconfig default font locale aware
Jiang Jiang [Wed, 30 May 2012 14:27:09 +0000 (16:27 +0200)]
Make fontconfig default font locale aware

Application default font should be locale aware in fontconfig db
as in other font databases. We use a hack to obtain the system
default language parsed by fontconfig and use that to find out
the preferred font for a given language (such font list is edited
by fontconfig from fonts.conf in FcConfigSubstitute() process).

Change-Id: I99bb8dd29d2dde2c8019ed8e77f5bfc09ddf3ca5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoRemove QCursor::handle
Girish Ramakrishnan [Wed, 30 May 2012 18:26:53 +0000 (11:26 -0700)]
Remove QCursor::handle

This used to be the Qt/Embedded's QCursor handle implementation.

Change-Id: I31b8ed44ac9325defcb13d887949d9536a262be8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQCursor: Remove doc of obsolete functions
Girish Ramakrishnan [Wed, 30 May 2012 17:46:02 +0000 (10:46 -0700)]
QCursor: Remove doc of obsolete functions

These functions don't exist in QPA land.

Change-Id: I50c0588cf03ed64878c8ed864dc18a7558b20156
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoremove QT_NO_SOUND and QT_NO_RASTERCALLBACKS
Tasuku Suzuki [Wed, 30 May 2012 20:31:33 +0000 (05:31 +0900)]
remove QT_NO_SOUND and QT_NO_RASTERCALLBACKS

These two defines are not used.

Change-Id: Iec4ae95a8a2222d3c6e9f35b08954cf30aa15bda
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQPA tablet event support
Laszlo Agocs [Wed, 23 May 2012 12:07:39 +0000 (15:07 +0300)]
QPA tablet event support

Should be sufficient to allow implementing the actual functionality in
xcb/cocoa/windows to match the Qt 4 level of tablet event support.

Task-number: QTBUG-25864
Change-Id: Iebcca256dfba841d8976b58fda1b76026d3133a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
12 years agoRemove QRegion::handle
Girish Ramakrishnan [Thu, 31 May 2012 01:35:11 +0000 (18:35 -0700)]
Remove QRegion::handle

This function is unavailable in QPA land (it currently returns
the QRegionPrivate as the handle()).

Change-Id: I4e81e29d4546a4737c1aaab4ee1fb97e28a473f5
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoRemove QFont::handle
Girish Ramakrishnan [Thu, 31 May 2012 01:30:04 +0000 (18:30 -0700)]
Remove QFont::handle

This function is unavailable in QPA land.

Change-Id: I43bb95d64e3abaa2fbcd8de07ca39c1d28f46f42
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoWindows: Add ANGLE support.
Friedemann Kleint [Wed, 23 May 2012 13:07:06 +0000 (15:07 +0200)]
Windows: Add ANGLE support.

- Add QWindowsEGLContext usable for ANGLE and Windows CE.
- Add QWindowsEGLStaticContext containing the display
  for resource cleanup.
- Add EGLSurface to QWindowsWindow.
- Add a -angle option specifying the path to the external
  ANGLE installation to configure, add libraries to
  the mkspecs.

Initial-patch-by: Jabot Corentin <corentinjabot@gmail.com>
Task-number: QTBUG-24207

Change-Id: I5f80b1efb6996da7c5d70aa3720f7801c9e4c6af
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoMake tst_qnetworkdiskcache parallel-safe
Rohan McGovern [Thu, 31 May 2012 03:02:17 +0000 (13:02 +1000)]
Make tst_qnetworkdiskcache parallel-safe

Use a QTemporaryDir for a unique test cache directory for each process,
rather than a fixed path.

Change-Id: I64df8422d01282bbc108e942947c1b55368bd941
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoImproved stability of tst_qstatemachine, mark as parallel-safe
Rohan McGovern [Thu, 31 May 2012 02:47:32 +0000 (12:47 +1000)]
Improved stability of tst_qstatemachine, mark as parallel-safe

tst_QStateMachine::postEventFromOtherThread() assumed that 10,000
iterations of the event loop in a separate thread could always be
completed successfully within the default QTRY_COMPARE timeout.
This may be false if the CPU load is already high - such as when running
other tests concurrently.

Decrease the iteration count.

Change-Id: I780523f73c0c16fa0b2ab3201b2b0affdebc198d
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoMake tst_qtextstream parallel-safe.
Rohan McGovern [Thu, 31 May 2012 01:16:10 +0000 (11:16 +1000)]
Make tst_qtextstream parallel-safe.

Write to a QTemporaryDir instead of the test's build directory.

Change-Id: Ib65a0d58fbdf8caf8f2cb7002aeed1ce34742183
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoMarked tst_qtemporaryfile as parallel-safe
Rohan McGovern [Thu, 31 May 2012 00:39:58 +0000 (10:39 +1000)]
Marked tst_qtemporaryfile as parallel-safe

This test failed a parallel stress test, but seemingly only because it
writes to its own build directory.  This should not interfere with other
running autotests.

Change-Id: I27a2f31e32a5b8157ef1082cf0e939bcc0c61c70
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoMarked tst_qfile as parallel-safe
Rohan McGovern [Thu, 31 May 2012 00:39:58 +0000 (10:39 +1000)]
Marked tst_qfile as parallel-safe

This test failed a parallel stress test, but seemingly only because it
writes to its own build directory.  This should not interfere with other
running autotests.

Change-Id: I80e548fdb0e915ebe86dcd2205537cb6fee09cff
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoEliminate a warning in unsigned integer comparison
Jiang Jiang [Wed, 30 May 2012 09:47:18 +0000 (11:47 +0200)]
Eliminate a warning in unsigned integer comparison

The length we cast is from int QTextEngine::length() so it's safe
to do so.

Change-Id: I60fdbcb5a96c99b767093102a30e97951ef5b6ea
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
12 years agoFix digiflip example build.
Janne Anttila [Thu, 24 May 2012 12:12:55 +0000 (15:12 +0300)]
Fix digiflip example build.

digiflip examples depends on qtwidgets, let's link to it also.

Change-Id: I4f4434c747d143942909797491153a4f358e6fef
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoFix typo in temporary filename
kb [Wed, 30 May 2012 05:15:38 +0000 (07:15 +0200)]
Fix typo in temporary filename

The configure script uses the bash $"..." string internationalization
syntax; this generates an error in other shells.
Since this feature is only used in one place it is likely a typo.

Change-Id: I076a785c3901b04175b8669e32c55989385720e3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQDoc: Remove fatal exit when not finding an index directory.
Casper van Donderen [Wed, 30 May 2012 12:46:28 +0000 (14:46 +0200)]
QDoc: Remove fatal exit when not finding an index directory.

QDoc would exit with exit code 1 when an index directory is not found,
this behaviour was probably a bit too strict.

Change-Id: If62fe1aeac4392002fa7419f6abcb62ed41c2beb
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoAdd hard float-abi support to Raspberry Pi spec
Donald Carr [Wed, 30 May 2012 21:24:30 +0000 (21:24 +0000)]
Add hard float-abi support to Raspberry Pi spec

Change-Id: I1bed28bdb5f84e61605972713a20359cc6deeaa6
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
12 years agoCompile with clang when C++11 support is enabled
Bradley T. Hughes [Tue, 29 May 2012 05:32:47 +0000 (07:32 +0200)]
Compile with clang when C++11 support is enabled

text/qtextdocument_p.cpp:1070:43: error: non-constant-expression cannot
be narrowed from type 'int' to 'quint32' (aka 'unsigned int') in
initializer list [-Wc++11-narrowing]
text/qtextdocument_p.cpp:1070:43: note: override this message by
inserting an explicit cast

Change-Id: I16127aef2171324135b5c0c2ac611b8b4f03d7b7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agodirectfb: Allocate a special surface for OpenGL
Holger Hans Peter Freyther [Tue, 29 May 2012 17:14:43 +0000 (19:14 +0200)]
directfb: Allocate a special surface for OpenGL

Allocate an RGB16 surface when we need to use OpenGL, set the
custom DSCAPS_GL for this EGL mode. The broadcom hardware would
allow us to use ABGR but we have some issues with the QSurfaceFormat
to select the right kind of surface.

Change-Id: I0fff7906154f3d7afb35b2b5d2bb91510cf3aa4d
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoRecord the sub-architecture (CPU features enabled in the compiler)
Thiago Macieira [Sat, 31 Dec 2011 22:40:49 +0000 (20:40 -0200)]
Record the sub-architecture (CPU features enabled in the compiler)

If the system's compiler has extra features on top of the base
settings enabled or if the mkspec or $CXXFLAGS variable included some,
record them.

This will allow us to choose whether or not to use our own special
compilers, based on whether the system default compiler contains it or
not.

Change-Id: I87cada9fab4cfa58846a831d0a7c7b50d8fa87fd
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoImprove the architecture-detection mechanism
Thiago Macieira [Tue, 27 Mar 2012 17:43:45 +0000 (14:43 -0300)]
Improve the architecture-detection mechanism

For the Unix part, this now obeys the -v option, printing the full
command-line it used to compile, allowing testers to identify why
something went wrong.

Unfortunately, it requires a full compilation cycle, instead of just
preprocessing. Just one more among the many on Unix, but maybe a
noticeable slow-down on Windows.

Change-Id: I654b70d99887e04c96731a5b91be9ad555e4d8fe
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoImplement QVector with QArrayData interface.
Jędrzej Nowacki [Thu, 26 Apr 2012 10:06:17 +0000 (12:06 +0200)]
Implement QVector with QArrayData interface.

Change-Id: I109f46892aed2f6024459812d24922b12358814d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix text decoration width rounding
Jiang Jiang [Thu, 24 May 2012 13:40:16 +0000 (15:40 +0200)]
Fix text decoration width rounding

width passed in qreal should be set with setWidthF instead of
setWidth, otherwise the fractional part is lost.

Also remove the raster paint engine hack that has been removed in
Qt 4.8, it's no longer needed.

This fixed the drawUnderline and drawRightToLeft auto tests in
tst_qglyphrun.

Change-Id: Iace46fc27ff156c07fb4d08a145269fad36e9fdb
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoQDoc: Add support for 'all subfolders' in dependant modules.
Casper van Donderen [Wed, 30 May 2012 08:44:04 +0000 (10:44 +0200)]
QDoc: Add support for 'all subfolders' in dependant modules.

It is now possible to use '*' when specifying the 'depends' qdocconf
variable, this will automatically load all index files found in
subdirectories of the index dirs.

Change-Id: I94b140df27da8d987824005a1dcf2a9348d5cd9e
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoQDoc: Force writing \n before a snippet in DITAXML.
Casper van Donderen [Tue, 29 May 2012 13:42:01 +0000 (15:42 +0200)]
QDoc: Force writing \n before a snippet in DITAXML.

Previously the snippet text would be indented, which causes an XSLT to
render the first line of a snippet at the indentation level of the .dita
file.

Change-Id: Iead8d07277f83ca5ccbf463f1cdb1c8210459d56
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoKMS platform plugin: Introduce default cursor for better usability.
Samuel Rødal [Wed, 30 May 2012 06:10:08 +0000 (08:10 +0200)]
KMS platform plugin: Introduce default cursor for better usability.

Similar to the default cursor in eglfs, not having it makes it hard to
interact with Qt applications using the evdevmouse plugin.

Change-Id: I9638267c7d790d91b66620e4a82d86f299061922
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
12 years agoeglfs: keep context active only during flush
Girish Ramakrishnan [Sun, 27 May 2012 05:34:29 +0000 (22:34 -0700)]
eglfs: keep context active only during flush

The OpenGL context needs to be current only while flushing
the backing store.

Change-Id: I4d6a10f22bcfe04f35a14a690180237f6c691829
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
12 years agoAdd minimalegl QPA platform plugin
Girish Ramakrishnan [Sun, 27 May 2012 16:27:57 +0000 (09:27 -0700)]
Add minimalegl QPA platform plugin

The EGLFS platform plugin was originally meant to be an example
and thus to be kept simple. However, EGLFS is becoming more
and more complex with the addition of hooks for board support,
cursor integration, built-in evdev support etc.

minimalegl is a new platform plugin that intends to follow
the original intentions of EGLFS.

The code is an adaptation of EGLFS as of f913859f8

Change-Id: I3d4cf84cde380cdcc7e0e8bfefff4df6be731b8d
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agodirectfb: Allow a window subclass to allocate a different kind of surface
Holger Hans Peter Freyther [Tue, 29 May 2012 14:18:02 +0000 (16:18 +0200)]
directfb: Allow a window subclass to allocate a different kind of surface

A subclass of QDirectFbWindow might need to allocate a window with
different surface flags. This is the case for the DirectFB EGL plugin
and QSurface::OpenGLSurface type of surfaces. Add createDirectFBWindow,
make it virtual and call it from the platform integration classes. Add
an assert to verify that this method is only called once. Remove the
pre DirectFb 1.1 code as it was never really tested.

Change-Id: Icf3d262f40bca70e376043935eeb292958f6df5d
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoFix compile error in eglconvenience
Girish Ramakrishnan [Wed, 30 May 2012 04:01:14 +0000 (21:01 -0700)]
Fix compile error in eglconvenience

Change-Id: Ic20d890a9c59e21a5f0c81f961074ab02083a266
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
12 years agoMarked tst_qprocess as parallel-safe
Rohan McGovern [Wed, 30 May 2012 03:46:27 +0000 (13:46 +1000)]
Marked tst_qprocess as parallel-safe

This autotest appears to be parallel-safe.  It fails our parallel stress
test, but only because it writes to its own build directory.  This
should not interfere with other autotests.

Change-Id: Ie99dde24edc0fda0c8ec4352a6e44abb7cbc54f8
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agodirectfb: description.surface_caps was already assigned conditionally
Holger Hans Peter Freyther [Tue, 29 May 2012 14:01:24 +0000 (16:01 +0200)]
directfb: description.surface_caps was already assigned conditionally

We have already assigned this flag in case the IDirectFBSurfaceLayer
has the capability of premultiplied alpha. Do not set it unconditionally.

Change-Id: Id5f9bd6bdfa29dc9cd35d913b61fb55c09f54864
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoevdev: Cleanup mouse and keyboard plugins
Johannes Zellner [Fri, 25 May 2012 23:42:55 +0000 (16:42 -0700)]
evdev: Cleanup mouse and keyboard plugins

Remove fallback event0 device usage. All available devices should be
detected automatically from DeviceDiscovery either through udev or the
static fallback discovery method. This also removes the never used 'key'
argument, which was pulled over from Qt4.

Change-Id: Iffe8bd80f0770664024019a220cbbc6f98843340
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoQtConcurrent: Remove QMutex kept for BC reasons.
Morten Johan Sorvig [Thu, 24 May 2012 08:12:19 +0000 (10:12 +0200)]
QtConcurrent: Remove QMutex kept for BC reasons.

Task-number: QTBUG-25052

Since upgrading to Qt 5 forces a recompile there
are no longer inline versions of the acquire/release
functions in play.

Change-Id: I6ce6abe0f16f810891f32c7e8c5c94726e5de873
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoRemove the MacMainWindow example.
Morten Johan Sorvig [Thu, 24 May 2012 09:39:26 +0000 (11:39 +0200)]
Remove the MacMainWindow example.

setUnifiedTitleAndToolBarOnMac will not be supported
on Qt 5, which removes the point of having this example.

The replacement for setUnifiedTitleAndToolBarOnMac
will be a NSToolBar wrapper in the MacExtras module,
and this example will probably re-appear in some form
there.

Change-Id: I46d5e70a7c45625d9334911bb48059e86f05282d
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoMake popup windows show on the correct desktop.
Morten Johan Sorvig [Fri, 25 May 2012 05:44:22 +0000 (07:44 +0200)]
Make popup windows show on the correct desktop.

Set NSWindowCollectionBehaviorFullScreenAuxiliary
for Qt::Popup windows. This will make them show
on the same desktop as their parent full-screen
window.

Change-Id: Ice1bd50976ef0cd66b01a683a43e08e782573153
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
12 years agoFix compilation for QT_NO_CONTEXTMENU in QtWidgets
Tasuku Suzuki [Mon, 28 May 2012 00:31:00 +0000 (09:31 +0900)]
Fix compilation for QT_NO_CONTEXTMENU in QtWidgets

Change-Id: I05b23504549c0156ba5e72144674f843149932c0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoqmake can not process project file with UTF-8 BOM
Debao Zhang [Tue, 22 May 2012 16:55:03 +0000 (09:55 -0700)]
qmake can not process project file with UTF-8 BOM

Project file contains UTF-8 BOM can't processesed by qmake and will
cause subtle errors.

Task-number: QTBUG-25848
Change-Id: Id69ed38c6be63a29fa3792a631cb8cb0ac176148
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQTBF: fix the mandatory line breaks not being set in some cases
Konstantin Ritt [Tue, 29 May 2012 02:38:28 +0000 (05:38 +0300)]
QTBF: fix the mandatory line breaks not being set in some cases

e.g. for the text "Aaa bbb ccc.\r\nDdd eee fff." the \r\n wasn't treated
as a hard line break or as a line break opportunity, ever.
Quite ancient bug...

Change-Id: I8d8497c55a3a4d51c27de99ccfe1e31f3bf4de77
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoIntroduce QUnicodeTools
Konstantin Ritt [Tue, 29 May 2012 02:15:53 +0000 (05:15 +0300)]
Introduce QUnicodeTools

Add QUnicodeTools namespace and rename qGetCharAttributes to initCharAttributes;

Make it possible to disable tailoring globally by overriding
qt_initcharattributes_default_algorithm_only value
(useful for i.e. running the specification conformance tests);

This is mostly a preparation step for the upcoming patches.

Change-Id: I783879fd17b63b52d7983e25dad5b820f0515e7f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoRe-generate the Arabic joining tables from UCD 6.1.0
Konstantin Ritt [Wed, 23 May 2012 16:02:28 +0000 (19:02 +0300)]
Re-generate the Arabic joining tables from UCD 6.1.0

Some names were fixed to meet their values in the Unicode data files (e.g. Zain -> Zhain);
Some other names were added as a value alias (Nya -> Noon) or deprecated
but retained as a value alias for BC (HamzaOnHehGoal -> TehMarbutaGoal);
Newly assigned Arabic characters were mapped into respective joining types and classes)

Change-Id: Ic4b4a6baf70f51fb5936f74fe9a173b8790dda11
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoRemove QUpdateEvent from the public headers
Lars Knoll [Sat, 26 May 2012 10:05:02 +0000 (12:05 +0200)]
Remove QUpdateEvent from the public headers

It's only used internally in qwidget, so it might as well
live in qwidget_p.h.

Task-number: QTBUG-25070, QTBUG-25373
Change-Id: I87770e0b49253b4bdebe90ce84dd42448d6175bd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd some batching functions to QPlatformSharedGraphicsCache iface
Eskil Abrahamsen Blomfeldt [Thu, 24 May 2012 13:47:52 +0000 (15:47 +0200)]
Add some batching functions to QPlatformSharedGraphicsCache iface

This adds some pure virtual functions to the interface to enable
batching requests.

The interface functions no longer need to be invokable, as
invokeMethod() is too slow to be used at the required frequency
anyway.

Change-Id: I89b607de1a28f3f4b728c334c04bcd443d4366b4
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
12 years agoFix Qt 5 todo issues for QSizePolicy.
Jan-Arve Saether [Wed, 23 May 2012 12:58:55 +0000 (14:58 +0200)]
Fix Qt 5 todo issues for QSizePolicy.

* Merge the two public ctors.
* Use bitflags instead of shifting bits (more readable).
* Add autotest
* Use int datatype for the "stretch setters". (values out of bounds are clamped)

Streaming to QDataStream will still use the Qt 4 format.

Task-number: QTBUG-25100

Change-Id: Iecb1e78cb12717e4d84448484c3ad8ca469d571a
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoFixed KMS y-invertedness.
Samuel Rødal [Tue, 29 May 2012 12:18:04 +0000 (14:18 +0200)]
Fixed KMS y-invertedness.

Upgrade to new gbm_surface API which lets us use eglCreateWindowSurface.

Change-Id: I4af86d442375017ae3b4744e7b3bdebf3b496b6e
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
12 years agoQtPrintSupport - Add QPrinterInfo api for more printer details
John Layt [Mon, 14 May 2012 20:02:13 +0000 (21:02 +0100)]
QtPrintSupport - Add QPrinterInfo api for more printer details

A previous commit changed the Mac behaviour for printerName()
from returning the CUPS Description to returning the CUPS Name.
In case anyone was relying on this for a human-readable name
add new api to return the CUPS Description.  Also add the
Location and Make and Model which will be used in the Unix
print dialog instead of directly calling CUPS.

Change-Id: I9901bf8d6368466adf111580f5db5a3f01ca9170
Reviewed-by: Teemu Katajisto <teemu.katajisto@digia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: John Layt <jlayt@kde.org>
12 years agoDocument QWindow's setSurfaceType and setFormat update behavior
Holger Hans Peter Freyther [Tue, 29 May 2012 13:41:04 +0000 (15:41 +0200)]
Document QWindow's setSurfaceType and setFormat update behavior

QWindow::setSurfaceType and QWindow::setFormat do not re-create
the QPlatformWindow. Attempt to document this behavior and point
to the documentation of destroy() and create().

Change-Id: Idf7eb343d4918a45b5a701effe3263145a33790a
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoeglfs: Don't update screen for non mouse-move events
Girish Ramakrishnan [Fri, 25 May 2012 22:26:22 +0000 (15:26 -0700)]
eglfs: Don't update screen for non mouse-move events

Change-Id: I7df089a9dc87396e19c08cef3d76c7c7f95a8fbf
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoAdd q_printEglConfig to qeglconvenience
Girish Ramakrishnan [Sun, 27 May 2012 05:23:23 +0000 (22:23 -0700)]
Add q_printEglConfig to qeglconvenience

The code was initially part of eglfs.

Change-Id: I8aa6e77edec85ab2b23765ca04e4416757f3bed6
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoeglfs: remove support for widget rendering using opengl paint engine
Girish Ramakrishnan [Sun, 27 May 2012 05:26:10 +0000 (22:26 -0700)]
eglfs: remove support for widget rendering using opengl paint engine

The eglfs backing store code can render either using the raster paint
engine (through QImage) or using the opengl paint engine. Rendering
quality using the opengl paint engine is pretty poor so remove
it.

Change-Id: I64061ceb3a480049cfebe61aaf172ad1f1da7042
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoeglfs: release shader program after use
Girish Ramakrishnan [Sun, 27 May 2012 05:36:18 +0000 (22:36 -0700)]
eglfs: release shader program after use

Change-Id: Ibe89de88c6c01d182a240def92eb78c0cc896463
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoeglfs: rename QEglIntegration to QEglFSIntegration
Girish Ramakrishnan [Sun, 27 May 2012 16:39:58 +0000 (09:39 -0700)]
eglfs: rename QEglIntegration to QEglFSIntegration

Change-Id: Ifa096537d417571ed660a63a501fed188186f400
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoFix shadow build compilation with MSVC
Thiago Macieira [Thu, 1 Mar 2012 15:17:27 +0000 (16:17 +0100)]
Fix shadow build compilation with MSVC

\#include "foo" in MSVC does not search the output path, so we need to
pass the proper -I flag to find the build dir's src/corelib/global.

Change-Id: I546051c99fd29d7734f8bf35d058ea283ec9bca7
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoFix some painting issues with native widgets
Miikka Heikkinen [Mon, 28 May 2012 13:13:24 +0000 (16:13 +0300)]
Fix some painting issues with native widgets

QWidgetPrivate::drawWidget was missing an important line about marking
native widgets dirty compared to 4.8, which caused all other widgets
besides the native one to not repaint unless window was resized in such
a way that the widgets would get hidden and then re-exposed.

The above didn't fix repainting issues when moving native widgets
(e.g. widgets in QMdiArea subwindows or just calling QWidget::move()).
Added setting widgets dirty to QWidgetWindow::handleExposeEvent to
address this issue.

If there is one native widget, Qt enforces that all widgets in same
parent hierarchy are native - presumably to get overlapping widgets
drawing correctly. However, qapplication_qpa.cpp set the attribute
Qt::AA_DontCreateNativeWidgetSiblings for all applications, which
caused only the parents of native windows be forced native, leading to
drawing artifacts related to siblings of native widgets (e.g.
overlapping QMdiArea subwindows). I don't see a reason for setting this
flag indiscriminately for all applications, so removed it.

Also added setting newly created QWindow visible if associated
widget is already visible, which can happen if regular widgets
are shown before the first native widget is shown and retroactively
forces other widgets native.

Task-number:QTBUG-25805
Change-Id: Ib133dae9b13cc6e7155e7cae00fc1339d3b5ae86
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoAsk the platform drag for the correct default drag action
Lars Knoll [Sat, 26 May 2012 10:12:22 +0000 (12:12 +0200)]
Ask the platform drag for the correct default drag action

This fixes a remaining feature regression from Qt 4.x, where the
dragmanager also determined the default action for a drag given
the set of supported actions and the keyboard modifiers.

Task-number: QTBUG-25373
Change-Id: I80b23b135ba218eb5b7ccc692f12140477bc7809
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQApplication::activeWindow is replaced by QApplication::focusWindow
Thiago Macieira [Tue, 29 May 2012 10:00:26 +0000 (12:00 +0200)]
QApplication::activeWindow is replaced by QApplication::focusWindow

Change-Id: I28ec9b59171fbacbe5c7c0dd1cc998d75538545f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoQWidget::grab: Add a default value for the QRect parameter.
Friedemann Kleint [Fri, 25 May 2012 13:51:39 +0000 (15:51 +0200)]
QWidget::grab: Add a default value for the QRect parameter.

The documentation is misleading in that a default-constructed
rectangle that has size = 0 causes the entire widget to be
painted; this happens only if the one of the size values is
 < 0.

Add a default value such that size < 0 and the entire widget is
painted based on the rationale that a size = 0 might be the result
of some calculation and it would be unexpected to get a pixmap
containing the entire widget in that case.

Change-Id: I2a5fb38cd407b4b64348213101d8196b2c40ad9a
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoQWidget::grab(): Do not call adjustSize() unconditionally.
Friedemann Kleint [Fri, 25 May 2012 12:55:44 +0000 (14:55 +0200)]
QWidget::grab(): Do not call adjustSize() unconditionally.

This breaks the combo dropdown animation on Windows as it
uses special layout tricks and potentially other (unlaid-out)
widgets.

If the size is unknown, call prepareToRender instead.

Reverts d6f971c8547d7f0619b63f7e07f1c292e811b45f.

Change-Id: If44e2a7e7fb134c228674cf228bbee0d5520e04f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoWindows QPA plugin: Add \internal to class documentation.
Friedemann Kleint [Tue, 29 May 2012 10:46:26 +0000 (12:46 +0200)]
Windows QPA plugin: Add \internal to class documentation.

Prevent the classes from appearing in the Qt documentation.

Change-Id: I62abff0c57effdf16629f9d5a0dc384ea2c43d5a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoOnly build devicediscovery on linux systems
Holger Hans Peter Freyther [Tue, 29 May 2012 07:32:04 +0000 (09:32 +0200)]
Only build devicediscovery on linux systems

libudev and linux/input.h are Linux specific. Instead of add a !*bsd*
to the pro line I have decided to only check for linux-*. This is fixing
the compilation on FreeBSD.

Change-Id: If59481421e811eca205407031db593e00b6e8534
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoMake qWaitForWindowShown more robust on X
Laszlo Agocs [Fri, 25 May 2012 11:35:32 +0000 (14:35 +0300)]
Make qWaitForWindowShown more robust on X

Try ensuring the window has received its valid position from the WM.

Change-Id: Ibd75bc19ae820765bfaadd30c22e77a19cd28849
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoDisable GSUB feature when text contains surrogates
Eskil Abrahamsen Blomfeldt [Tue, 22 May 2012 10:29:54 +0000 (12:29 +0200)]
Disable GSUB feature when text contains surrogates

This is a work-around for a feature missing in Harfbuzz that
can make a text run that contains a surrogate and a ligature
crash. This will potentially cause the ligatures to break up
if you combine them with a surrogate, causing visual changes
to the text, but the scripts that require GSUB should not be
affected by this, since they will not use surrogates. Still,
it's not a permanent fix, but will serve as a bandaid for the
crash until the underlying problem has been fixed.

Task-number: QTBUG-22275
Change-Id: I90c37fba76bc7d1f369f3afddd1bd0dc306f5750
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
12 years agoQApplication::syncX doesn't do anything in Qt 5 anymore
Thiago Macieira [Fri, 25 May 2012 09:25:40 +0000 (11:25 +0200)]
QApplication::syncX doesn't do anything in Qt 5 anymore

Change-Id: I325f8badeb5bd7120c691b49fdf51dc9b2649f68
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoRemove unnecessary forward declaration in std namespace
Bradley T. Hughes [Tue, 29 May 2012 05:14:23 +0000 (07:14 +0200)]
Remove unnecessary forward declaration in std namespace

qiterator.h doesn't use std::bidirectional_iterator_tag or
std::random_access_iterator_tag, so remove the forward declarations.
(These actually confuse clang when building with C++11 support enabled).

Change-Id: Idd0daa0840a0995e6e5b0ffc01ddcdf06f048149
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQtDBus: compile with QT_STRICT_ITERATORS
Thiago Macieira [Thu, 24 May 2012 14:45:11 +0000 (16:45 +0200)]
QtDBus: compile with QT_STRICT_ITERATORS

Unlike most other modules, QtDBus in its use of QVector also needs to
check if the item isn't null, which makes for some special changes.

Change-Id: Ia22ad2a6b26c9c34dc09ab882d81323a941d166a
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMake qdoc compile with QT_STRICT_ITERATORS
Thiago Macieira [Thu, 24 May 2012 14:08:54 +0000 (16:08 +0200)]
Make qdoc compile with QT_STRICT_ITERATORS

Change-Id: I2923315678d1aef516b35a8c83fe734367723a28
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtOpenGL: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:58:30 +0000 (01:58 +0100)]
QtOpenGL: remove \link usages

Change-Id: I34509eaf87a91bf31a78b08c91d9a57e704d8989
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtXml: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:55:56 +0000 (01:55 +0100)]
QtXml: remove \link usages

Change-Id: Ifcf1e66bad04e312c29de623fee47fabb91cc108
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtWidgets: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:53:30 +0000 (01:53 +0100)]
QtWidgets: remove \link usages

Change-Id: I9887a24485233f29d07054b3110d4db9e499b9f4
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtGui: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:47:46 +0000 (01:47 +0100)]
QtGui: remove \link usages

Change-Id: Ib8cca14a8fa35fbc631bfea9b4873225eac3677f
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQtCore: remove \link usages
Giuseppe D'Angelo [Fri, 11 May 2012 00:38:45 +0000 (01:38 +0100)]
QtCore: remove \link usages

Change-Id: I0de764b51a972de0b6eb2bf3c04d2b190f581f52
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoSet explicit testcase.timeout for slow tests
Rohan McGovern [Tue, 29 May 2012 06:20:22 +0000 (16:20 +1000)]
Set explicit testcase.timeout for slow tests

We'd like to decrease the default timeout for tests in the Qt Project CI
so that we waste less time waiting for hanging tests.

Tests which genuinely take a long time to run, such as these, should
have their timeout explicitly set in their .pro file.

Change-Id: I4fe6249e9efa764b230251d73a1115c24411e168
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoMake tst_qfiledialog2 closer to parallel-safe.
Rohan McGovern [Tue, 29 May 2012 00:18:51 +0000 (10:18 +1000)]
Make tst_qfiledialog2 closer to parallel-safe.

Use a QTemporaryDir instead of the system-wide temporary directory.

The test is still not entirely parallel-safe (at least on X11) due to
requiring the shown dialog to have keyboard focus.

Change-Id: I628dc6ab52dda49f6957a301eea8944bb9d81453
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoMake tst_selftests parallel-safe.
Rohan McGovern [Tue, 29 May 2012 00:58:41 +0000 (10:58 +1000)]
Make tst_selftests parallel-safe.

Use a QTemporaryDir for temporary files, instead of the current working
directory.

Change-Id: Ifeb2944238f785a1f7beb0dc2a7c1e092d121db5
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoMark tst_qsharedpointer as parallel-safe.
Rohan McGovern [Tue, 29 May 2012 01:11:12 +0000 (11:11 +1000)]
Mark tst_qsharedpointer as parallel-safe.

This autotest seems to be parallel-safe.  It was not marked as such due
to an issue which rarely causes the test to hang on exit on Windows, but
that appears unrelated to whether or not the test is run in parallel.

Change-Id: I30bac75be3ddc14139594605481eb6af3f6795e7
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoMarked tst_qmake as parallel-safe
Rohan McGovern [Tue, 29 May 2012 04:08:07 +0000 (14:08 +1000)]
Marked tst_qmake as parallel-safe

This autotest fails a parallel-stress test because it writes into its
own source/build directory.  However, by inspection, it appears not
likely to cause issues with any tests other than itself.

Change-Id: I13789ba14bab240d34c22c5b77d6407995423afc
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoQMutex: de-inline lock(), unlock(), and tryLock()
Bradley T. Hughes [Wed, 23 May 2012 08:26:07 +0000 (10:26 +0200)]
QMutex: de-inline lock(), unlock(), and tryLock()

See the discussion of this topic on the mailing list:
http://lists.qt-project.org/pipermail/development/2012-May/003943.html

The consensus is to not have these methods have inline code to actually
acquire the lock (i.e. no atomic test-and-set or similar). QBasicMutex
is unchanged, and continues to have inlined lock(), tryLock(), and
unlock(). QMutexLocker has been changed to always call QMutex::lock()
(even though the constructor takes a QBasicMutex parameter).

Change-Id: Ic7d2d9d581e6b254c84fdfdd8ce6c425535a8078
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMake tst_qfilesystemmodel parallel-safe.
Rohan McGovern [Mon, 28 May 2012 23:54:13 +0000 (09:54 +1000)]
Make tst_qfilesystemmodel parallel-safe.

Changed one testfunction to use the test's own QTemporaryDir instead of
the system-wide temporary directory.

Change-Id: I6740a7f4ba7f53174cd0730239d8dc088e5111ba
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoMake tst_qnetworkreply parallel-safe.
Rohan McGovern [Mon, 28 May 2012 23:33:15 +0000 (09:33 +1000)]
Make tst_qnetworkreply parallel-safe.

Ensure we always use a unique filename when writing to test files.
The test already contained code for this, but it was not applied in a
couple of places.

Change-Id: I1e29ee162c390e014688ab46e3658e2a463d203e
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoQtPrintSupport: Change QPrinterInfo::defaultPrinter() behaviour
John Layt [Fri, 25 May 2012 18:28:37 +0000 (19:28 +0100)]
QtPrintSupport: Change QPrinterInfo::defaultPrinter() behaviour

In Qt4 QPrinterInfo::defaultPrinter() has inconsistant behaviour
depending on the platform.  On Mac and Unix if no default printer
is set in the system then the first available printer is returned.
but on Windows it returns a null QPrinterInfo.

Currently Qt5 returns the first printer on all platforms, but this
causes an inconsistency if you call isDefault() on the returned
QPrinterInfo.

The apidox is slightly ambiguous, but does seem to imply no printer
will be returned if no default is set.

The only place in Qt the public api is used is in QPrinter which is
coded expecting that defaultPrinter() may return null but for there
still to be availablePrinters().

Change-Id: I1bbef8cba259b7d51980a0199e9fd6d5466d921f
Reviewed-by: Teemu Katajisto <teemu.katajisto@digia.com>
Reviewed-by: John Layt <jlayt@kde.org>
12 years agoQtPrintSupport: Fix QPrintDialog assert
John Layt [Fri, 25 May 2012 19:24:50 +0000 (20:24 +0100)]
QtPrintSupport: Fix QPrintDialog assert

Fix an assert that wasn't changed when the "Print to PS" option was
removed

Change-Id: Ife7350976707059861660a74dc2f89d302d861f0
Reviewed-by: Teemu Katajisto <teemu.katajisto@digia.com>
Reviewed-by: John Layt <jlayt@kde.org>
12 years agoEliminate QTreeWidget drag crash
Jiewen Wang [Fri, 25 May 2012 13:41:03 +0000 (09:41 -0400)]
Eliminate QTreeWidget drag crash

In QTreeViewPrivate::adjustViewOptionsForIndex() wrong index had been
used when referencing to array of viewItems. Variable row is set to the
index of the QModelIndex, however it is not as same as the index in
viewItems[] when there was hidden item in treeWidget. Index of viewItems[]
should be used here. Unit test is added as well.

Change-Id: Idc7eda979e7d09c5a07bd6dffd92b7abbac10e67
Task-Id: QTBUG-25333
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoAdd CONFIG+=parallel_test to suspected parallel-safe tests.
Rohan McGovern [Thu, 24 May 2012 08:05:55 +0000 (18:05 +1000)]
Add CONFIG+=parallel_test to suspected parallel-safe tests.

These tests have passed a parallel stress test on all three of Linux,
Mac, Windows.  Mark them with CONFIG+=parallel_test to allow CI to run
them in parallel, saving time.

Change-Id: I19fd333c3c645a67374ca998f6c8530dd236b0f8
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoMarked tst_qprocess insignificant on mac
Rohan McGovern [Mon, 28 May 2012 00:33:26 +0000 (10:33 +1000)]
Marked tst_qprocess insignificant on mac

tst_qprocess::lockupsInStartDetached sometimes locks up on mac.
Mark this as a known issue.

Task-number: QTBUG-25895
Change-Id: I08b1bcf39f2bf373e74509a06415d9ba514b8993
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoReplace QVariant::typeToName usage by QMetaType::typeName call.
Jędrzej Nowacki [Mon, 21 May 2012 08:13:24 +0000 (10:13 +0200)]
Replace QVariant::typeToName usage by QMetaType::typeName call.

Type information is kept in QMetaType class. QVariant is delegating
operations, so it is better to use QMetaType directly.

Change-Id: I91209fa1c9dc4303d6bd47c96824d3cd64ce5291
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFixed unused function warning in qtextdocumentfragment test.
Mitch Curtis [Mon, 21 May 2012 08:30:58 +0000 (10:30 +0200)]
Fixed unused function warning in qtextdocumentfragment test.

Change-Id: I74bb961bf23c4ca1e8e5dc77e870d43fcecc5c09
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoFix compiler warnings when simply including qgraphicsscene.h
Simon Hausmann [Sun, 27 May 2012 19:37:44 +0000 (21:37 +0200)]
Fix compiler warnings when simply including qgraphicsscene.h

Commit 02b80ebb52b957ae65cc23f5c9464633d9de868d marked itemAt(x, y) and
itemAt(point) as deprecated, causing a warning when code calls the function.
Unfortunately the itemAt(x, y) overload calls the itemAt(point) overload,
causing a compiler warning even when not using any functions from
qgraphicsscene.h at all.

This commit fixes itemAt(x, y) to not call itemAt(point) but use the
non-deprecated items() function directly.

Change-Id: I9c4d3a070d65f3406cdab00345c56d4fc62e76c1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix To-Do's in QGraphicsScene.
Gatis Paeglis [Wed, 16 May 2012 13:24:24 +0000 (15:24 +0200)]
Fix To-Do's in QGraphicsScene.

Mark obsolete functions with QT_DEPRECATED.

Task-number: QTBUG-25092

Change-Id: I89d9e508479b75ad2d8bf131c69f6158b71fcda8
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoQt 5 to-do in QXcbKeyboard
Gatis Paeglis [Wed, 23 May 2012 10:04:17 +0000 (12:04 +0200)]
Qt 5 to-do in QXcbKeyboard

Rescheduling to Qt 6 since Qt 5.0 was decided to have as little source incompatible changes as possible.

Change-Id: I47cd3e236dd90717efb287aef8fbbedacea1bc0f
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agoFix Qt 5 to-do's in QGraphicsProxyWidget
Gatis Paeglis [Tue, 22 May 2012 18:08:00 +0000 (20:08 +0200)]
Fix Qt 5 to-do's in QGraphicsProxyWidget

Task-number: QTBUG-25091

Change-Id: Ic4160f90f69167d40ee1e569562d25eb009615aa
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoClarify QByteArray::size() documentation.
Mitch Curtis [Thu, 24 May 2012 08:42:44 +0000 (10:42 +0200)]
Clarify QByteArray::size() documentation.

QTBUG-25438

Change-Id: I8cf9bfb295195548b6f7d4410682e4d675181a65
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
12 years agodevicediscovery: add more sophisticated discovery
Johannes Zellner [Fri, 25 May 2012 17:07:11 +0000 (10:07 -0700)]
devicediscovery: add more sophisticated discovery

Detect devices based on bit testing through evdev ioctl api. As this is
for the udev replacement, the bit testing is done similar to what udev
does. The current keyboard detection is based on testing if the KEY_Q is
available. This might be adjusted in the future.

Change-Id: I3f4176681a351e33d90a1425f1afedc8ce3640b8
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
12 years agoQNX: Adding native file dialog support for Blackberry
Sean Harmer [Wed, 25 Apr 2012 12:16:24 +0000 (13:16 +0100)]
QNX: Adding native file dialog support for Blackberry

This patch enables use of native file dialogs in the application
modal case.

The native file open dialog is reasonable but the native file save
dialog could do with some improvements to make it more usable.
Perhaps providing our own "native" dialog UI would be an option
once the widget style is finished.

Change-Id: If5fb7cf73d27e52db7bfa6d97d8f8fb7912960bb
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
12 years agoItemviews: compile with QT_STRICT_ITERATORS
Thiago Macieira [Thu, 24 May 2012 14:42:11 +0000 (16:42 +0200)]
Itemviews: compile with QT_STRICT_ITERATORS

Just a few mixed up iterators.

Change-Id: I19f62457ee24bc844fadd182ba61866e259e9636
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoFix xcb plugin compilation for -qconfig large
Tasuku Suzuki [Wed, 16 May 2012 20:16:10 +0000 (05:16 +0900)]
Fix xcb plugin compilation for -qconfig large

Change-Id: I1ee1fb9c140396e83272d607ee4dd63ce2c50b8d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>