profile/ivi/qtbase.git
11 years agoQtBase: examples/widgets/richtext code style
David Schulz [Fri, 23 Nov 2012 12:36:40 +0000 (13:36 +0100)]
QtBase: examples/widgets/richtext code style

Change-Id: Ie0c27464e0fdb8f26caf0d8f27043da4ec45f41f
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoFix QVariant streaming in Qt3 compatibility mode.
Jędrzej Nowacki [Wed, 21 Nov 2012 15:24:49 +0000 (16:24 +0100)]
Fix QVariant streaming in Qt3 compatibility mode.

Task-number: QTBUG-27700
Change-Id: I0408293e43c3330dbc4746198a19709e795f552a
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agotst_QDateTimeEdit: remove redundant include
J-P Nurmi [Fri, 23 Nov 2012 14:27:32 +0000 (15:27 +0100)]
tst_QDateTimeEdit: remove redundant include

Change-Id: I3aeb90723b41b35e221b86b1767ed1ac45a9fe0c
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_QToolButton: remove redundant include
J-P Nurmi [Fri, 23 Nov 2012 14:29:04 +0000 (15:29 +0100)]
tst_QToolButton: remove redundant include

Change-Id: Ie55a530a89b85a4f3369ee3205221fb01fa1773e
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years ago[SIC] QLocale: Update some language names with their modern values
Konstantin Ritt [Fri, 23 Nov 2012 10:18:11 +0000 (12:18 +0200)]
[SIC] QLocale: Update some language names with their modern values

Some of them were incorrectly spelled (for a while)

Change-Id: I871968e3bbdd2172f4c4dfb6e74729c05e7e8e01
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQLocale: Fix toCurrencyString() didn't respect group separator option
Konstantin Ritt [Fri, 23 Nov 2012 09:45:01 +0000 (11:45 +0200)]
QLocale: Fix toCurrencyString() didn't respect group separator option

Change-Id: Icda43d71d600d77fe1ed4fcde1ef4478ef29c1d5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Denis Dzyubenko <denis@ddenis.info>
11 years agoCleanup tst_QApplication
J-P Nurmi [Fri, 23 Nov 2012 14:02:46 +0000 (15:02 +0100)]
Cleanup tst_QApplication

Remove redundant includes, remove references to deprecated
QApplication::GuiServer (passing that has no effect anymore), and use
QStyleFactory instead of referencing QWindowStyle directly (about to
become an internal class).

Change-Id: I08f94993a55ce6039c7694d8f7019cbd53594edc
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
11 years agoRemove QApplication::type() and make QCoreApplication::Type internal
J-P Nurmi [Thu, 22 Nov 2012 13:29:07 +0000 (14:29 +0100)]
Remove QApplication::type() and make QCoreApplication::Type internal

These Qt3 legacy application types do not match the application types
available in Qt5. Thus, the decision was to kill the confusing and
mostly useless type enum. Use for example qobject_cast instead to find
out the application type.

Task-number: QTBUG-28093
Change-Id: Ia8cf7c3ea98a3cea27f74760d62e519ea10bce9f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoMake skipping of test consistent.
Frederik Gladhorn [Fri, 23 Nov 2012 16:39:23 +0000 (17:39 +0100)]
Make skipping of test consistent.

On Mac every function was skipped individually,
on the other platforms it was marked as
insignificant.

See also QTBUG-22560 and QTBUG-22361

Change-Id: Ie9b9c617006d5a8c19d042b8be89e449c5ac70bc
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoDraw disabled QMenu items in inactive state in vista style.
Friedemann Kleint [Fri, 23 Nov 2012 14:18:50 +0000 (15:18 +0100)]
Draw disabled QMenu items in inactive state in vista style.

Task-number: QTBUG-27992

Change-Id: I4ed5661cfe0d0a10143224b73fbad6fac4927a37
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoUpdated aboutQt dialog text
Lars Knoll [Fri, 23 Nov 2012 13:48:04 +0000 (14:48 +0100)]
Updated aboutQt dialog text

Updated supported platforms to match reality better,
mention qt-project.org and other copyright holders.

Task-number: QTBUG-25205
Change-Id: I4856d515500945ace55f7fd445b5b138aa00df83
Reviewed-by: Tuukka Turunen <tuukka.turunen@digia.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoRemove Plastique and Cleanlooks from the widget gallery
Jan Arve Saether [Fri, 23 Nov 2012 15:10:17 +0000 (16:10 +0100)]
Remove Plastique and Cleanlooks from the widget gallery

This commit does not remove the actual images, since they
are referenced from many other places.

Plastique style seems to have been used often as a style
for showing a screenshot of a widget (probably because it
has been available on all platforms).

When fusion style gets its gallery with images, the references
to the plastique images should probably be replaced with
references to fusion images.

Change-Id: I288c06df2c5e1f3a212b873ec0f087e119b895b0
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoDoc: Be consistent, and put all widget classes in the same page.
Jan Arve Saether [Fri, 23 Nov 2012 08:58:30 +0000 (09:58 +0100)]
Doc: Be consistent, and put all widget classes in the same page.

Change-Id: I152a39e798a152b5362db7fdc63ccd6b887ee13b
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoFix outdated comment in kernel/qtranslator_p.h.
hjk [Fri, 23 Nov 2012 07:12:22 +0000 (08:12 +0100)]
Fix outdated comment in kernel/qtranslator_p.h.

Change-Id: I0e7cc1686c5bcce611e353987e41b4dae7af5c31
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agodocs: DBus: Remove ObjectTree
Frederik Gladhorn [Fri, 23 Nov 2012 15:07:29 +0000 (16:07 +0100)]
docs: DBus: Remove ObjectTree

In 0696071316b3dacb8d1ca15a269e4f4215642b9d
the ObjectTree class was removed.

Change-Id: I9c7a505a597e7c2ed9243468faee931a481b1b22
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agodocs: Remove doc for removed functions
Frederik Gladhorn [Fri, 23 Nov 2012 14:27:52 +0000 (15:27 +0100)]
docs: Remove doc for removed functions

In 3986b5127419dfd6db6ce667b2976d188e25d9be
these two functions were removed.

Change-Id: Ib38692099aee8f71a8ae0f7949b8fa90eddf6009
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agodocs: Link to class overview for dbus
Frederik Gladhorn [Thu, 22 Nov 2012 14:52:22 +0000 (15:52 +0100)]
docs: Link to class overview for dbus

Change-Id: I15b3791861e393065817054965aec5c0a5ae4c7b
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoFix selection in QTableView when rows and columns have been moved
Miikka Heikkinen [Thu, 15 Nov 2012 11:08:12 +0000 (13:08 +0200)]
Fix selection in QTableView when rows and columns have been moved

The determination of top left and bottom right model indexes for the
selection used logical indexes, which resulted in selection truncating
itself if the first or last row or column had been moved to different
position on the table. Changed the logic to use visual indexes instead.

Task-number: QTBUG-28009
Change-Id: I4eb9dab690dafda9d2ab7c452dd6271fad70cb30
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoAdded reference to W3C's XML specs
Nico Vertriest [Wed, 21 Nov 2012 14:34:13 +0000 (15:34 +0100)]
Added reference to W3C's XML specs

Removed 's from title

Change-Id: I7c44279aab02edd26e454da5f59f4a9a19eab18a
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoPrevent "number of sections exceeded" when compiling qmetatype tests.
Mitch Curtis [Thu, 22 Nov 2012 11:45:30 +0000 (12:45 +0100)]
Prevent "number of sections exceeded" when compiling qmetatype tests.

When compiling qmetatype auto tests with msvc2008 64-bit, I receive:

qmetatype.h(383) : fatal error C1128: number of sections exceeded
object file format limit : compile with /bigobj

This patch follows that advice and adds /bigobj to QMAKE_CXXFLAGS.

Change-Id: I05b3cf9dfdb6a93649c692e2df22365d200e6f2f
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
11 years agoFixed excessive enter/leave events being generated with the xcb plugin.
Samuel Rødal [Fri, 23 Nov 2012 14:10:39 +0000 (15:10 +0100)]
Fixed excessive enter/leave events being generated with the xcb plugin.

When we get a leave event we peek ahead in the queue to see if there's
an enter event already pending. If so we use
QWindowSystemInterface::handleEnterLeave() instead of two separate
window system interface events, so that you don't get leave and enter
events for the whole parent chain when moving the mouse cursor between
two neighbouring native child widgets.

We skip VIRTUAL events as they are generated for parent windows, and we
only care about the bottom-most window that is being entered / left. Qt
can take care of the rest since it knows the QWindow hierarchy.

We need to not skip leave events with detail set to INFERIOR, since Qt
expects to get a handleEnterLeave() when the mouse moves from a parent
window to a child window.

Task-number: QTBUG-27550
Change-Id: I7457d2e59d8b694081f2e43a16cd2e58d769624e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoDo not detect directories ending in ".lnk" as link files.
Friedemann Kleint [Fri, 23 Nov 2012 13:54:18 +0000 (14:54 +0100)]
Do not detect directories ending in ".lnk" as link files.

Task-number: QTBUG-21863

Change-Id: I70b661fa5fcaba1293a80c971c506798826f5b23
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoProper macro replacment and branch evaluation
Lars Knoll [Thu, 22 Nov 2012 10:03:39 +0000 (11:03 +0100)]
Proper macro replacment and branch evaluation

Correclty replace macros according to the C++ standard.
Use the correct replacement method also to evaluate

With this moc correctly processes boost headers.

Task-number: QTBUG-27546

Change-Id: I001b3054c5fcdc34d46cfa53d1387bd19436f361
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoCorrectly expand arguments in function macros
Lars Knoll [Thu, 22 Nov 2012 09:31:14 +0000 (10:31 +0100)]
Correctly expand arguments in function macros

Arguments in function macros are only expanded if they
aren't used in conjunction with a # or ## operator.

Change-Id: I8c80e11902a592128504c4637545e75866566965
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoRemove additional whitespaces from the macro tokens
Lars Knoll [Thu, 22 Nov 2012 08:13:14 +0000 (09:13 +0100)]
Remove additional whitespaces from the macro tokens

According to the spec, we should ignore whitespace tokens
at the beginning and end of the macro definition. In addition,
whitespaces after a # and around ## should be ignored

Change-Id: I830d0f4aaed3bcfac345d7da6df65693ec3315b8
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoEmit destroyed() signal before children get deleted
Lars Knoll [Tue, 20 Nov 2012 12:34:06 +0000 (13:34 +0100)]
Emit destroyed() signal before children get deleted

Make sure we always emit the destroyed() signal before
we delete our children. This wasn't working correctly
for QWidget based classes, as the QWidget destructor
deletes all children itself.

Task-number: QTBUG-24672
Change-Id: Iecdff3489196271177edfeba1c4a2c5800e255af
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoAdd VS manifest files to .gitignore
J-P Nurmi [Fri, 23 Nov 2012 12:24:46 +0000 (13:24 +0100)]
Add VS manifest files to .gitignore

Change-Id: I3aea869d870bdba047b4e86d2034c25eb62075f8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoCleanup Symbian specific rules from .gitignore
J-P Nurmi [Fri, 23 Nov 2012 12:21:00 +0000 (13:21 +0100)]
Cleanup Symbian specific rules from .gitignore

Change-Id: I0a47ae19d327af54e54cca94a04d90b543855988
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFix \brief for QEasingCurve
Lars Knoll [Fri, 23 Nov 2012 13:25:23 +0000 (14:25 +0100)]
Fix \brief for QEasingCurve

Change-Id: Ibb8ce4e87e6338cc9d436344d1336397db093cb0
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoQHeaderView - Fix auto-scroll on manual move on sections
Thorbjørn Lund Martsum [Wed, 31 Oct 2012 15:01:53 +0000 (16:01 +0100)]
QHeaderView - Fix auto-scroll on manual move on sections

This patch fixes the manual move of sections when auto scroll is on.
It is done in QAbstractItemView::doAutoScroll by letting the
qheaderView use its parents scrollbars if they are childs of a
QTableView or QTreeView.

Task-number: QTBUG-993
Task-number: QTBUG-1103

Change-Id: I70d999d9a07c3566e42d01cc5ebb47a69a83d9d4
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoQAbstractItemView - prepare fix for auto scroll on sectionmove
Thorbjørn Lund Martsum [Wed, 31 Oct 2012 14:07:40 +0000 (15:07 +0100)]
QAbstractItemView - prepare fix for auto scroll on sectionmove

There are no semantic changes in this patch. We just avoid
many calls to horizontalScrollBar() and verticalScrollBar() by
storing the result of them in local variables, that are used
instead.

This is just a prepare for auto-scroll when a user is moving a
section.

Change-Id: I4b3d3ecbf3a29992e6f578d4b0442d7f494125e4
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoPrevent easing example warnings.
Thomas Hartmann [Wed, 21 Nov 2012 10:53:45 +0000 (11:53 +0100)]
Prevent easing example warnings.

examples/widgets/animation/easing was spitting out a lot of
"QEasingCurve: Invalid tcb curve" warnings.
The reason was that in case of the TCP curve we do not provide
defaults.

The function createEasingCurve() now provides reasonable values
for the custom curves to show what is possible and how to use them.

Change-Id: I880d8d0f0ce2872ce2019f7d2e000f4c4ce136e2
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
11 years agoCocoa: Make sure non windowed QCocoaWindows hide their content views
Gabriel de Dietrich [Thu, 22 Nov 2012 16:38:52 +0000 (17:38 +0100)]
Cocoa: Make sure non windowed QCocoaWindows hide their content views

Change-Id: I92b8600c513ba033c459b6911ca62fc31698dc4a
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoCocoa: Make sure child windows' QNSView is properly released
Gabriel de Dietrich [Wed, 21 Nov 2012 15:19:21 +0000 (16:19 +0100)]
Cocoa: Make sure child windows' QNSView is properly released

Child QCocoaWindows don't have an assigned NSWindow, but still get a
QNSView as backing store. That QNSView is added as a subview to
the parent window's QNSView. That would leave an unmanaged QNSView
alive.

Change-Id: I10f57fb971f7aa1e278bb0af4217052d1e4bb0bc
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
11 years agoCocoa: QGLWidget draws wrong within QMainWindow on Mac OS
Richard Moe Gustavsen [Wed, 21 Nov 2012 12:57:00 +0000 (13:57 +0100)]
Cocoa: QGLWidget draws wrong within QMainWindow on Mac OS

The resons for this bug is that Qt can share the same backingstore
between several windows (if they exist in the same hierarchy), but
this was just not supported by the Cocoa plugin.

This patch will make sure that we pay attention to which window
the QCocoaBackingStore is told to flush, and forward this information
to the QNSView that backs it up. Inside the views drawRect
function we then take some extra steps to get the correct sub-part
of the possibly shared backingstore image.

This patch also does some effort to ensure that we recreate the
backingstore image as little as possible, as we can often get
several resizes to the backingstore before we actually draw anything.
Moreover, by being a bit careful on how we tell UiKit to update
the view upon a flush, we can minimize the number of drawRect calls
(and then CGImageRef creations) we need to do. This patch actually
ends up improving resize/repaint performance a lot as well.

QT-BUG: 27390
Change-Id: I2c2a26b149fa855411b6bff8b9cc9a61694ae72f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
11 years agoMake widgetgrab manual test compile with 4.8 and 5.
Friedemann Kleint [Fri, 23 Nov 2012 11:42:11 +0000 (12:42 +0100)]
Make widgetgrab manual test compile with 4.8 and 5.

Task-number: QTBUG-27333
Task-number: QTBUG-27550

Change-Id: Iceb2ded9deff1d375bf02b88e214da20901bfa0e
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
11 years agoQtBase: examples/widgets/graphicsview/ codestyle
David Schulz [Fri, 23 Nov 2012 08:31:03 +0000 (09:31 +0100)]
QtBase: examples/widgets/graphicsview/ codestyle

Change-Id: I501066b5eb5a1557d510e0ec20b5270e8c12704a
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoQtBase: examples/widgets/painting code style
David Schulz [Fri, 23 Nov 2012 10:52:51 +0000 (11:52 +0100)]
QtBase: examples/widgets/painting code style

Change-Id: I3d3c6f3bae20ac8383279437f8f89c92195a704f
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoAdd nsOpenGLContextForContext to QCocoaNativeInterface.
Zeno Albisser [Fri, 23 Nov 2012 09:52:22 +0000 (10:52 +0100)]
Add nsOpenGLContextForContext to QCocoaNativeInterface.

This change enables receiving the native NSOpenGLContext that is used
by a QOpenGLContext. This clearly is non-public api that is only meant to
be used as a last resort for cases where it is really necessary to
get hold of a native context object.

Change-Id: Iea7c6abb458acc7aa15926052673270d25d1d9d1
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoFix race condition on d->state, by locking the mutex first.
David Faure [Tue, 23 Oct 2012 20:25:10 +0000 (22:25 +0200)]
Fix race condition on d->state, by locking the mutex first.

Detected by helgrind ./tst_qurl testThreads

Change-Id: I0fe01153cd119741ce8a2bfe7dddead7c6ebf0b0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoMade QMacStyle internal
J-P Nurmi [Fri, 16 Nov 2012 23:52:26 +0000 (00:52 +0100)]
Made QMacStyle internal

We will take this opportynity to remove various QStyle specializations
from the public API in Qt5. This gives us much more freedom, for
example changing the inheritance hierarchy, pluginizing etc. without
worrying about BC.

=> Use QStyleFactory and/or QProxyStyle instead of creating an instance
or inheriting QMacStyle directly.

Change-Id: I44a2f5ee3fe08ecc837b593a2a2737eb90e8c267
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agotst_qlistview: remove redundant include
J-P Nurmi [Fri, 23 Nov 2012 13:54:26 +0000 (14:54 +0100)]
tst_qlistview: remove redundant include

Change-Id: If33518159feb202fa041ac2809817dff5616249f
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_qwizard: remove redundant include
J-P Nurmi [Fri, 23 Nov 2012 13:51:26 +0000 (14:51 +0100)]
tst_qwizard: remove redundant include

Change-Id: I837aed1e5e601e67105562df2764327b7e8c44a6
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoxcb plugin: Move the include XInput2.h statements
Thomas Senyk [Thu, 22 Nov 2012 17:11:56 +0000 (18:11 +0100)]
xcb plugin: Move the include XInput2.h statements

If the include of egl.h does nasty things with X11-defines
(this happens with the imx6 gpu-drivers) errors are avoided if
the include of XInput2.h is next to the other X-includes,
and not after include of egl.h

Change-Id: I182d0e1fcf3fa3e6abce880d34e63cc1d2ce8ed4
Reviewed-by: Laszlo Agocs <lagocs83@gmail.com>
11 years agoQTBF: Fix issue with no splitting the words at "." (FULL STOP)
Konstantin Ritt [Thu, 22 Nov 2012 01:25:05 +0000 (03:25 +0200)]
QTBF: Fix issue with no splitting the words at "." (FULL STOP)

As of Unicode 5.1, some punctuation marks were mapped to MidLetter and MidNumLet
for better URL and abbreviations handling which caused "hi.there" to be treated
like if it were just a single word;
until we have the Unicode Text Segmentation tailoring mechanism, retain
the old behavior by remapping (some of) those characters back to their old values.

Change-Id: I49dea6064f2ea40a82fc0b1bc3c4f0b4e803919f
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoBlackBerry mkspecs: tell compiler the specific ARM version (cortex-a9)
Peter Hartmann [Thu, 22 Nov 2012 16:29:04 +0000 (17:29 +0100)]
BlackBerry mkspecs: tell compiler the specific ARM version (cortex-a9)

... so the compiler knows which instructions to generate and can
optimize for the specific CPU.
All BlackBerry platforms are Cortex-A9 compatible.

Change-Id: I3fd22e63af12f704365f494bbb7138963b4c4ec7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoMake QtQuick documentation references work
Paul Olav Tvete [Thu, 22 Nov 2012 15:57:07 +0000 (16:57 +0100)]
Make QtQuick documentation references work

...and add one where we used to say that QWidget is "the base
class of everything that appears on the screen".

Change-Id: I573d8162fd69b7bfc5b0305f3ed6530129386b78
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoMac: Fix compilation with -sdk option
Eike Ziller [Wed, 31 Oct 2012 09:50:43 +0000 (10:50 +0100)]
Mac: Fix compilation with -sdk option

The include paths that the mkspecs set into the OpenGL/AGL frameworks
must take the SDK into account.
(The headers in 10.8 have slightly changed wrt 10.7, leading to compile
errors because framework style includes (<OpenGL/foo.h>) within the system
headers are resolved to the SDK framework headers.)

Change-Id: I6113cdb95b462d587f593682e03e81e920f3f672
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
11 years agoAdd pointers to the rich text documentation from mentions of rich text.
Samuel Rødal [Thu, 22 Nov 2012 11:04:40 +0000 (12:04 +0100)]
Add pointers to the rich text documentation from mentions of rich text.

The QLabel documentation for instance is quite confusing since it talks
about rich text without saying what it actually is. The QTextEdit
documentation can also be improved by being more explicit.

Change-Id: Ie718d170e18a0b713fe567fb707330d0085fb9e4
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoCocoa: Fix disabled colors in palette
Gabriel de Dietrich [Thu, 22 Nov 2012 13:14:47 +0000 (14:14 +0100)]
Cocoa: Fix disabled colors in palette

Change-Id: I1e6cf2a860f611e08ae2720c2e4eed65a85dbe9c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agodefault to Regular font with FontConfig
Michał Sawicz [Mon, 19 Nov 2012 14:38:03 +0000 (15:38 +0100)]
default to Regular font with FontConfig

Default to Regular/Normal instead of Medium in QFontConfigDatabase.

Requesting Medium as default was fine until the font actually provided a
Medium font, at which point it was selected by default.

Tweak the buckets so that Medium has preference over Bold when DemiBold
is requested. They will have to be extended for Medium when QTBUG-25814
is resolved.

Change-Id: I111b7f99083d50c3e8264f84f10a997f619ef4b3
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoRevise QObject::connect documentation.
Mitch Curtis [Mon, 19 Nov 2012 08:58:24 +0000 (09:58 +0100)]
Revise QObject::connect documentation.

Change-Id: I07d593b6b2c3d5c8843212d5a888525ac29ca1b0
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoImproved the paint devices and backends documentation page.
Samuel Rødal [Thu, 22 Nov 2012 08:47:21 +0000 (09:47 +0100)]
Improved the paint devices and backends documentation page.

The image was outdated and didn't really add much information.

Also bring back mention of QWidget here.

Change-Id: I9de95a4ae7eaf0352418bea5732b5e9a763c73c2
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoFixed misspelled dependency in qtgui.qdocconf to fix QtQuick doc links.
Samuel Rødal [Thu, 22 Nov 2012 15:12:33 +0000 (16:12 +0100)]
Fixed misspelled dependency in qtgui.qdocconf to fix QtQuick doc links.

Change-Id: Ia481d0eb643bafd03a353c7a4f40f130607ced29
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoQWidgetPrivate::init(): clarify that QWidget requires QApplication
J-P Nurmi [Thu, 22 Nov 2012 11:54:51 +0000 (12:54 +0100)]
QWidgetPrivate::init(): clarify that QWidget requires QApplication

Task-number: QTBUG-28076
Change-Id: Ica9713894c18bb43ae817a6dd42be087b23fa8c2
Reviewed-by: Jing Bai <jing.bai@digia.com>
11 years agoqmake: do not exclusively lock files for reading on Windows/MSVC
Joerg Bornemann [Thu, 22 Nov 2012 10:59:11 +0000 (11:59 +0100)]
qmake: do not exclusively lock files for reading on Windows/MSVC

When sifting through a file to find Q_OBJECT and friends, qmake
was locking it for reading and writing (_SH_DENYRW).
This breaks parallel builds where multiple qmake instances might want
to scan the same file.
Changed the sharing constant to _SH_DENYNO, which doesn't lock the
file at all. This is consistent with the _sopen_s call in findDeps.

Change-Id: I9c0a06db7f580f411e79d9d96dd36a6d705679aa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoqdoc: fix urls in manifests after modularization
hjk [Thu, 22 Nov 2012 13:53:18 +0000 (14:53 +0100)]
qdoc: fix urls in manifests after modularization

Change-Id: Ib01062f29139f670894f5496d67ccdfe622b778b
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoMade QWindowsMobileStyle internal
J-P Nurmi [Tue, 20 Nov 2012 12:50:40 +0000 (13:50 +0100)]
Made QWindowsMobileStyle internal

We will take this opportynity to remove various QStyle specializations
from the public API in Qt5. This gives us much more freedom, for
example changing the inheritance hierarchy, pluginizing etc. without
worrying about BC.

=> Use QStyleFactory and/or QProxyStyle instead of creating an instance
or inheriting QWindowsMobileStyle directly.

Change-Id: Id64f3dabff38db7864e235c79b2e9276379f4ba4
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
11 years agoMade QWindowsCEStyle internal
J-P Nurmi [Tue, 20 Nov 2012 12:41:59 +0000 (13:41 +0100)]
Made QWindowsCEStyle internal

We will take this opportynity to remove various QStyle specializations
from the public API in Qt5. This gives us much more freedom, for
example changing the inheritance hierarchy, pluginizing etc. without
worrying about BC.

=> Use QStyleFactory and/or QProxyStyle instead of creating an instance
or inheriting QWindowsCEStyle directly.

Change-Id: I6b3c0554e7a2a4a5f0027f4ea1342fd332af89ad
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
11 years agoFix transformed text on Mac OS X
Eskil Abrahamsen Blomfeldt [Wed, 21 Nov 2012 08:58:12 +0000 (09:58 +0100)]
Fix transformed text on Mac OS X

In change 1582407fc782c0befd0760633324dd5c206524a1, the Q_WS_MAC
code path which disabled drawing cached glyphs for any transform
was removed, as was the comment that scaling and rotation wasn't
supported by the Mac font engines. This obviously broke transformed
text on Mac, so we need to put it back.

I put it into the font engine itself where it belongs, and I kept
the somewhat confusing naming convention which is used in the
paint engine to minimize this patch. I'll clean up these function
names in a future commit.

Task-number: QTBUG-27362
Change-Id: I4fc6a503eedd4b1ebaf3ee659d948f997f433338
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoFixes problem with single precision floats in QDataStream (Windows).
Christian Strømme [Tue, 13 Nov 2012 18:17:17 +0000 (19:17 +0100)]
Fixes problem with single precision floats in QDataStream (Windows).

When the floating-point behavior in MSVC is set to "precise" (default),
assigning nan numbers to a float causes the bit pattern to be altered
(only affects 32bit builds). We should therefore not assign the swapped
value back to a float and use it.

Task-number: QTBUG-25950

Change-Id: I7b6cc4d546e5c8aeafdede749056358b7d639ec7
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
11 years agoAdd WindowFullscreenButtonHint.
Morten Johan Sørvig [Mon, 5 Nov 2012 21:20:47 +0000 (22:20 +0100)]
Add WindowFullscreenButtonHint.

Adds the fullscreen button on Mac OS X. Has no effect
on other platforms. Regarding the name I dropped the
"Mac" prefix (like MacWindowToolBarButtonHint). Other
platforms can use and we don't want to accumulate "Mac"
API's.

Change logic in QCocoaWindow check for this flag instead
of using WindowsMaximizebutton.

Change-Id: I9f2db75e8e71b3da36777c7e48852eda3ce9d534
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
11 years agoAccessibility Mac: Return textArea as role for multi line text.
Frederik Gladhorn [Thu, 15 Nov 2012 16:01:15 +0000 (17:01 +0100)]
Accessibility Mac: Return textArea as role for multi line text.

Change-Id: I88eb4746463b7372c2dfe089ba74ea4cb0098396
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoAccessibility: set multiline state for text edits.
Frederik Gladhorn [Thu, 15 Nov 2012 16:06:50 +0000 (17:06 +0100)]
Accessibility: set multiline state for text edits.

Change-Id: I22d3baac8fc57db0c89d8543019a93263b2023ca
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoAccount for the item spacing when using QListView::scrollTo()
Pierre Rossi [Mon, 19 Nov 2012 20:15:19 +0000 (21:15 +0100)]
Account for the item spacing when using QListView::scrollTo()

Somehow this bug managed to stay hidden until the introduction
of QFusionStyle.

Task-number: QTBUG-27675
Change-Id: I86b049b869e9f2951426dc67a485ad7c60ef1403
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoReturn something from QPAEventDispatcherGlib::processEvents
hjk [Thu, 22 Nov 2012 08:33:33 +0000 (09:33 +0100)]
Return something from QPAEventDispatcherGlib::processEvents

Change-Id: I0abaf73d4b6b96dbcf499ea86749ced76348c281
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoGet rid of deprecated functionality in QtOpenGL.
Samuel Rødal [Thu, 22 Nov 2012 07:35:48 +0000 (08:35 +0100)]
Get rid of deprecated functionality in QtOpenGL.

We will in any case not be able to support this in Qt 5, so best to just
remove it to not give any false impressions.

Change-Id: Ib52e86007b9e6483bd973f13502b078792a9fa40
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFix drops from external sources.
Gatis Paeglis [Thu, 11 Oct 2012 13:29:40 +0000 (15:29 +0200)]
Fix drops from external sources.

Task-number: QTBUG-26832

Change-Id: Ia1ccce391178e73d26a4f09955bce6c37616384f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoPass extended key event infomation in xcb platform.
Weng Xuetian [Sun, 24 Jun 2012 05:04:44 +0000 (13:04 +0800)]
Pass extended key event infomation in xcb platform.

Bare QKeyEvent missing some useful info for input method.
Use new construct of QKeyEvent to create extended QKeyEvent

Change-Id: I8c89e80e7329b92e3e04d5fe52d07c6f6f9e006f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoQtPrintSupport: use CUPS defaults for UNIX print dialog
Teemu Katajisto [Wed, 22 Aug 2012 09:09:21 +0000 (12:09 +0300)]
QtPrintSupport: use CUPS defaults for UNIX print dialog

Update printer defaults in UNIX print dialog when printer
is changed.

Task-number: QTBUG-23037
Task-number: QTBUG-6239
Task-number: QTBUG-15351
Task-number: QTBUG-19233
Task-number: QTBUG-22036

Change-Id: Ib03635035211bd69b5b23da20ffd2c03ac318a1a
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoQtPrintSupport: remove advanced tab from UNIX print properties dialog
Teemu Katajisto [Mon, 13 Aug 2012 08:47:32 +0000 (11:47 +0300)]
QtPrintSupport: remove advanced tab from UNIX print properties dialog

The Advanced tab shows CUPS options and duplicates some of the settings
in Page tab. These duplicate settings cannot be kept in synchronization
and thus the Advanced tab causes confusion which settings are used.

Remove the Advanced tab because the same settings are either available
in Page tab or can be configured in system printer settings.

Change-Id: I2dc2bf8b3b84dd19f24b2e6c1c9539c925d5d725
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoCocoa: Properly set QNSView's geometry when it's a subview
Gabriel de Dietrich [Thu, 22 Nov 2012 14:56:48 +0000 (15:56 +0100)]
Cocoa: Properly set QNSView's geometry when it's a subview

Task-number: QTBUG-26960
Change-Id: Ib8ca76572c868305f378d22c21d13511b4999244
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
11 years agotst_QMetaProperty doesn't need QtGui
Marc Mutz [Thu, 22 Nov 2012 10:12:54 +0000 (11:12 +0100)]
tst_QMetaProperty doesn't need QtGui

Change-Id: Id286827f692b7c49436ae8247f49eff993a47bdc
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agobootstrapped tools don't need env var setup
Oswald Buddenhagen [Thu, 22 Nov 2012 12:46:37 +0000 (13:46 +0100)]
bootstrapped tools don't need env var setup

Change-Id: I15d818d3ca24d426e492ea9d3a423f661b3ccf3b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoDo not hide fullscreen widgets having a 0x0 geometry
Oliver Wolff [Thu, 22 Nov 2012 08:44:33 +0000 (09:44 +0100)]
Do not hide fullscreen widgets having a 0x0 geometry

It is possible that the widget which is to be shown full screen has a
0x0 geometry if an empty layout with 0 margin is set there. In that case
the widget should not be hidden.

Task-number: QTBUG-27602

Change-Id: I87fd20cc3a5bac89ceccdf639780c4bc721ce860
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoMade renderText() work in samplebuffers example.
Samuel Rødal [Thu, 22 Nov 2012 08:12:54 +0000 (09:12 +0100)]
Made renderText() work in samplebuffers example.

Since the OpenGL paint engine is now OpenGL 2.0 based, we need to save
and restore all GL state to prevent it from being clobbered.

Task-number: QTBUG-27020
Change-Id: I39831e074aa818583df34c4a88b13be559d0231b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoQtBase: examples/widgets/itemviews code style
David Schulz [Thu, 22 Nov 2012 12:40:51 +0000 (13:40 +0100)]
QtBase: examples/widgets/itemviews code style

Change-Id: I78a7745f7dc3add3fd7780220118d1b35b50a941
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoDoc: Modified Qt Test's doc configuration to match file and dir names.
Jerome Pasion [Wed, 21 Nov 2012 12:03:05 +0000 (13:03 +0100)]
Doc: Modified Qt Test's doc configuration to match file and dir names.

-"qttestlib" should be the directory to match the name of the .index
file. The names affect the cross linking and the "depends" variable.

Change-Id: Ibd35e7a089c78c043527bd72741e57d72daa83d8
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Jason McDonald <macadder1@gmail.com>
11 years agoAdd support for getaddrinfo using MinGW in tst_qhostinfo
Jonathan Liu [Wed, 21 Nov 2012 10:37:03 +0000 (21:37 +1100)]
Add support for getaddrinfo using MinGW in tst_qhostinfo

Change-Id: Ief9ddd22171ec2b852ca504957e0e11b90badccb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQtBase: examples/widgets/itemviews/addressbook codestyle
David Schulz [Wed, 21 Nov 2012 14:45:13 +0000 (15:45 +0100)]
QtBase: examples/widgets/itemviews/addressbook codestyle

Change-Id: I710d67018351c34ef14ac30edcca81aba7ff5ad3
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoAdd QMimeType::aliases().
David Faure [Mon, 19 Nov 2012 16:14:02 +0000 (17:14 +0100)]
Add QMimeType::aliases().

Requested by Allan Sandfeld Jensen for QWebkit, which needs to register
upfront all the mimetypes that a given plugin can handle.

Change-Id: I64b8d39c7988adfc7db4ed8bfdc73acd16e999da
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUse QT_STRINGIFY in qobjectdefs.h
Olivier Goffart [Wed, 21 Nov 2012 15:30:14 +0000 (16:30 +0100)]
Use QT_STRINGIFY in qobjectdefs.h

Since it is declared in qglobal.h, we do not need to re-implement the
hack here.

QTOSTRING was only defined if QT_NO_META_MACROS was defined, so
practically not safe to use in other places.

Change-Id: Ie5b07d0fa7537ba79380b882a4c822583ee5635e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUnbreak the bootstrap lib build on MinGW
Konstantin Ritt [Tue, 20 Nov 2012 16:27:59 +0000 (18:27 +0200)]
Unbreak the bootstrap lib build on MinGW

With -std=c++0x, MinGW headers doesn't declare some common functions
we're using in qglobal.cpp.

Change-Id: I0ba68ee73b1099c8591a578f06f58db316631e8e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoBlackBerry: The MeasurementSystem port was for BlackBerry OS not QNX
mfekari [Wed, 21 Nov 2012 16:12:12 +0000 (11:12 -0500)]
BlackBerry: The MeasurementSystem port was for BlackBerry OS not QNX

Change-Id: I87708aad18ebe1c6a08fe89376290be66f9c0577
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
11 years agoRemove warnings from qtbase.
Mitch Curtis [Tue, 20 Nov 2012 13:57:16 +0000 (14:57 +0100)]
Remove warnings from qtbase.

geometryengine.cpp: In member function 'void
GeometryEngine::drawCubeGeometry(QGLShaderProgram*)':
geometryengine.cpp:159:93:  warning: cast to pointer from integer of
different sie [-Wint-to-pointer-cast] geometryengine.cpp:167:95:
warning: cast to pointer f rom integer ofdifferent size
[-Wint-to-pointer-cast]
benchmarking.cpp: In member function 'void TestBenchmark::multiple()':
benchmarking.cpp:85:9: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
benchmarking.cpp: In member function 'void TestBenchmark::series()':
benchmarking.cpp:120:9: warning: variable 'result' set but not used
[-Wunused-but-set-variable]
qstandarditemmodel.cpp:2717:45: warning: unused variable 'd'
[-Wunused-variable]
qxcbconnection.cpp: In member function 'xcb_timestamp_t
QXcbConnection::getTimestamp()': qxcbconnection.cpp:930:40: warning:
suggest  parentheses around assignment used as truth value
[-Wparentheses]
tst_qguiapplication.cpp: In constructor
'BlockableWindow::BlockableWindow()':  tst_qguiapplication.cpp:340:9:
warning:'BlockableWindow::enters' will be initialized after [-Wreorder]
tst_qguia pplication.cpp:339:9: warning 'int BlockableWindow::leaves'
[-Wreorder] tst_qguiapplication.cpp:342:12:  waring: when initialized
here [-Wreorder]
tst_qsqltablemodel.cpp:570:10: warning: unused parameter 'value'
[-Wunused-parameter]
tst_qabstractitemview.cpp:1546:8: warning: unused parameter 'index'
[-Wunused-parameter]

Change-Id: I49c88547182e4669cfde2c2536403fc5573ca2da
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoUpdate Qlocale data up to CLDR 22.1
Konstantin Ritt [Wed, 21 Nov 2012 13:53:33 +0000 (15:53 +0200)]
Update Qlocale data up to CLDR 22.1

Change-Id: Ie6ddfec14cb052e0b89230dc93290ff79488fb25
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoUpdate Qlocale data up to CLDR 2.0.1
Konstantin Ritt [Wed, 21 Nov 2012 03:56:21 +0000 (05:56 +0200)]
Update Qlocale data up to CLDR 2.0.1

Change-Id: I4279fac57436d7009a6d61dab5936b72fd39fc14
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoUse likelySubtags to instantiate a locale id from it's short form
Konstantin Ritt [Wed, 21 Nov 2012 04:08:24 +0000 (06:08 +0200)]
Use likelySubtags to instantiate a locale id from it's short form

...just like described in http://www.unicode.org/reports/tr35/#Likely_Subtags.
This is much more effective than current "guessing" algorithm
+ makes it possible to instantiate a locale by the script or territory code only.

Change-Id: I674f8476e65b01c56960b6e83a1a346df0715274
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years ago[SIC/BIC] QLocale: update enums up to CLRD 1.9.1
Konstantin Ritt [Wed, 21 Nov 2012 13:45:18 +0000 (15:45 +0200)]
[SIC/BIC] QLocale: update enums up to CLRD 1.9.1

This patch adds some missing codes (two-letter ones only),
removes an outdated ones, and updates some names.
The legacy language codes are handled in QLocalePrivate::codeToLanguage()
(fortunately, there are only 4 of such codes).

Change-Id: Iff50aecd1c762b6399cd151aebb955f341d366c6
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoQHeaderView - call viewport->update() in setDefaultSectionSize
Thorbjørn Lund Martsum [Mon, 12 Nov 2012 12:46:46 +0000 (13:46 +0100)]
QHeaderView - call viewport->update() in setDefaultSectionSize

Just like in resizeSection, moveSection, swapSection (and more)
we should call update on the viewport after setDefaultSectionSize.

Change-Id: I88154138d98f644050054d7cd287a0addd9a9cf9
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoQHeaderView::setDefaultSectionSize to handle auto size of sections.
Thorbjørn Lund Martsum [Mon, 12 Nov 2012 12:37:04 +0000 (13:37 +0100)]
QHeaderView::setDefaultSectionSize to handle auto size of sections.

setDefaultSectionSize should respect auto resized sections like
QHeaderView::resizeSection(). When setDefaultSectionSize is called
we should process a possible pending resize and afterwards we
should do a (delayed) resize of the sections (if we have autosized
sections)

Change-Id: Ie09e6f073c944b58693ffbbd1d1a8b60104c1a55
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoRename DBus landing page according to rules.
Frederik Gladhorn [Wed, 21 Nov 2012 14:39:03 +0000 (15:39 +0100)]
Rename DBus landing page according to rules.

Change-Id: Idf26f89f41940c4883cbbe99b3cdd868d0d36b06
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoQHeaderView:setDefaultSectionSize add invalidateCachedSizeHint call
Thorbjørn Lund Martsum [Mon, 12 Nov 2012 05:48:34 +0000 (06:48 +0100)]
QHeaderView:setDefaultSectionSize add invalidateCachedSizeHint call

We cannot rely on the previous sizeHint and we also call it
in QHeaderView::resizeSection(). There seems to be no reason
not to call it.

Change-Id: Ia473fb7163369aafa5c019ff97a030f9f54a33d9
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agouic - fix to handle QTreeWidget with empty header(s)
Thorbjørn Lund Martsum [Mon, 19 Nov 2012 14:17:27 +0000 (15:17 +0100)]
uic - fix to handle QTreeWidget with empty header(s)

This makes it possible for uic to handle QTreeWidget that in
the designer has one or more empty headers.

Before the right(most) empty items where there wasn't a
non-empty header to the right of them would not be visible.

The other empty items - where there was a header to the
right of it would not be empty but initialized with a number.

This patch ensures the same behavior that the QTableWidget
is having.

Task-number: QTBUG-18156

Change-Id: I19bfd3307befe46a1af2d6a3275f7446a15b3442
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoMark QDBusConnectionInterface::serviceOwnerChanged as deprecated.
Mitch Curtis [Mon, 19 Nov 2012 16:31:28 +0000 (17:31 +0100)]
Mark QDBusConnectionInterface::serviceOwnerChanged as deprecated.

It warns that it is deprecated if used, but it is currently not marked
as such.

Task-number: QTBUG-28082

Change-Id: Ib0bf034c188650ae77eb5550769e032490d19783
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agopackagesExist(): always return false if QT_CONFIG contains no-pkg-config
Milian Wolff [Mon, 19 Nov 2012 14:53:57 +0000 (15:53 +0100)]
packagesExist(): always return false if QT_CONFIG contains no-pkg-config

On QNX e.g. you'll end up with a Qt configured without pkg-config support
by default. Once you try to compile e.g. QtWebKit which contains a check
like packagesExist(libudev) the system pkg-config (see default branch
of pkgConfigExecutable) will be called without any special config sysroot
or libdir. Thus libudev will be found in your system host, even though
it is not available for the cross compile target. This leads to compile
errors as described in https://bugs.webkit.org/show_bug.cgi?id=98032 .

Change-Id: If1474cb3b3f3b71fad7269e4aedd4e10f70a9b2a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoClean up diagramscene example's toolbutton icons.
Mitch Curtis [Mon, 19 Nov 2012 15:52:47 +0000 (16:52 +0100)]
Clean up diagramscene example's toolbutton icons.

Remove artefacts from pointer.png.

Replace several PNGs with images without artefacts (used FreeSerif as
the font).

Stopped scaling images up in MainWindow::createColorToolButtonIcon.

Change-Id: I7adf2deea73b89c631d39d575804e8d3f58c9fe1
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
11 years agoFix building of examples.
Friedemann Kleint [Wed, 21 Nov 2012 13:04:34 +0000 (14:04 +0100)]
Fix building of examples.

- Correct install path of widget examples to contain widgets
  directory in target tree.
- Add missing resources.

Task-number: QTBUG-27977

Change-Id: If4cb117998892b0b165d7678367553d3a7553b91
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
11 years ago[Doc cleanup] Fix typos and style of QAbstractButton, QButtonGroup, QCheckBox and...
David Gil [Mon, 15 Oct 2012 16:34:31 +0000 (18:34 +0200)]
[Doc cleanup] Fix typos and style of QAbstractButton, QButtonGroup, QCheckBox and QRadioButton

Change-Id: Ie557f865f5bdec7241abced91bf10cee8feaf9d9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoEnable gui build with QT_NO_SYSTEMTRAYICON
Tasuku Suzuki [Wed, 21 Nov 2012 04:24:20 +0000 (13:24 +0900)]
Enable gui build with QT_NO_SYSTEMTRAYICON

Task-number: QTBUG-24816
Change-Id: I5b53392bee3990ec5c7235cc615b4a477fb62089
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>