profile/ivi/qtbase.git
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>
11 years agoAccessibility: unhide text() function in TextWidget subclasses.
Frederik Gladhorn [Thu, 15 Nov 2012 16:19:03 +0000 (17:19 +0100)]
Accessibility: unhide text() function in TextWidget subclasses.

Change-Id: Ib5a64ff8de175d1ffc6e4357ec9ec45c4c2f2917
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoMade QWindowsXPStyle internal
J-P Nurmi [Fri, 16 Nov 2012 16:22:40 +0000 (17:22 +0100)]
Made QWindowsXPStyle 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 and even merging style
implementations (XP & Vista) later on, without worrying about BC.

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

Change-Id: Ib4fec35c2fcb3b5a193537a1de5b6e26fbbe0a06
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoMade QWindowsVistaStyle internal
J-P Nurmi [Fri, 16 Nov 2012 15:54:43 +0000 (16:54 +0100)]
Made QWindowsVistaStyle 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 and even merging style
implementations (XP & Vista) later on, without worrying about BC.

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

Change-Id: I8b320036e241e877fc9bb5f4084cc6e63756cbc4
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoBlackBerry: Changed QSettings file access
Bernd Weimer [Fri, 16 Nov 2012 10:35:35 +0000 (11:35 +0100)]
BlackBerry: Changed QSettings file access

On the BlackBerry platform, applications run in a sandbox. They are
not allowed to read or write outside of this sandbox. Hence in
QSettings there is no use for the system scope and differentiating
between organization and application. This change will also improve
performance.

Change-Id: I79fee0140595385f3d33bd89fe5daa36b04836bc
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
11 years agoBlackBerry: Restore proper BPS channel in event dispatcher
Bernd Weimer [Tue, 20 Nov 2012 13:44:34 +0000 (14:44 +0100)]
BlackBerry: Restore proper BPS channel in event dispatcher

This change ensures that BPS events are delivered to the proper
channel even if the application code would change the channel.

Change-Id: Id44efbdd99350c639e391161dd89b8d422c4b330
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Jeff Kehres <jkehres@rim.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
11 years agoQtBase: examples/widgets/layouts coding style
David Schulz [Wed, 21 Nov 2012 13:14:38 +0000 (14:14 +0100)]
QtBase: examples/widgets/layouts coding style

Change-Id: I4340c1fcbb467bf3c2ace3b4bd4b042fe9521c35
Reviewed-by: hjk <qthjk@ovi.com>
11 years agoHandle QEventLoop::ExcludeUserInputEvents in QWindowSystemInterface.
Friedemann Kleint [Tue, 20 Nov 2012 15:53:27 +0000 (16:53 +0100)]
Handle QEventLoop::ExcludeUserInputEvents in QWindowSystemInterface.

Add a flag indicating user input events to the event type and
leave those events in the queue if
QEventLoop::ExcludeUserInputEvents is set.

Task-number: QTBUG-27595
Change-Id: Ib41b826ef3be19253cd582d9894dd7c87953711f
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoProperly initialize glViewport() to appropriate value in QGLPixelBuffer.
Samuel Rødal [Wed, 21 Nov 2012 13:32:30 +0000 (14:32 +0100)]
Properly initialize glViewport() to appropriate value in QGLPixelBuffer.

Since we are using a hidden window in order to make the context current,
the viewport will end up with an arbitrary value. By setting it
explicitly we ensure compatibility with Qt 4.

Task-number: QTBUG-28115
Change-Id: I69fb5efda2b274b539c3d3b9fa842a2d32ad70b1
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agoMac: fix invalid context in imageForGlyph
Teemu Katajisto [Fri, 12 Oct 2012 07:58:38 +0000 (10:58 +0300)]
Mac: fix invalid context in imageForGlyph

The bounding rectangle may have negative width or height when a
graphics view with text is rotated in certain angles. Make
sure that the image width and height are positive, otherwise the
context will be null and the following messages can be seen in
test logs:
<Error>: CGContextSetFontSize: invalid context 0x0

Change-Id: I10f83f6909035fb3c4ac456123cf1922eaea7c73
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoFix MinGW compilation for tst_qwinoverlappedionotifier
Jonathan Liu [Wed, 21 Nov 2012 10:24:04 +0000 (21:24 +1100)]
Fix MinGW compilation for tst_qwinoverlappedionotifier

Change-Id: I664761e7e6fd1c00067ae1def496ba4974e539be
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoQNX: Fix crash due to re-entering QToolTip::show().
Sergio Martins [Wed, 21 Nov 2012 09:52:05 +0000 (09:52 +0000)]
QNX: Fix crash due to re-entering QToolTip::show().

The flushWindowSystemEvents() was added to send the geometry
event synchronously. A side effect was that all input events were
also sent.

We don't want that. We're probably in setGeometry() because some
other input event brought us here, and it's still in the call
stack.

One crashy example is the static method QToolTip::show() which
uses static variables([1]). If we process input events while the
first QToolTip::show() is still on the call stack, it will trigger
a second one, deleting stuff ([1]) that the first invocation will
still need once the stack unwinds.

Change-Id: Iea22419a7f386d6b6231404666092340dfd1afed
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
11 years agoqdoc: Make image paths relative to html file
Martin Smith [Tue, 20 Nov 2012 12:19:12 +0000 (13:19 +0100)]
qdoc: Make image paths relative to html file

Task-number: QTBUG-28080

Change-Id: Ie552cacdf736f9f6da3148a11ef2362248775e1a
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoDoc: Various modifications to the online and offline stylesheets.
Jerome Pasion [Tue, 20 Nov 2012 14:55:17 +0000 (15:55 +0100)]
Doc: Various modifications to the online and offline stylesheets.

-used Qt Project colors
-changed margins and paddings

Change-Id: If7a533ac3a32debbaca7b403aa68290c2b9aab2c
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoMade QFusionStyle internal
J-P Nurmi [Fri, 16 Nov 2012 16:39:24 +0000 (17:39 +0100)]
Made QFusionStyle 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 QFusionStyle directly.

Change-Id: I37d8acb13b6fd328a9cd53c74df971428bbbe443
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFix possible crash/assertion in qt_fontHasNarrowOutlines()
Konstantin Ritt [Fri, 16 Nov 2012 18:44:12 +0000 (20:44 +0200)]
Fix possible crash/assertion in qt_fontHasNarrowOutlines()

1. cloneWithSize() may return 0
1bis. QRawFont::setPixelSize() may ivalidate the font (due to 1.)
2. using the data obtained from a temporary QString is never safe!

Change-Id: I0cd5f807d8077ef5112704e475f1904bd6fc4b1b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoQPAEventDispatcherGlib: Use correct flags when sending events
Oliver Wolff [Tue, 20 Nov 2012 17:04:42 +0000 (18:04 +0100)]
QPAEventDispatcherGlib: Use correct flags when sending events

Instead of assuming that all events should be handled when
a user event occurs, userEventSourceDispatch has to use the
flags used in QPAEventDispatcherGlib::processEvents.

Task-number: QTBUG-27595
Change-Id: Ib13607f89f7d3207ec83ab26f7d59b3c59a28c4e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoSIC QPrintSupport: Remove unused PPK_SuppressSystemPrintStatus
John Layt [Sun, 29 Jul 2012 16:41:08 +0000 (17:41 +0100)]
SIC QPrintSupport: Remove unused PPK_SuppressSystemPrintStatus

Print Engine key PPK_SuppressSystemPrintStatus was added in Qt4.1
for Cocoa dialog to suppress the progress dialog.  In Qt5 all cocoa
code has been removed and this key is now unused.

Change-Id: I3a91e9651e16f81611a9a736163f76acf9f20096
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoPatch file for ANGLE for fixing blackscreen after minimize
Miikka Heikkinen [Wed, 21 Nov 2012 07:34:13 +0000 (09:34 +0200)]
Patch file for ANGLE for fixing blackscreen after minimize

Task-number: QTBUG-27994

Change-Id: Iee3d9ff992b0d99c9d1ec3f13631c137114a52a9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoQJpegHandler: err should be set before jpeg_create_decompress()
Elvis Lee [Tue, 20 Nov 2012 00:11:35 +0000 (09:11 +0900)]
QJpegHandler: err should be set before jpeg_create_decompress()

If ERREXIT2 is called in jpeg_create_decompress(), SIGSEGV occurs with
no error message. ERREXIT2 macro uses jpeg_compress_struct.err to handle
error case.

Change-Id: I8517a4d6f6e6aa4c1c59cd1aaea435554cca7ac3
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
11 years agoQnx: Handle the MeasurementSystem value in QNX
mfekari [Mon, 29 Oct 2012 13:41:09 +0000 (09:41 -0400)]
Qnx: Handle the MeasurementSystem value in QNX

Change-Id: I00837421431d82aa831b785d3effb0920b4541f3
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix regression in QXmlStreamWriter with codec set to UTF-16
Jan Arve Saether [Tue, 20 Nov 2012 10:11:44 +0000 (11:11 +0100)]
Fix regression in QXmlStreamWriter with codec set to UTF-16

Actually, this broke using QXmlStreamWriter with any codec
where characters in the ASCII range have a different encoding
than the ASCII standard.

This was a regression from 558fe9383ba0aecbec09cc411c0ebab132aac137

Task-number: QTBUG-23310

Change-Id: I75bd013e9d5de53da564a76c2f06e95ff35303a8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoQProxyStyle: fix the base style assignment in constructor
J-P Nurmi [Tue, 20 Nov 2012 13:55:20 +0000 (14:55 +0100)]
QProxyStyle: fix the base style assignment in constructor

Assign the baseStyle member before calling setParent(), because that
will trigger ParentChange event and thus calls ensureBaseStyle(). The
baseStyle member must be set at that point, because otherwise it will
start creating a fallback base style.

Change-Id: I3522e41bb6b82e3fe2e7790d53a53978c18a027a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoDetect Unity by checking XDG_CURRENT_DESKTOP and use Gnome theme.
Friedemann Kleint [Tue, 20 Nov 2012 08:13:50 +0000 (09:13 +0100)]
Detect Unity by checking XDG_CURRENT_DESKTOP and use Gnome theme.

Fallback to Gtk for unknown desktops, which should be suitable
for most cases like XFCE.

Task-number: QTCREATORBUG-8254

Change-Id: Iaf9959f75852e03a83b5af7d0dead01ef657d678
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agodon't run syncqt three times in debug_and_release configs
Oswald Buddenhagen [Wed, 7 Nov 2012 14:59:25 +0000 (15:59 +0100)]
don't run syncqt three times in debug_and_release configs

Change-Id: Ifdf7727444779ffa79d9f2ec908d24d1e0663c21
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agodon't set CONFIG+=release during build passes
Oswald Buddenhagen [Mon, 19 Nov 2012 16:19:12 +0000 (17:19 +0100)]
don't set CONFIG+=release during build passes

otherwise we get inconsistent builds.

Task-number: QTBUG-28046
Change-Id: I7952000bfc8e02ced5fd2c1bbffab7384f2730c1
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFix black screen after minimizing OpenGL window with ANGLE
Miikka Heikkinen [Tue, 20 Nov 2012 11:23:27 +0000 (13:23 +0200)]
Fix black screen after minimizing OpenGL window with ANGLE

CreateTexture will fail on zero dimensions, so just release old target
and reset dimensions when resetSwapChain is called with zero size area.

Task-number: QTBUG-27994
Change-Id: I1e500c4fd4b92f7d9ea2a49a44f3fb930b575cd1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoFixed rendering artifacts when drawing cursor.
Samuel Rødal [Tue, 20 Nov 2012 11:46:04 +0000 (12:46 +0100)]
Fixed rendering artifacts when drawing cursor.

Get rid of the + 1 in addition to the ascent and descent.

Task-number: QTBUG-27658
Change-Id: I8721226a034099ebe348cad3c49ac711c7fe44b9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoQHeaderView - do not keep indexes from an obsolete model
Thorbjørn Lund Martsum [Thu, 8 Nov 2012 14:09:00 +0000 (15:09 +0100)]
QHeaderView - do not keep indexes from an obsolete model

When we call setModel persistentHiddenSections are no longer relevant.
It contains indexes from the previous model.

This solves:

Task-number: QTBUG-18196

Change-Id: Ida02fa63a915695e3730fd63995ac5f8520ae827
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoMade QGtkStyle internal
J-P Nurmi [Fri, 16 Nov 2012 13:33:46 +0000 (14:33 +0100)]
Made QGtkStyle 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 some styles could be even separated out of QtWidgets and be
provided as plugins instead.

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

Change-Id: Iea1f7ebc80949d29f02733f81674355578e2e4fc
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoexclude 3rdparty from lupdate
Oswald Buddenhagen [Mon, 19 Nov 2012 11:40:10 +0000 (12:40 +0100)]
exclude 3rdparty from lupdate

Change-Id: I00c569787943a87dda60786b179af1f55a94ea68
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agocreate interface QSqlDriver::cancelQuery()
Sune Vuorela [Fri, 16 Nov 2012 12:19:05 +0000 (13:19 +0100)]
create interface QSqlDriver::cancelQuery()

This is useful for canceling a long running sql query.
Note that it needs support from the individual drivers.

Change-Id: Ia170a70487ff4ee13c85f12bc13e62fb198617fe
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
11 years agoHandle Qt::WA_MacSmallSize in QApplication::font(const QWidget *).
Friedemann Kleint [Mon, 19 Nov 2012 13:57:11 +0000 (14:57 +0100)]
Handle Qt::WA_MacSmallSize in QApplication::font(const QWidget *).

Task-number: QTBUG-27669
Task-number: QTBUG-27665
Change-Id: Id7eb8092076a57a755a53d1eb5c46d706756ca81
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoMerge "Merge branch 'newdocs'" into refs/staging/master
Samuel Rødal [Tue, 20 Nov 2012 11:16:16 +0000 (12:16 +0100)]
Merge "Merge branch 'newdocs'" into refs/staging/master

11 years agoQMimeDatabase: remove deprecated API
David Faure [Mon, 19 Nov 2012 13:54:37 +0000 (14:54 +0100)]
QMimeDatabase: remove deprecated API

c241d8921ea6384c30a1731a036aec8edc7609ab renamed the methods but kept
the old ones "for a week or two" at Thiago's request.

Change-Id: I0747c032b549e45f6c8201db577d84863f39f599
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoMerge branch 'newdocs'
Eskil Abrahamsen Blomfeldt [Tue, 20 Nov 2012 09:08:29 +0000 (10:08 +0100)]
Merge branch 'newdocs'

Added prepare_docs to qt_build_config.prf (it was added
directly in configure in the source branch)

Conflicts:
configure
tools/configure/configureapp.cpp

Change-Id: I1337c69fc62b1c934e3e39b4409e4857440c9db8

11 years agoAdded doc with IO functions
Nico Vertriest [Tue, 30 Oct 2012 14:22:38 +0000 (15:22 +0100)]
Added doc with IO functions

Minor spelling and editorial issues
see remarks J.Pasion 30 Oct.

Corrected syllabifying error and minor punctuation issue

Added link to Qt Core in introduction

Change-Id: I1516c94c7f9b70125801ab7f9dfeeaed94db6d91
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoDoc: Changing titles in HTML template.
Jerome Pasion [Mon, 19 Nov 2012 16:22:05 +0000 (17:22 +0100)]
Doc: Changing titles in HTML template.

-Easier to differentiate the links.

Change-Id: I9294affcdbf037d91d94fa707449d78fac01bcbb
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoUse setImage workaround on all OS X versions.
Morten Johan Sørvig [Fri, 16 Nov 2012 06:09:03 +0000 (07:09 +0100)]
Use setImage workaround on all OS X versions.

The painting bug that we are working around/fixing
here has been observed on 10.7 as well.

Change-Id: Ic29421bcc84405afa085af2f0ed2bc554c684f98
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Teemu Katajisto <teemu.katajisto@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoSQL: Fix OCI driver's compile errors.
Caroline Chao [Thu, 15 Nov 2012 08:58:32 +0000 (09:58 +0100)]
SQL: Fix OCI driver's compile errors.

Task-number: QTBUG-27979

Change-Id: I4ae4cdba855c05bc6fab0f845ff16a96c8119fdb
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
11 years agoFixed memory leak in assign operator of QGLBuffer
Vadim Zakondyrin [Sat, 17 Nov 2012 03:39:14 +0000 (10:39 +0700)]
Fixed memory leak in assign operator of QGLBuffer

Change-Id: Icb51dd5a567483b415ab0e8af9eb62221225890d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoFixed memory leak in assign operator of QOpenGLBuffer
Vadim Zakondyrin [Sat, 17 Nov 2012 03:10:51 +0000 (10:10 +0700)]
Fixed memory leak in assign operator of QOpenGLBuffer

Change-Id: I47f9128b54770bae7a63f82bf66ca16144b67c55
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoQLocale: replace hard-coded default country-for-language map
Konstantin Ritt [Mon, 19 Nov 2012 17:12:58 +0000 (19:12 +0200)]
QLocale: replace hard-coded default country-for-language map

...with a generated one in a way similar to what
http://www.unicode.org/reports/tr35/#Likely_Subtags suggests.
The supplemental/likelySubtags.xml contains all the required data.
This changes some default countries to a most-expected ones.

Change-Id: I920a5623601d8661a943e78197d3bcc838191483
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoDocument what the QMimeDatabase constructor really does.
David Faure [Mon, 19 Nov 2012 13:10:33 +0000 (14:10 +0100)]
Document what the QMimeDatabase constructor really does.

Change-Id: I8d4dcc92296163dea7b78fbb0ceefaee08e57a94
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Allan Sandfeld Jensen <kde@carewolf.com>
11 years agoQSystemTrayIcon/X11: Use display obtained as native screen resource.
Friedemann Kleint [Mon, 19 Nov 2012 12:37:45 +0000 (13:37 +0100)]
QSystemTrayIcon/X11: Use display obtained as native screen resource.

Previously, the screen name was used, which contained the
display name. This was changed to return the xrandr-name.

Task-number: QTBUG-5416
Change-Id: I560143d6d459a8051c9640079cf7d39a3caebfec
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoAdd QPlatformNativeInterface::nativeResourceForScreen().
Friedemann Kleint [Mon, 19 Nov 2012 12:36:30 +0000 (13:36 +0100)]
Add QPlatformNativeInterface::nativeResourceForScreen().

Task-number: QTBUG-5416
Change-Id: Ic163a5ff1c7a06869d324acb9aa7c257a0262e72
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoDoc: Adding subtitle to the online snapshot HTML
Jerome Pasion [Mon, 19 Nov 2012 14:37:21 +0000 (15:37 +0100)]
Doc: Adding subtitle to the online snapshot HTML

-other fixes to the HTML template.

Change-Id: I85070c615796c4342a89cc730ab2ca8ab51dd5e6
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
11 years agoAdd a new location for QML 2.x imports
Thiago Macieira [Mon, 15 Oct 2012 20:23:13 +0000 (13:23 -0700)]
Add a new location for QML 2.x imports

This commits adds a -qmldir configuration option for the configures to
allow the user to change the default location (it defaults to
$archdatadir/qml).

It adds a QLibraryInfo::Qml2ImportsPath value for
QLibraryInfo::location, a qmake property of QT_INSTALL_QML and a qt.conf
configure location entry "Qml2Imports".

At the same time, it makes the qmake .prf files dealing with QML plugins
be the QML 2 version. Those files are new in Qt 5, so we have the option
to choose which version we want to use.

Discussed-on: http://lists.qt-project.org/pipermail/development/2012-October/007136.html
Change-Id: I8c1c53e8685a5934ed0a9a42ba5663297b81a677
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoDoc: Adding online styles
Jerome Pasion [Mon, 19 Nov 2012 12:45:44 +0000 (13:45 +0100)]
Doc: Adding online styles

-Has the Qt logo
-For generating the archives and online snapshot

Change-Id: I88d1d6335c0ba600a62868a25fadaed8a751f2b4
Reviewed-by: Martin Smith <martin.smith@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoMinGW: Don't add version number '0' to the library name
Kai Koehne [Mon, 19 Nov 2012 09:19:57 +0000 (10:19 +0100)]
MinGW: Don't add version number '0' to the library name

This fixes linking on MinGW after the library renaming, and is also
in line with the logic in the nmake generator.

Change-Id: Ie25ce6c1d2b8f292c4e454db1cad9bcbbee7a05d
Suggested-by: Erik van Pienbroek
Task-number: QTBUG-27137
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoCompile with -no-widgets.
Morten Johan Sorvig [Wed, 17 Oct 2012 12:23:32 +0000 (14:23 +0200)]
Compile with -no-widgets.

Remove QApplication usage in qcocoasystemtrayicon.mm

Move qt_mac_cg_context from qpaintengine_mac.mm to
qcocoahelpers.mm to make it available in no-widgets
builds.

(Move qt_mac_colorSpaceForDeviceType as well; color
space support needs to be cleaned up later on.)

Change-Id: I724fdb09538d65eae56c26165f3ba53b6814ea78
Reviewed-by: Liang Qi <liang.qi@digia.com>
11 years agoRemove obsolete Mac mkspecs.
Morten Johan Sorvig [Fri, 12 Oct 2012 12:13:21 +0000 (14:13 +0200)]
Remove obsolete Mac mkspecs.

Project Builder was replaced with Xcode in Mac OS 10.3.
The xlc compiler is not in use on OS X any more.

Change-Id: Ie9150243cf5594a70f692a6841ee8221a2fa9ddb
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
11 years agoFix error reporting in TDS SQL driver.
Aaron McCarthy [Thu, 8 Nov 2012 05:13:10 +0000 (15:13 +1000)]
Fix error reporting in TDS SQL driver.

The error and message handlers used by the freetds library were getting
reset to back to the default every time a database was opened.  The
Qt TDS SQL driver was calling dbinit() from QTDSDriver::open().  This
had two problems:

1. dbinit() would reset the error handler previously set by a call to
   dberrhandle().  A db error would then cause the application to
   abort.
2. freetds expects dbinit() and dbexit() to be called symmetrically.
   Opening multiple database connections would result in freetds not
   cleaning up on application close.

Solved by moving the dbinit() call into the QTDSDriver constructor.

Change-Id: I59018d83238672c903b96a4d7f3f21b664c3ff4c
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
11 years agoFix msvc2010 compiler warnings of switch with default but no case labels
Thiago A. Correa [Wed, 14 Nov 2012 02:40:22 +0000 (00:40 -0200)]
Fix msvc2010 compiler warnings of switch with default but no case labels

Change-Id: I5de4d7405131314c4e2bdb1222d2bb1a2d34a993
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
11 years agoDoc: Removed "class=" in an /div.
Jerome Pasion [Fri, 16 Nov 2012 16:23:11 +0000 (17:23 +0100)]
Doc: Removed "class=" in an /div.

-not valid XML

Change-Id: I832490e87113d9143b2280127b539c68a46b0e94
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
11 years agofix namespaced build
Oswald Buddenhagen [Fri, 16 Nov 2012 16:21:22 +0000 (17:21 +0100)]
fix namespaced build

Change-Id: I7ac3f3dc2057914108876241883cf8c7e30d2c33
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agomake qt_tool support building bootstrapped tools
Oswald Buddenhagen [Thu, 15 Nov 2012 13:49:19 +0000 (14:49 +0100)]
make qt_tool support building bootstrapped tools

as a "side effect", this fixes the build of bootstrapped tools when
doing a debug build under msvc: qt.prf would add CONFIG+=release after
default_post.prf already loaded debug.prf.

Change-Id: Idd17cf28d358950fd90bb18ca7a8d67e06953bc1
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoremove pointless TARGET assignments
Oswald Buddenhagen [Thu, 15 Nov 2012 13:49:10 +0000 (14:49 +0100)]
remove pointless TARGET assignments

TARGET defaults to the project file's basename

Change-Id: I0cd204ae6559e6c51d3c987bc38ae372e2b4a3dd
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoMinGW: Add missing constants for float control.
Friedemann Kleint [Thu, 15 Nov 2012 12:53:31 +0000 (13:53 +0100)]
MinGW: Add missing constants for float control.

Change-Id: Ibce64ed1ec2809551b0cd334b53b33ed445f90f7
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoconfigure.exe: add inotify auto detection support
Rafael Roquetto [Wed, 14 Nov 2012 16:33:16 +0000 (14:33 -0200)]
configure.exe: add inotify auto detection support

This patch complements already existing functionality in the configure shell
script.

Change-Id: I09f4875cbe7ec60d36bb33774d28944a34cc8470
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoqdoc: Handle extra imahes exactly like styles
Martin Smith [Fri, 16 Nov 2012 13:47:45 +0000 (14:47 +0100)]
qdoc: Handle extra imahes exactly like styles

The values of the extraimages variable in the qdocconf file
must now be paths that are relative to the location of
the qdocconf file, just like for styles. They can be
absolute paths, of course, but if they are relative,
they must be relative to the qdocconf file containing
the extraimages variable.

The extraimages variable is for including images used
in the HTML heard and footer that are not referred to
in the documentation.

Task-number: QTBUG-27878
Change-Id: If5e0d1dee7ba231a9c1a73f02a1bbaeb7bfe52c8
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoqdoc: Handle scripts exactly like styles
Martin Smith [Fri, 16 Nov 2012 13:08:49 +0000 (14:08 +0100)]
qdoc: Handle scripts exactly like styles

The values of the scripts variable in the qdocconf file
must now be paths that are relative to the location of
the qdocconf file, just like for styles. They can be
absolute paths, of course, but if they are relative,
they must be relative to the qdocconf file containing
the scripts variable.

Task-number: QTBUG-27878
Change-Id: Iec12d1937ca9db540a2aa5e378fadc60de0a2d8c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoAccept subsequent drag moves in QWidgetWindow if enter was accepted.
Friedemann Kleint [Fri, 16 Nov 2012 09:36:49 +0000 (10:36 +0100)]
Accept subsequent drag moves in QWidgetWindow if enter was accepted.

Add handling similar to QGuiApplicationPrivate::processDrag.

Task-number: QTBUG-28008
Change-Id: I516531da242471cdfbb59418d0052b25f799f373
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoRemove qSort from QCollator docs
Giuseppe D'Angelo [Fri, 2 Nov 2012 10:20:39 +0000 (11:20 +0100)]
Remove qSort from QCollator docs

Change-Id: I4523b7e4cd2a7f9e07a39e48e8024ceb0d7eb839
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
11 years agoRemove qSort from QList/QSet docs
Giuseppe D'Angelo [Fri, 2 Nov 2012 10:17:57 +0000 (11:17 +0100)]
Remove qSort from QList/QSet docs

Change-Id: I82ac7cafbda3bb6d54a0ba26903ab11113640067
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
11 years agoqdoc: Removed debug code
Martin Smith [Fri, 16 Nov 2012 10:58:14 +0000 (11:58 +0100)]
qdoc: Removed debug code

Just removing calls to qDebug().

Task-number: QTBUG-27878
Change-Id: I592ddbb8541b5b65aee9e0f940b50217e84b3a5e
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoDoc: Removed "templatedir" from qdocconf file.
Jerome Pasion [Fri, 16 Nov 2012 10:48:58 +0000 (11:48 +0100)]
Doc: Removed "templatedir" from qdocconf file.

No longer needed as the paths are resolved relative to the file.

Change-Id: Id4012336b7de00a5dcf8686e44f7a972e2b8b284
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoqdoc: better copying of .css files
Martin Smith [Fri, 16 Nov 2012 10:38:32 +0000 (11:38 +0100)]
qdoc: better copying of .css files

This change ignores templatedir for css files.
It assumes that the paths in the stylesheets
variable are relative to the qdocconf file that
contains the stylesheets variable.

Task-number: QTBUG-27878
Change-Id: I2155e58f352e17d710c93ad4e92679beb169d823
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
11 years agoFix QStringList::sort test
Giuseppe D'Angelo [Fri, 2 Nov 2012 10:13:15 +0000 (11:13 +0100)]
Fix QStringList::sort test

Checking that the result of sort() is a specific list is wrong,
as sort() can put equivalent elements in an arbitrary order.

Change-Id: Ib06399cdecedb6cf01e721d4d92048449d66b40d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix QMutex::tryLock timeout computation on Linux
Olivier Goffart [Thu, 15 Nov 2012 17:16:30 +0000 (18:16 +0100)]
Fix QMutex::tryLock timeout computation on Linux

The timeout is in millisecond. So we just need to divide by 1000 to get
the number of seconds

Regression introduced in f587e8f4fd670f11fa1e878c1015d7241033559a
Reported in the comments of QTBUG-24795

Change-Id: Id16e05e7d04d33605860926f7516d14cdefd6a36
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix incorrect size hint for abstract spinbox
Jens Bache-Wiig [Thu, 15 Nov 2012 16:38:29 +0000 (17:38 +0100)]
Fix incorrect size hint for abstract spinbox

This size hint was based on strange logic from an alternate
universe. The size hint should only contain the text size
and let the style add what is neccessary for the frame rect etc.
Most styles have worked around this by simply ignoring it,
however some styles could still break a bit.

Note that we add 4 since that is the constant that the old
code 'usually' ended up at and should be compatible with
our existing styles.

Change-Id: Iebdbcb8949dd8b7daa7d8cb96ae5ab7351e4f79d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
11 years agoMissing break in case QEvent::WindowStateChange.
Miikka Heikkinen [Thu, 15 Nov 2012 13:36:18 +0000 (15:36 +0200)]
Missing break in case QEvent::WindowStateChange.

The missing break causes state change event handling to fall through
to tablet event handling, which is clearly wrong.

Change-Id: If19d7b3f794b3614961b9e79952331b0ede1fba1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoDisable static contents optimization for now.
Samuel Rødal [Wed, 14 Nov 2012 15:23:46 +0000 (16:23 +0100)]
Disable static contents optimization for now.

Since none of the platform backingstore implementations currently
implement this, skip trying to use the optimization for now to avoid
graphical glitches.

Task-number: QTBUG-27971
Change-Id: Ic6d263bb552ef0b4786910d71f965d26d810b7eb
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoAdd feature to enable rounded line edit on mac
Jens Bache-Wiig [Thu, 15 Nov 2012 16:04:18 +0000 (17:04 +0100)]
Add feature to enable rounded line edit on mac

This will not currently be exposed in the widget API but we
can make use of it for qt quick components.

Change-Id: I08300a3bcd58e68df633fe9b36a988eb6176ef9c
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoImprove highligted colorization on mac with Fusion style
Jens Bache-Wiig [Thu, 15 Nov 2012 15:45:04 +0000 (16:45 +0100)]
Improve highligted colorization on mac with Fusion style

This mimics the platform behavior of using blue color when
the system palette is in use.

Change-Id: I9ad6a552614a3466a930ad5b28fc70d9343d2022
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoAccessibility: Add documentation
Frederik Gladhorn [Sat, 3 Nov 2012 21:29:38 +0000 (22:29 +0100)]
Accessibility: Add documentation

This keeps the docs as internal, but add
information about the events.

Change-Id: I9b961a946a6d799232a756a9ac874c0caf91ecbc
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoAccessibility Mac: Implement value interface
Frederik Gladhorn [Tue, 6 Nov 2012 12:28:17 +0000 (13:28 +0100)]
Accessibility Mac: Implement value interface

Change-Id: Iea6e3c69b220d35bddb1798ff991f8e67e1749e3
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoImplement EditableText accessibility for Mac.
Morten Johan Sorvig [Thu, 1 Nov 2012 11:59:11 +0000 (12:59 +0100)]
Implement EditableText accessibility for Mac.

Change-Id: Ibe03975bafc5a6a420b3bd69dfaa93dbf65c9958
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
11 years agoBring back -nograb/-dograb for debugging.
Friedemann Kleint [Wed, 24 Oct 2012 10:57:01 +0000 (12:57 +0200)]
Bring back -nograb/-dograb for debugging.

Task-number: QTBUG-27632

Change-Id: I4b59df01519af4684d9dbe6e4b6c18a5ebd9aeae
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
11 years agoFix QApplication::primaryScreen() in Windows
Miikka Heikkinen [Wed, 14 Nov 2012 10:22:19 +0000 (12:22 +0200)]
Fix QApplication::primaryScreen() in Windows

QPlatformInterface::screenAdded() documentation specifies that first
added screen will be the primary screen, so we need to ensure that
the screen Windows reports as the main display gets added first.

Task-number: QTBUG-27988
Change-Id: Ibc17b05a6c37007ff749fb54ab62d47ffa40f8ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoAssign correct codes to QLocale::AnyCountry and AnyScript
Konstantin Ritt [Wed, 14 Nov 2012 16:09:02 +0000 (18:09 +0200)]
Assign correct codes to QLocale::AnyCountry and AnyScript

as their meaning, in fact, is unknown (or default) country/script.

Change-Id: Id75a70d4b33c2092de414f3ac357f6bcb627ba47
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoAdd a bunch of missed scripts
Konstantin Ritt [Wed, 14 Nov 2012 16:02:16 +0000 (18:02 +0200)]
Add a bunch of missed scripts

Change-Id: I078bf95cb50c7ef634f9f3133ab9f9d25439e4ef
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoAdd missing Bodo language introduced in CLDR 1.9.1
Konstantin Ritt [Wed, 14 Nov 2012 15:55:34 +0000 (17:55 +0200)]
Add missing Bodo language introduced in CLDR 1.9.1

Change-Id: I4feb6ba781299d65ff3bf2717f08a0ac7eae7928
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoMisc fixes to the QLocale data parser/generator
Konstantin Ritt [Wed, 14 Nov 2012 15:00:30 +0000 (17:00 +0200)]
Misc fixes to the QLocale data parser/generator

Change-Id: I01589eae4e48bc1f484d54277de8f18262ca8f31
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoRegression fix to QHeaderView::setDefaultSectionSize
Thorbjørn Lund Martsum [Fri, 9 Nov 2012 14:58:57 +0000 (15:58 +0100)]
Regression fix to QHeaderView::setDefaultSectionSize

When the sections has been resized we need to calculate new values
for the section start-positions. Otherwise we break visualIndexAt
and sectionPosition.

This fixes a regression introduced in
b800d8b94a7861ecf8853621f6556fca186fb5b7

Change-Id: I148dbf44f742208787ed59b70d82b8048d721e90
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoWindows: Fixed mouse events related to size grips
Oliver Wolff [Thu, 15 Nov 2012 10:34:09 +0000 (11:34 +0100)]
Windows: Fixed mouse events related to size grips

The code which was adapted from Qt4 seems not to work as expected on
current Windows versions. There are no additional mouse move events
after releasing the mouse button from the size grip.

One special behaviour in regards to SizeGrips here seems to be that
there is no WM_LBUTTONUP message but a WM_MOUSEMOVE received when
the mouse button is released from the size grip. Due to mouse event
handling in the Windows plugin that event triggers the desired mouse
release event so everything should be fine.

With the previous implementation the behaviour from the bug report
can be explained by the fact, that the mouseMove event is eaten in
qwindowsmousehandler and so the second mouse click isn't even
delivered. Basically the first click triggers the press event without
a release and the second click does not trigger a press but a release
event.

Task-number: QTBUG-27864

Change-Id: I987c6e01dec4a6b6189ed30959daf7a2fcc17df6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
11 years agoQHash: constify some QHashNode members
Giuseppe D'Angelo [Sat, 10 Nov 2012 16:32:49 +0000 (16:32 +0000)]
QHash: constify some QHashNode members

They're read-only member variables (key, hash value of the key)
set only in the ctors, or a "comparison" member function.
All of them can be constified.

Change-Id: Ifd9242577213f38439a4f998b678f5b05413ad21
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: João Abecasis <joao@abecasis.name>
11 years agoChange to enter/leave policy while grabbing.
Miikka Heikkinen [Fri, 9 Nov 2012 13:57:07 +0000 (15:57 +0200)]
Change to enter/leave policy while grabbing.

Sending enter and leave events to other windows than the grabbing
window is not logical. The policy should be that only the grabbing
window receives enter and leave events.

Changed the documentation accordingly and provided the necessary
changes to Windows implementation.

Also removed explicit leave event generation for widgets when
popup is opened as that is now redundant.

tst_QWidget::underMouse() test was changed to behave according to
new logic.

Task-number: QTBUG-27871
Change-Id: I127fb8685b4a4206d1a319f42cba491ec02bc8ca
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoAdd comment to resetCursorBlinkTimer to avoid accidental removal of it
Jan Arve Saether [Thu, 15 Nov 2012 10:29:04 +0000 (11:29 +0100)]
Add comment to resetCursorBlinkTimer to avoid accidental removal of it

Change-Id: Ied4c686ab5f4d4530d4d5ae3ce22c6b9ffc4c1de
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoAdd resetCursorBlinkTimer() back again.
Jan Arve Saether [Thu, 15 Nov 2012 10:10:55 +0000 (11:10 +0100)]
Add resetCursorBlinkTimer() back again.

Apparently it was used by QtQuick1

Change-Id: Ia0cf8535cbfed9b09e151b887c243fb173ca300a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoFix mouse cursor behavior for QMainWindow splitters
Miikka Heikkinen [Tue, 13 Nov 2012 12:10:32 +0000 (14:10 +0200)]
Fix mouse cursor behavior for QMainWindow splitters

The cursor handling has changed in Qt5 somewhat, which made old cursor
logic for splitters invalid, causing the splitter resize cursor to
persist after hovering over splitter, as well as cursor flicker
during splitter drag.

Since the cursor is changed always in dispatchEnterLeave, CursorChange
event can now come for QMainWindow when cursor hasn't actually changed,
so we now check if the cursor is still our adjusted cursor before
updating the old stored cursor. We also ensure that our adjusted cursor
stays visible if cursor is in fact changed - the changed cursor will
be shown when we no longer need adjusted cursor.

Additionally, we skip cursor adjustments while we are dragging the
splitter to avoid cursor flicker, which is caused by splitter actually
moving asynchronously after the mouse event is handled.

Task-number: QTBUG-27970
Change-Id: Id9f6a0e9653563e09b883f21396de056a88f78a7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoANGLE: Invalidate client window area when resetting swap chain
Jonathan Liu [Thu, 15 Nov 2012 08:50:54 +0000 (19:50 +1100)]
ANGLE: Invalidate client window area when resetting swap chain

Resizing a window larger results in the newly exposed region being
invalidated but the old region is treated as valid. This can result in
the old region no longer updating. This has been observed on Windows 7
64-bit with Aero theme using NVIDIA GeForce GTS 250 and driver version
301.42. Invalidate the entire client window area when resetting the
swap chain so that it updates properly.

Upstream patch: https://codereview.appspot.com/6812076/

Task-number: QTBUG-27822
Change-Id: I0f5d2004576019458baee74c35e52f69b893a219
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoWindows: Fix autocapture for multiple buttons
Miikka Heikkinen [Thu, 15 Nov 2012 08:32:31 +0000 (10:32 +0200)]
Windows: Fix autocapture for multiple buttons

Automatic capture of mouse events on button press was released when
the first button was released, even if multiple buttons were pressed.
Changed it so that the capture is released when the last button is
released.

Task-number: QTBUG-28007
Change-Id: Icee59aacaf0ba947820c40cb7ede00193ff46a14
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoMac: add runtime check for not calling preferredScrollerStyle on 10.6
Teemu Katajisto [Tue, 13 Nov 2012 08:15:29 +0000 (10:15 +0200)]
Mac: add runtime check for not calling preferredScrollerStyle on 10.6

Task-number: QTBUG-27915
Task-number: QTBUG-27913
Task-number: QTBUG-27911

Change-Id: I1da49c5a1455b30335dec53921a35dc09cd27aa4
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoQMimeDatabase: Fix handling of duplicate mimetype definitions.
David Faure [Mon, 22 Oct 2012 10:42:05 +0000 (12:42 +0200)]
QMimeDatabase: Fix handling of duplicate mimetype definitions.

When both freedesktop.org.xml and kde.xml define text/x-qml (*.qml),
the XML provider would look up *.qml, see two mimetypes, and treat that
as a glob conflict, and proceed with contents-based-determination,
which for this sample file, would find "C source" due to the C comment.

Fixed by ignoring duplicate pattern-mimetype associations.

The binary-cache provider doesn't have this problem, update-mime-database
already filters out duplicates when generating the on-disk extension tree.

Change-Id: Ie335b0b419e7413fa0550779709513f68c2bfc68
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoWidgets: Stop cursor blink timer when QLineEdit is read-only
Gabriel de Dietrich [Wed, 14 Nov 2012 09:52:16 +0000 (10:52 +0100)]
Widgets: Stop cursor blink timer when QLineEdit is read-only

This prevents unnecessary updates, since the cursor is not visible.

Change-Id: Iec54ed338a0cb526a03cd611de4d823e26f3d804
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
11 years agoqdoc: better copying of .css files
Martin Smith [Fri, 9 Nov 2012 14:33:02 +0000 (15:33 +0100)]
qdoc: better copying of .css files

This fix searches for the css files specified in the
stylesheets variable. It searches for them in the
directory specified as the templatedir. It copies
them into the style subdirectory of the outputdir.

It also tests QT_INSTALL_DOCS before setting it to
the library info. If it was set on the command line,
it is not set from the library info.

This change also includes some debug code, which
will be removed after testing.

Task-number: QTBUG-27878
Change-Id: I7a9469b840e13b966aca44b99aebba102e5d4f0c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>