profile/ivi/qtbase.git
11 years agoRemove the <module>version.h files from .gitignore.
Stephen Kelly [Tue, 25 Sep 2012 13:42:07 +0000 (15:42 +0200)]
Remove the <module>version.h files from .gitignore.

Since e0839abbb4d22369f7171b3257217670aa06d6da they are created
in the build dir, not the source dir. Further, they are generated
in the include/ dir in the build dir, which is also already ignored
for in-source builds.

Change-Id: I0e709abf4b2b40351eb2728a36e9e238e3fc98bc
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoRun application main run loop in color/font dialog test
Teemu Katajisto [Thu, 13 Sep 2012 06:24:09 +0000 (09:24 +0300)]
Run application main run loop in color/font dialog test

In cocoa the timers are associated with main run loop but
the way font and color dialog tests are executed the modal
dialog run loop is only run in cocoa. This causes timers to
not to fire and test cases to hang.

Unfortunately this does not completely fix the test failure
because the QTest::keyClick is not working with cocoa
native dialog helpers and therefore the tests are marked
with QEXPECT_FAIL.

Task-number: QTBUG-24320
Task-number: QTBUG-24321

Change-Id: I88740a20ad2b794b6ca15e1b6455f436ffd39335
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
11 years agoAccessibility: rather than assert, just warn.
Frederik Gladhorn [Sat, 22 Sep 2012 16:37:21 +0000 (18:37 +0200)]
Accessibility: rather than assert, just warn.

Screen readers do random things with the dbus interface,
we should be careful when handling what they send.

Change-Id: Ie8fc515c8d399dae9b5e892a135b54a1820d09e2
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoFix drag and drop with native widgets
jian liang [Tue, 25 Sep 2012 13:33:55 +0000 (21:33 +0800)]
Fix drag and drop with native widgets

Task-number: QTBUG-27336

Don't check 'widget != m_widget' in
QWidgetWindow::handleDragEnterMoveEvent() since the current window's
parent widget may be the actual drop target. I replace it with a check
'!widget->isWindow()' to prevent we pass through a top level window.
I also change 'widget->mapFrom(m_widget, event->pos())' to
'widget->mapFromGlobal(m_widget->mapToGlobal(event->pos()))' since m_widget
may not be widget's parent.

Change-Id: Ia4f10f85ccdf1e27223ddc51afabd98b5d16f2fb
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoQPostEventList: change pointer comparison to integer comparison
Marc Mutz [Thu, 27 Sep 2012 12:31:12 +0000 (14:31 +0200)]
QPostEventList: change pointer comparison to integer comparison

This is exactly the type of pointer arithmetics that GCC likes to
miscompile.

Just use offset >= size() (=subtract begin() from both sides).

Change-Id: Ifb13652d7b96bf4c06727d9c965516e95d16ab5c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoMac: Fix small glitch in editable combo boxes
Gabriel de Dietrich [Thu, 27 Sep 2012 16:24:11 +0000 (18:24 +0200)]
Mac: Fix small glitch in editable combo boxes

Change-Id: I4b064116183834226372b14c3c442dcaa518c3b4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoTest: Enable tst_QWMatrix::operator_star_qwmatrix
Caroline Chao [Wed, 26 Sep 2012 08:16:59 +0000 (10:16 +0200)]
Test: Enable tst_QWMatrix::operator_star_qwmatrix

Expecting results were not correct. The test is passing.

Task-number: QTBUG-22362

Change-Id: Ie41c262019f76aace9062d7897d7934dc7437c3a
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoTest: Split tst_QVarLengthArray::oldTests
Caroline Chao [Thu, 27 Sep 2012 08:11:24 +0000 (10:11 +0200)]
Test: Split tst_QVarLengthArray::oldTests

The entire test is currently skipped while only the last part is
causing problems.

Move the out of memory test code to its own test function and skip
only this function with the appropriate bug number. By allocating too
much memory this test is causing a crash.

Task-number: QTBUG-27361
Task-number: QTBUG-22342

Change-Id: Ia308099b7f12cf2c567b62063a7bbcc6fb38515b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
11 years agotst_QLabel: remove QSKIP, wrap Q_OS_MAC
J-P Nurmi [Thu, 27 Sep 2012 14:04:16 +0000 (16:04 +0200)]
tst_QLabel: remove QSKIP, wrap Q_OS_MAC

Change-Id: If67dbb07900bfa8f1bcf55aa457bd90ef0550900
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_QMenu: remove QSKIP's -> wrap Q_OS_WINCE
J-P Nurmi [Thu, 27 Sep 2012 14:00:46 +0000 (16:00 +0200)]
tst_QMenu: remove QSKIP's -> wrap Q_OS_WINCE

Change-Id: If8cb4a7dc0630aca83e4796bffb46f547abc4b6f
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_QMainWindow: remove QSKIP, wrap Q_OS_MAC
J-P Nurmi [Thu, 27 Sep 2012 13:55:36 +0000 (15:55 +0200)]
tst_QMainWindow: remove QSKIP, wrap Q_OS_MAC

Change-Id: Ided3c4cbdc7508a36e96351b5f60d79532bb7f26
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoTake a QPersistentIndex out of the container instead of casting it.
Stephen Kelly [Thu, 27 Sep 2012 09:22:25 +0000 (11:22 +0200)]
Take a QPersistentIndex out of the container instead of casting it.

These indexes are later used as the boundary points of a QItemSelectionRange
anyway, which means that they're going to become QPersistentModelIndexes again
soon.

Because QPersistentModelIndex::row and ::column API are not inline, we cache
the resulting values in the loop.

Change-Id: Ib5099148269a8ccbb7ff2d8819a347e429c55dd1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoUse a QVector to store QPersistentModelIndexes.
Stephen Kelly [Thu, 27 Sep 2012 09:19:57 +0000 (11:19 +0200)]
Use a QVector to store QPersistentModelIndexes.

QPersistentModelIndex is not so big that it causes very bad QList performance,
but considering how we use the container, QVector is fine. We never prepend to
the container, we only ever append, clear and iterate over it.

Change-Id: If1e53db9252c22340f1e0179b14a460495b5b35d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoAvoid looping over the indexes multiple times to create a persistent list.
Stephen Kelly [Wed, 26 Sep 2012 16:30:38 +0000 (18:30 +0200)]
Avoid looping over the indexes multiple times to create a persistent list.

Change-Id: I089d272254eb531cd27c7b23fbab4d7183ba01d4
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoUse the sibling method to make iteration over a range potentially faster.
Stephen Kelly [Wed, 26 Sep 2012 15:26:21 +0000 (17:26 +0200)]
Use the sibling method to make iteration over a range potentially faster.

The implementation of QAIM can implement an efficient version of sibling.

Task-number: QTBUG-17732
Change-Id: I474dbc11e52b3ccc42e2165bc9336882fab13d03
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoCreate an invalid QPersistentModelIndex if it will be converted anyway.
Stephen Kelly [Thu, 27 Sep 2012 15:58:01 +0000 (17:58 +0200)]
Create an invalid QPersistentModelIndex if it will be converted anyway.

Change-Id: I278d4515d74e2213492c443e5a04731b2e79fe1e
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoFix resetting of the QCompletionModel.
Stephen Kelly [Thu, 27 Sep 2012 15:25:45 +0000 (17:25 +0200)]
Fix resetting of the QCompletionModel.

This model apparently pre-dates the API required to do resetting properly.

Change-Id: I0ea903cef87077ca4a3d8ca2b53eba213e77cc26
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoStore an unsigned temporary for the internalId.
Stephen Kelly [Thu, 27 Sep 2012 09:14:52 +0000 (11:14 +0200)]
Store an unsigned temporary for the internalId.

This is compared later with the internalId() of other indexes, which
produces a warning.

Change-Id: I57ea248c792db3b49947cc6a8fe989c68b67ff0f
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoSand box support, fix for the file dialogs.
Pasi Matilainen [Wed, 22 Aug 2012 08:27:36 +0000 (11:27 +0300)]
Sand box support, fix for the file dialogs.

- Also get rid of all deprecated calls

Task-number: QTBUG-21609
Change-Id: I284587517537c7be4229d99637c6907d7e7652a5
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoAdded QGLPixelBuffer implementation using framebuffer objects.
Samuel Rødal [Thu, 13 Sep 2012 18:50:59 +0000 (20:50 +0200)]
Added QGLPixelBuffer implementation using framebuffer objects.

Instead of having QGLPixelBuffer be a unusable stub implementation we
deprecate it and implement it in terms of QOpenGLFramebufferObject.
Framebuffer objects are anyway the recommended replacement for
pixelbuffers in modern OpenGL, as the context switching overhead is
avoided.

Change-Id: Ia220c358ee92813e87981d297c51d84525010322
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years agotst_QAbstractButton::keyNavigation(): QSKIP -> XFAIL
J-P Nurmi [Wed, 26 Sep 2012 16:14:04 +0000 (18:14 +0200)]
tst_QAbstractButton::keyNavigation(): QSKIP -> XFAIL

Task-number: QTBUG-22286
Change-Id: If2c0e9181f2d954f3487dbb4c3f440d26a38adb6
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoBetter drawn 1-pixel thick splitter on Mac
Gabriel de Dietrich [Wed, 26 Sep 2012 10:37:39 +0000 (12:37 +0200)]
Better drawn 1-pixel thick splitter on Mac

Change-Id: I72effdfb997a7733fbbd270db719c163d1d53a66
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
11 years agoFixed selected menu item (& Co.) text color
Gabriel de Dietrich [Mon, 24 Sep 2012 16:18:41 +0000 (18:18 +0200)]
Fixed selected menu item (& Co.) text color

On Mac, highlighted text remains the same color as normal text. That's
not the case for menu and combobox items.

Change-Id: I3efe2547413f77921524b833b4b10cf2d533e110
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agoFixed text rendering in selected tab button
Gabriel de Dietrich [Mon, 24 Sep 2012 15:20:12 +0000 (17:20 +0200)]
Fixed text rendering in selected tab button

We resort to custom Qt rendering when selected since it looks better
than using Carbon's HITheme engine.

Change-Id: Iefcc2bebb1ba58d0d99f078c4960c5126542f637
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agouse QLatin1String::size() in qt_setWindowTitle_helperHelper
Joerg Bornemann [Thu, 27 Sep 2012 10:33:29 +0000 (12:33 +0200)]
use QLatin1String::size() in qt_setWindowTitle_helperHelper

Change-Id: I0c8193a7c6bf8b5f894da3e20af3c4d23e0b593a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoremove no-op test from tst_qfile
Joerg Bornemann [Wed, 26 Sep 2012 17:46:17 +0000 (19:46 +0200)]
remove no-op test from tst_qfile

According to the repo history the tailFile was introduced with the
S60 port but the functionality it's testing was never implemented.

Task-number: QTBUG-22341

Change-Id: I16e8e43bbd799f05f8b136925cb0add0b918289e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agofix conflicting Visual Studio project names for Qt examples
Joerg Bornemann [Wed, 26 Sep 2012 17:05:33 +0000 (19:05 +0200)]
fix conflicting Visual Studio project names for Qt examples

Loading examples.sln resulted in a cascade of error messages because
Visual Studio doesn't allow projects of the same name in a solution.
Now using QMAKE_PROJECT_NAME to give the projects distinct names.

Change-Id: Ifd3a00311253e4b234ece936092649ce0f0869d8
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
11 years agoRemove unused qMetaType helpers.
Jędrzej Nowacki [Fri, 21 Sep 2012 12:08:50 +0000 (14:08 +0200)]
Remove unused qMetaType helpers.

These function were replaced by QMetaTypeFunctionHelper class that is
a bit more flexible.

Change-Id: I5aee2089f543b6e05c4d65a688fa8ca721f8abe0
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoWorkaround MSVC2008 build failure after switching to std::lower_bound
Giuseppe D'Angelo [Thu, 20 Sep 2012 16:32:37 +0000 (18:32 +0200)]
Workaround MSVC2008 build failure after switching to std::lower_bound

MSVC2008 tries to see if a container is fully ordered.

This causes a build failure when operator< is not defined
between the elements in the container (but is instead defined
between the element type and the item passed to std::lower_bound).

Change-Id: I093d6f67f64a247f0aae763acb35ee73614f4208
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoFix OpenGL context creation in Windows platform plugin
Miikka Heikkinen [Wed, 19 Sep 2012 13:06:57 +0000 (16:06 +0300)]
Fix OpenGL context creation in Windows platform plugin

Attribute index was incremented incorrectly.

Task-number: QTBUG-27272
Change-Id: Ia7e9c76acc6c9d8208b8ba43131861a3beff6b2c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoWorkaround MSVC2008 build failure after switching to std::upper_bound
Giuseppe D'Angelo [Thu, 20 Sep 2012 16:32:37 +0000 (18:32 +0200)]
Workaround MSVC2008 build failure after switching to std::upper_bound

QPostEventList is kept sorted by priority; std::upper_bound
is used to insert a QPostEvent in the right place in the list.

Turns out that MSVC2008 is a bit too picky and tries to see if the
list is actually ordered. This causes a build failure as there is
no operator< defined between two QPostEvents (in fact,
an integer -- the priority -- is passed to std::upper_bound).

Work around this issue by defining operator< between two QPostEvents.

Change-Id: Ie3562dd0cc7253e25fc988b25d566d9d9e9fe62b
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoDo not reference to the QAbstractNativeEventFilter documentation
Laszlo Papp [Tue, 4 Sep 2012 04:48:13 +0000 (05:48 +0100)]
Do not reference to the QAbstractNativeEventFilter documentation

1) It is not strictly necessary since the method argument type is already
designed for clickable here. Thereby, it is just a duplication.

2) It is not done inside the removeNativeEventFilter, so it is not consistent
now.

3) Similarly, the following documentation in 4.8 did not have another explicit
reference to the documentation of the EventFilter typedef:
EventFilter QCoreApplication::setEventFilter ( EventFilter filter )

Change-Id: I45fd42a03b16fd173fca9d734a7771e804d577d8
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: David Faure <faure@kde.org>
11 years agoCMake: Change suffix from "cxx" to "cpp" for generate sources
Yuchen Deng [Thu, 27 Sep 2012 01:13:19 +0000 (09:13 +0800)]
CMake: Change suffix from "cxx" to "cpp" for generate sources

Cause Qt5's source file use "cpp" as suffix
and automoc use "cpp" as suffix too.
Keep it with same feel better.

Change-Id: Iba3f8ffb5c3dbf003a9e1aacf3706089c1b6765c
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoMake CMake tests significant on Windows.
Stephen Kelly [Wed, 26 Sep 2012 08:41:07 +0000 (10:41 +0200)]
Make CMake tests significant on Windows.

All bugs in the testing scripts are now fixed.

Task-number: QTBUG-27087
Change-Id: I764257a9bbee7efeb9265449f6fa6a15bdeba883
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agoMore consistent dock widget painting on Windows
Jens Bache-Wiig [Wed, 26 Sep 2012 15:27:05 +0000 (17:27 +0200)]
More consistent dock widget painting on Windows

Before we would draw dock widget handles on windows classic
and no handles on XP, Vista and Windows 8. This would make it
very hard to make a consistent look and feel across those styles.

I also added a workaround to avoid the redundant toolbar borders
when they are used outside of the toolbar areas.

Change-Id: Ib703453677fcac8d51b2180abe45527297af0a80
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
11 years agoFix typo: contais -> contains.
Stephen Kelly [Thu, 27 Sep 2012 13:23:40 +0000 (15:23 +0200)]
Fix typo: contais -> contains.

Change-Id: I718b0178ba03fcf15f2962cb6f917efb2da27a04
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
11 years agotst_QCommandLinkButton: cleanup whitespace
J-P Nurmi [Thu, 27 Sep 2012 13:06:20 +0000 (15:06 +0200)]
tst_QCommandLinkButton: cleanup whitespace

Change-Id: Ia1aab643f7b93b0532a38b27d7777fbcf5f489bc
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoRemove CDE and Motif styles from qtbase
Jens Bache-Wiig [Tue, 18 Sep 2012 11:55:45 +0000 (13:55 +0200)]
Remove CDE and Motif styles from qtbase

It is time to clean up some of our legacy code. These styles have
not been actively maintained for a long time and I think it is safe
to say that they should no longer belong as part of the default
distribution of Qt. We dont support any platforms based on CDE with
our source packages.

Note that even if we are removing these styles from the default
distribution of Qt, applications that depend on them
will still be able to bundle the existing (and unmodified) styles
along with their own source code as we are not breaking compatibility.

Change-Id: I1709630c20ba8e8088cd01628628d86856db57a4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
11 years agotst_qcheckbox: remove duplicate code
J-P Nurmi [Thu, 27 Sep 2012 12:58:11 +0000 (14:58 +0200)]
tst_qcheckbox: remove duplicate code

Change-Id: Ic5d7694251e42a6d5ad7fea19137b71bc499ac94
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoBlackberry: Fix hardware button detection on the BB Dev Alpha
Thomas McGuire [Thu, 27 Sep 2012 12:34:09 +0000 (14:34 +0200)]
Blackberry: Fix hardware button detection on the BB Dev Alpha

The format of the PPS object has changed, it is now prefixed with
[n], so be more leninent in parsing to support both formats.

Change-Id: I54eb1502a6231acf2dd121531539435c59d7d668
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
11 years ago[Doc cleanup] Fix typos and style of QPushButton and QGroupBox
David Gil [Tue, 25 Sep 2012 21:46:34 +0000 (23:46 +0200)]
[Doc cleanup] Fix typos and style of QPushButton and QGroupBox

Fix some typos. Fix some sentences to make them clearer to understand.
Since both of them are widgets, there's no Qt4-centric info.

Change-Id: I5c3c4a23621505d47b00cf466e4daad9763c3076
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoWindowsPlugin: Fix MinGW warnings
Kai Koehne [Thu, 27 Sep 2012 08:43:44 +0000 (10:43 +0200)]
WindowsPlugin: Fix MinGW warnings

Fix warnings:

Change-Id: Ia68607f72087c0085e528fee0e6270b80692e389
warning: enumeration value 'SynthesizeMouseFromTouchEvents' not handled in switch
warning: suggest parentheses around assignment used as truth value
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoItemViews: Fix MinGW compiler warning
Kai Koehne [Thu, 27 Sep 2012 08:23:02 +0000 (10:23 +0200)]
ItemViews: Fix MinGW compiler warning

Fix compiler 'warning: "_WIN32_IE" redefined'

Change-Id: I70ada35027a2bab0a6c4f84dd1384028d2afbcc9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoQtWidgets auto tests: revise clipboard related tests
J-P Nurmi [Wed, 19 Sep 2012 08:12:40 +0000 (10:12 +0200)]
QtWidgets auto tests: revise clipboard related tests

Use PlatformClipboard::isAvailable() and omit relevant test
cases when QT_NO_CLIPBOARD is defined.

Change-Id: I7e7b20a0a18f1a82987564f0e5e6c76d9207bc4b
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoRevise QClipboard auto tests
J-P Nurmi [Wed, 19 Sep 2012 08:12:15 +0000 (10:12 +0200)]
Revise QClipboard auto tests

Use PlatformClipboard::isAvailable() and fix build
when QT_NO_CLIPBOARD is defined.

Change-Id: I18c3af42fe39cf7618c2530723149848a10db985
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoCheck in arch detection for qmake failures
Andreas Holzammer [Thu, 20 Sep 2012 19:40:39 +0000 (21:40 +0200)]
Check in arch detection for qmake failures

QMake can fail at arch detection, so remove
the silence here and fail when qmake does
not produce any Makefile.

Change-Id: I8826867952665a68f7205acf99ee6f1c9ead8513
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFail when Windows CE SDK not found
Andreas Holzammer [Fri, 21 Sep 2012 13:12:14 +0000 (15:12 +0200)]
Fail when Windows CE SDK not found

Add failing when crosscompile for Windows CE
and no matching SDK is found.

Change-Id: I359e792fe46bab46729788666679a16cb94f340e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoReturn correct accessible name when a label has rich text
José Millán Soto [Sun, 23 Sep 2012 09:46:21 +0000 (11:46 +0200)]
Return correct accessible name when a label has rich text

When a QLabel was displaying rich text, the raw html was being returned as
accessible name. Now the plain text is returned.

Task-number: QTBUG-27302
Change-Id: I169d5eff527a0aef810af11d7712a362148974a5
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoFix XCode generator for qmake in Qt 5 after recent changes
Andy Shaw [Mon, 24 Sep 2012 10:04:21 +0000 (12:04 +0200)]
Fix XCode generator for qmake in Qt 5 after recent changes

Due to all the changes recently it broke in some places, this now
gets it working again.

Change-Id: I879ca5684435289a61d8db248f2c3f64f6866a60
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years ago(WINCE)Add failure for font outline function
Andreas Holzammer [Thu, 20 Sep 2012 11:40:13 +0000 (13:40 +0200)]
(WINCE)Add failure for font outline function

There is no outline function in Windows CE,
so add a failure to inform the user that, he
needs to switch the font rendering.

Change-Id: Ieceb68bec49a88c7f7eee99f1c62cf1701da6aec
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoConfigure.exe: Fix auto-detection of ICU for MinGW
Kai Koehne [Wed, 26 Sep 2012 09:05:45 +0000 (11:05 +0200)]
Configure.exe: Fix auto-detection of ICU for MinGW

If one compiles ICU with MinGW the .lib files also have a lib prefix.
Take this into account when checking for ICU availability.

Upstream bug report: http://bugs.icu-project.org/trac/ticket/9603

Change-Id: Ia1ca49053b0ab41de45eec13799d94d5e934c42e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoconfigure.exe: Don't print warning about -c++11 option by default
Kai Koehne [Wed, 26 Sep 2012 13:37:03 +0000 (15:37 +0200)]
configure.exe: Don't print warning about -c++11 option by default

Make sure that defaultTo() and therefore autoDetect() actually keep
the "auto" setting for MSVC. We check for this later on in
verifyConfiguration.

Change-Id: Iebf1ef415161a09bbc871baa31ff9dc56d54acac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
11 years agoQtPrintSupport: cleanup CUPS tmp files
Teemu Katajisto [Tue, 25 Sep 2012 11:15:07 +0000 (14:15 +0300)]
QtPrintSupport: cleanup CUPS tmp files

Set fd so that it gets closed in QPdfPrintEnginePrivate::closePrintDevice()

Task-number: QTBUG-14724

Change-Id: Ic9c02c92b07ece92911d7bc3eac79689b4864253
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoBring subproject dependencies in line with Makefile generators
Andy Shaw [Wed, 25 Apr 2012 14:55:28 +0000 (16:55 +0200)]
Bring subproject dependencies in line with Makefile generators

When generating the solution file it should extract the
dependencies from the pro file as this will bring it in
line with the Makefile generators.

Task-number: QTBUG-22561
Change-Id: I8d5b6607712f2c77c87ef093480e64b9633817d8
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoxcb: consistently check xcb_get_extension_data for extension inits
Shawn Rutledge [Mon, 24 Sep 2012 13:23:12 +0000 (15:23 +0200)]
xcb: consistently check xcb_get_extension_data for extension inits

This seems to fix the ability to run a Qt app across a forwarded X
connection (e.g.  ssh -X).

Change-Id: I2b7a26985cf11107e69b303337a5fbb369e38c9e
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Uli Schlachter <psychon@znc.in>
11 years agoImplement the missing raster operations that were in Qt 3
Andy Shaw [Thu, 13 Sep 2012 15:56:20 +0000 (17:56 +0200)]
Implement the missing raster operations that were in Qt 3

Although not widely used, the raster operations from Qt 3 were useful
and some of them were already implemented, this brings the rest of them
back for those who need them.

Change-Id: Id538611eaaba9be3d39bf2dd33b6c532f5d4aba8
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoAuto tests: add PlatformClipboard::isAvailable()
J-P Nurmi [Wed, 19 Sep 2012 08:11:54 +0000 (10:11 +0200)]
Auto tests: add PlatformClipboard::isAvailable()

Change-Id: Ie04060c2cae61ff8268644e9cd8001a1f5745f31
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agotst_QDialog: fix Q_OS_WINCE & QT_NO_SIZEGRIP usage
J-P Nurmi [Wed, 26 Sep 2012 14:24:39 +0000 (16:24 +0200)]
tst_QDialog: fix Q_OS_WINCE & QT_NO_SIZEGRIP usage

Change-Id: I443381ef4f10492eeda0fc681c390e0cd4d4125e
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agotst_qsidebar: remove duplicate code
J-P Nurmi [Wed, 26 Sep 2012 15:18:58 +0000 (17:18 +0200)]
tst_qsidebar: remove duplicate code

Change-Id: I8ee59022199fda7ea56891a2f924954cb4aefa42
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoDoc: update QMap's description following 5cb036851
Pierre Rossi [Tue, 25 Sep 2012 18:32:06 +0000 (20:32 +0200)]
Doc: update QMap's description following 5cb036851

Change-Id: I9dccb9f64578cf8c9da50524c5d4d1201ab488bd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoQMetaType build fix with Q_NO_CURSOR and friends.
Jędrzej Nowacki [Fri, 21 Sep 2012 11:45:07 +0000 (13:45 +0200)]
QMetaType build fix with Q_NO_CURSOR and friends.

QMetaType has a way to "switch off" some types from the build.
QtMetaTypePrivate::TypeDefinition<T>::IsAvailable is defined as false
for all unaccessible types. Sadly that information was never used by
gui and widget handlers. The patch implements it.

Change-Id: Ie5835be4c88cfbbca8a4e9199e31ddfc20cae190
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jing Bai <jing.bai@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agodocumentation fixes
Marcel Krems [Fri, 27 Apr 2012 01:08:21 +0000 (03:08 +0200)]
documentation fixes

Change-Id: If165933df41e518f5ba6065792676260fd2492b6
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
11 years agotst_QMessageBox: fix Q_OS_MAC usage
J-P Nurmi [Wed, 26 Sep 2012 14:34:29 +0000 (16:34 +0200)]
tst_QMessageBox: fix Q_OS_MAC usage

Change-Id: I1a3c1c88956d85343e693588ca0522c4b7d62072
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
11 years agoHTML template: Updated copyright information from Nokia to Digia Plc
Jerome Pasion [Mon, 24 Sep 2012 15:16:47 +0000 (17:16 +0200)]
HTML template: Updated copyright information from Nokia to Digia Plc

Change-Id: Ib4315aa0a7a92e3b36da855c2787b60cc3c332fe
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Sami Makkonen <sami.makkonen@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
11 years agoFix typo in variable name.
Stephen Kelly [Tue, 25 Sep 2012 15:34:27 +0000 (17:34 +0200)]
Fix typo in variable name.

Change-Id: I3bd59982605d242c95278bfeb71a6071ec222d08
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
11 years agoFix spelling mistake
Thiago Macieira [Wed, 26 Sep 2012 18:47:07 +0000 (20:47 +0200)]
Fix spelling mistake

Task-number: QTBUG-27355

Change-Id: I77ecc01e2a3ea1cac94e7c99c688cfd7cab5319b
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
11 years agoRename a variable it -> childIt.
Stephen Kelly [Wed, 26 Sep 2012 08:55:05 +0000 (10:55 +0200)]
Rename a variable it -> childIt.

There is another iterator called it at the top of this function.

Change-Id: I8addf47d66f098c5d811eb54674525eddb4d4a1f
Reviewed-by: David Faure <faure@kde.org>
11 years agoqtypetraits.h: add is_signed/is_unsigned/not_/not_c predicates
Marc Mutz [Thu, 20 Sep 2012 13:01:09 +0000 (15:01 +0200)]
qtypetraits.h: add is_signed/is_unsigned/not_/not_c predicates

is_signed/is_unsigned check whether the type argument is signed
or unsigned, resp., and will be used in QFlags to select the
correct underlying integer type.

not_ is used in the implementation of is_signed

not_c is for completeness (version of not_ that takes a bool
instead of an integral_constant).

Change-Id: I77cc445e8c6cf3181336505c9c13478fba3e7890
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoQFlags: fail for 64-bit enums
Marc Mutz [Wed, 26 Sep 2012 14:16:14 +0000 (16:16 +0200)]
QFlags: fail for 64-bit enums

An int is not enough to hold all values of a 64-bit enum, so
don't allow to compile QFlags for such enums.

Change-Id: Ia291c4a5e2160dfd6d5a35e61a7f71ab571b9d9a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoFix QScreen::orientation() not always being updated after changing the update orienta...
Simon Hausmann [Wed, 26 Sep 2012 13:14:48 +0000 (15:14 +0200)]
Fix QScreen::orientation() not always being updated after changing the update orientation mask

The back-end might report screen orientation changes at any point and we
record it in screen.d->orientation. However QScreen::orientation()
returns the orientation filtered according to the mask.

Changing the mask sends a notification to the back-end, which might send
another update as a result of a possible subscription to system services
(accelerometer). However on platforms where no subscription is required, where
the platform plugin ignores the mask and always sends the latest orientation,
we should "simulate" the update by updating the filtered orientation according
to the new mask. The function is cheap to call as it won't emit any signals
unless the orientation actually changes.

This patch also adds missing flush() calls after handleScreenOrientationChange
calls in the tests to ensure that the (synthetic) window system events are
actually delivered to QScreen/QGuiApplication.

Change-Id: Iebdd050f947e658ff5bc388629aa4cb31ab497fe
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
11 years agoFix initial window orientation with Qt on MeeGo 1.2 Harmattan
Simon Hausmann [Wed, 26 Sep 2012 10:42:38 +0000 (12:42 +0200)]
Fix initial window orientation with Qt on MeeGo 1.2 Harmattan

The window orientation changes are handled through a generic QPA plugin and
sends an initial window orientation change event on startup for the initial
orientation and subsequent updates when the device orientation changes.

Unfortunately the plugin was never loaded after the introduction of the new
plugin loading mechanism, because the factory key ("MeeGoIntegration") was
not provided to the plugin registry.

Change-Id: Ib7324561993abfbac1dccb0839aab0a8e870d231
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
11 years agoFix events being processed on application start
Simon Hausmann [Wed, 26 Sep 2012 12:15:39 +0000 (14:15 +0200)]
Fix events being processed on application start

Commit ef2efafcc6b28791df6258fa1c5d565090a9577a introduced a call to
QWindowSystemInterface::sendWindowSystemEvents() in
QGuiApplicationPrivate::init(), which in its implementation ends up calling
sendPostedEvents() before flushing and processing any pending (internal) window
system events.

This patch changes the call in init() to use
QWindowSystemInterface::flushWindowSystemEvents() instead, which is more gentle
in that regard.

The provided unit test verifies that no posted events are processed during the
execution of the QGuiApplication constructor while at the same time verifying
what the original changed tried to do: Allow a generic plugin to provide window
system specific defaults that are implemented using the event queue of
QWindowSystemInterface.

Task-number: QTBUG-26886

Change-Id: I129a907c00d947df60fe1a02efc67857580fce24
Reviewed-by: David Faure <faure@kde.org>
11 years agoXCB: Correctly report the created OpenGL context version and profile
Sean Harmer [Tue, 18 Sep 2012 16:05:01 +0000 (17:05 +0100)]
XCB: Correctly report the created OpenGL context version and profile

This commit fixes the xcb qpa plugin such that it now correctly reports
the version and profile of the created OpenGL context in the
QOpenGLSurfaceFormat. To do this we have to create a temporary X window
so that we can make our new context current.

We also handle the buggy nVidia drivers which incorrectly report 0 for
the GL_CONTEXT_PROFILE_MASK query.

The reduced format is also copied back from qglx_findVisualInfo.

Change-Id: I6f34fe1c6130aebbb6b40c36df4acc216069d2b1
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoOpenGL: Fix QGLFormat::openGLVersionFlags() on OS X
Sean Harmer [Thu, 20 Sep 2012 14:55:46 +0000 (15:55 +0100)]
OpenGL: Fix QGLFormat::openGLVersionFlags() on OS X

OS X is limited to OpenGL 3.2 and we have to explicitly request a Core
profile context to get the full set of available versions as OS X does
not implement the Compatibility profile.

Change-Id: I8c2a6dc272416cbaf8fee44adbc4471417bf4510
Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
11 years agoqmake: fix overescaped defines in vcxproj files
Joerg Bornemann [Wed, 26 Sep 2012 07:20:50 +0000 (09:20 +0200)]
qmake: fix overescaped defines in vcxproj files

Task-number: QTBUG-27345

Change-Id: I00848d611163afb549191f41adff628622a899e0
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoDon't call parent() so often when processing a range.
Stephen Kelly [Wed, 26 Sep 2012 14:57:38 +0000 (16:57 +0200)]
Don't call parent() so often when processing a range.

Task-number: QTBUG-17732
Change-Id: Iefe5801f5941136f77001c532870e22f7fdd2c69
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
11 years agoQScrollBar: clean up wheelEvent() implementation
Marc Mutz [Tue, 25 Sep 2012 08:56:40 +0000 (10:56 +0200)]
QScrollBar: clean up wheelEvent() implementation

This code was moved from the general event() handler.
Remove comments and casting that were necessary there.

Task-number: QTBUG-27308
Reported-by: chenjiexin
Task-number: QTBUG-21534
Reported-by: Martin Koller
Change-Id: I14ef4c6363002032895f6840a7c68c1f5f665384
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years ago[QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled
Marc Mutz [Tue, 25 Sep 2012 08:54:11 +0000 (10:54 +0200)]
[QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled

This fixes a regression introduced in Qt 4 commit
e855b199319c932f2e9500235775f961bc32e41a.

The problem was that by handling the wheel event in event()
instead of wheelEvent(), we lack the guard clause in QWidget
that doesn't even call the handler if the widget is disabled,
and the code didn't handle this itself.

Fix by reimplementing wheelEvent() instead, which we can now
do because we can break BC.

This commit just moves the code. Another commit will clean
up the implementation of wheelEvent().

Task-number: QTBUG-27308
Reported-by: chenjiexin
Task-number: QTBUG-21534
Reported-by: Martin Koller
Change-Id: Ibe6b89a81fe889f839c205b859a1492b39a4ddc3
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoFix compilation for Qt5: Avoid deprecated API
aavit [Wed, 26 Sep 2012 10:42:39 +0000 (12:42 +0200)]
Fix compilation for Qt5: Avoid deprecated API

Change-Id: Iba11d33dd4d81ed1a460dd3237cd1bb9e1ace106
Reviewed-by: Jason Barron <jason.barron@digia.com>
11 years agoCompile fix: Avoid deprecated functions
aavit [Wed, 26 Sep 2012 08:42:44 +0000 (10:42 +0200)]
Compile fix: Avoid deprecated functions

Change-Id: Ia7592997640d51ed98fdfa1a5e59d35954a0ef61
Reviewed-by: Jason Barron <jason.barron@digia.com>
11 years agoqdoc: retrying More refactoring of qdoc data structures
Martin Smith [Mon, 24 Sep 2012 07:54:42 +0000 (09:54 +0200)]
qdoc: retrying More refactoring of qdoc data structures

This commit is the second phase of a significant
overhaul of qdoc. Two new classes, QDocIndexFiles,
and QDocTagFiles, are added to encapsulate the
creation and use of the qdoc index files, and the
creation of the qdoc tag file.

Change-Id: I94651b10628e535ea7b26bd8256037cd819ccea7
Reviewed-by: Martin Smith <martin.smith@digia.com>
11 years agoReintroduce mention of QWidget in coordinate system docs.
Samuel Rødal [Wed, 19 Sep 2012 09:39:18 +0000 (11:39 +0200)]
Reintroduce mention of QWidget in coordinate system docs.

Change-Id: Ied67ec82ee66eea7d3255105cf0f635f1d7dd9e8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoQtPrintSupport: allow slight deviations from pre-defined paper sizes in tests
Teemu Katajisto [Tue, 21 Aug 2012 07:53:31 +0000 (10:53 +0300)]
QtPrintSupport: allow slight deviations from pre-defined paper sizes in tests

CUPS paper sizes may differ from Qt paper sizes slightly and thus fail
the strict comparison in qprinter tests. This is needed for the
followup patch which initializes the cupsplugin with CUPS/PPD defaults.

Change-Id: Ie66f77ead0204de0fc7c7913005fa516d57d34eb
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoQtPrintSupport: use PPD defaults in CUPS plugin
Teemu Katajisto [Wed, 22 Aug 2012 09:05:53 +0000 (12:05 +0300)]
QtPrintSupport: use PPD defaults in CUPS plugin

Initialize CUPS plugin with default values from the PPD file. Implement
paper size handling when using CUPS paper sizes to make paper sizes to
map properly when used through QPrinter interface.

Change-Id: I84d20aa4b1c7250fca754aecde419467f57ef16b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
11 years agoqtest.h: add missing QT_NO_DATESTRING guards
J-P Nurmi [Mon, 24 Sep 2012 13:04:21 +0000 (15:04 +0200)]
qtest.h: add missing QT_NO_DATESTRING guards

Change-Id: I04d8ec2e9d41399cffc610f943fc06e043831ceb
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoAuto tests: remove PlatformQuirks::isAutoMaximizing()
J-P Nurmi [Wed, 19 Sep 2012 12:57:15 +0000 (14:57 +0200)]
Auto tests: remove PlatformQuirks::isAutoMaximizing()

Use QStyleHints::showIsFullScreen() where necessary.
Notice that QWidget::show() already calls showFullScreen()
if appropriate, and Qt::X11BypassWindowManagerHint doesn't
do anything in the XCB platform plugin.

Change-Id: Ib8f61188c075170d646894388561cbb3f72daee8
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
11 years agoMake QSignalTransition take a pointer-to-const QObject
Giuseppe D'Angelo [Thu, 13 Sep 2012 18:23:10 +0000 (19:23 +0100)]
Make QSignalTransition take a pointer-to-const QObject

The obvious idea is that a connect() happens behind the scenes.
As QObject::connect takes a pointer-to-const, QSignalTransition should
do that as well.

TODO: the API becomes asymmetric in that it takes
a "const QObject *" but returns a "QObject *". Reasoning is needed.

Change-Id: I18d0436e7036eee851fd36d5b8ccda4a4757938f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
11 years agoFix MinGW/gcc warning about NOMINMAX being redefined
Kai Koehne [Mon, 17 Sep 2012 10:32:09 +0000 (12:32 +0200)]
Fix MinGW/gcc warning about NOMINMAX being redefined

Commit 5230d62fe added a #define NOMINMAX, which conflicts with a
NOMINMAX definition in the MinGW headers. Just use the same definition
as in MinGW to fix the gcc warning.

Change-Id: Ib21dd323ebbdca5d143e394c7631303e0c72541a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoconfigure: Document the -widgets, -no-widgets arguments
Kai Koehne [Thu, 20 Sep 2012 09:08:48 +0000 (11:08 +0200)]
configure: Document the -widgets, -no-widgets arguments

Also add -gui, since we're always documenting the default ones, too.

Change-Id: I590af798d825f2933c6249663d4cad45fc23cb52
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoCore: Silence gcc warnings about unitinialized members in qarraydata.cpp
Kai Koehne [Thu, 20 Sep 2012 08:41:09 +0000 (10:41 +0200)]
Core: Silence gcc warnings about unitinialized members in qarraydata.cpp

It's perfectly correct to leave members uninitialised, since they are zero initialized.

Change-Id: I0d0c737cf35793a2633d44ce194af7f489903c03
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
11 years agoqmake: Fix gcc warning about anonymous type linkage
Kai Koehne [Thu, 20 Sep 2012 08:18:37 +0000 (10:18 +0200)]
qmake: Fix gcc warning about anonymous type linkage

Fix "warning: anonymous type with no linkage used to declare variable
'<anonymous struct> dotNetCombo []' with linkage".

Change-Id: Iaff0d460df53fd6d0732d39bf633688805f5c653
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
11 years agoFix restore/minimize/close buttons for maximized MDI subwidows
Miikka Heikkinen [Mon, 17 Sep 2012 09:33:44 +0000 (12:33 +0300)]
Fix restore/minimize/close buttons for maximized MDI subwidows

The style code to display the restore/minimize/close buttons in menubar
for maximized MDI subwidows was removed in Qt5 as it was incorrectly
ifdeffed with just QT_NO_WORKSPACE where QT_NO_MDIAREA should
also have been used. Brought back the removed code with proper
ifdeffing.

Task-number: QTBUG-27235
Change-Id: I89607dd54eec00329e576c72b0e8b997f37cdb29
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoTest: tst_QFile::writeLargeDataBlock() unstable failure as XFAIL
Caroline Chao [Wed, 26 Sep 2012 06:02:49 +0000 (08:02 +0200)]
Test: tst_QFile::writeLargeDataBlock() unstable failure as XFAIL

While the large data block can be written to a file, the test is
also showing instability while reading back the written block.

Adding another expected failure to address this instability.

Task-number: QTBUG-26906

Change-Id: I9704d441cf2bd6d7ef0f9023240ea61bb89561b6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
11 years agoCMake: Fix the generated location of static libraries.
Stephen Kelly [Tue, 25 Sep 2012 07:44:25 +0000 (09:44 +0200)]
CMake: Fix the generated location of static libraries.

We need to make sure to put the .lib file into the LOCATION property,
not the .dll file, when building a static library.

Change-Id: I8912abfd172d0939cd07ba02901ab58093ccefa1
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoCMake: Specify the prl files when building with mingw.
Stephen Kelly [Tue, 25 Sep 2012 08:35:59 +0000 (10:35 +0200)]
CMake: Specify the prl files when building with mingw.

As was done in ae6d4c77eb338be3f2189bfaffdcd3c38cc57333, but that commit
missed the mingw branch.

Change-Id: I1d76ed2f8070dced2749aabe889fee48c4086744
Reviewed-by: Peter Kümmel <syntheticpp@gmx.net>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agoRemove Windows CE time conversion compatibility functions
Simon Hausmann [Wed, 8 Aug 2012 08:06:40 +0000 (10:06 +0200)]
Remove Windows CE time conversion compatibility functions

These files were used by WebKit for Windows CE, but they are not needed
anymore since https://bugs.webkit.org/show_bug.cgi?id=93446

Change-Id: Ic6808bf177ff18c668a5a281687a5b7842786ef0
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
11 years agoIf accept fails, stop accepting new connections and emit error signal.
Jonas M. Gastal [Tue, 12 Jun 2012 01:27:03 +0000 (22:27 -0300)]
If accept fails, stop accepting new connections and emit error signal.

Task-number: QTBUG-24778
Change-Id: I6c5b685b3f861a0fafc1475c41bb35cede17d712
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
11 years agoMisc. updates to the lancelot autotest framework
aavit [Mon, 13 Aug 2012 12:13:40 +0000 (14:13 +0200)]
Misc. updates to the lancelot autotest framework

Moving more logic into the protocol and framework, easening
the burden on the autotest implementation.
Implementing several new features in the server and
report, like fuzzy matching and static baselines.

Change-Id: Iaf070918195ae05767808a548f019d09d9d5f8c0
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
11 years agoFix qstringlist autotest build for WinCE.
Janne Anttila [Tue, 19 Jun 2012 08:19:28 +0000 (11:19 +0300)]
Fix qstringlist autotest build for WinCE.

WinCE does not have setlocale, used SetUserDefaultLCID correspondingly
as it is done in qstring autotest for WEC7.

Change-Id: I7866bf0f365c7c6efbf3b439cdd9a281c6a1b2e0
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years ago[docs] QApplication: fix keyboardInputDirection() docs
Marc Mutz [Mon, 24 Sep 2012 11:05:23 +0000 (13:05 +0200)]
[docs] QApplication: fix keyboardInputDirection() docs

There were two documentation blocks: the first had the wrong class name,
the second was duplicate.

Change-Id: I241b3e6567376a46a6270837cce4aa380a6c8c49
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>