profile/ivi/qtbase.git
12 years agoDocument QPA implementation aspects.
Friedemann Kleint [Mon, 1 Oct 2012 10:22:44 +0000 (12:22 +0200)]
Document QPA implementation aspects.

Change-Id: I4fef8a534b145efa9655a9070f790bf9aba030d9
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
12 years agoFixed Qt GUI landing page.
Samuel Rødal [Mon, 1 Oct 2012 08:58:47 +0000 (10:58 +0200)]
Fixed Qt GUI landing page.

Change-Id: I9af2ed12e27c00060a6bcc6262064ee95295a8a8
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
12 years agoQXcbWindow: Don't recreate window when reparenting.
Yoann Lopes [Fri, 28 Sep 2012 15:04:01 +0000 (17:04 +0200)]
QXcbWindow: Don't recreate window when reparenting.

For consistency, this behavior has been kept across Qt versions... Just
get rid of it.
Also fixes native child widgets not being notified of the change of
window handle (winId) when being reparented.

Updated auto-test.

Change-Id: I3616dc0f1c32a519d78a4846297d6d4a6e926fbf
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
12 years agoFix moc stumbling over gcc __attribute__ extensions
Simon Hausmann [Mon, 1 Oct 2012 09:57:53 +0000 (11:57 +0200)]
Fix moc stumbling over gcc __attribute__ extensions

Reported by David Faure.

In KDE a DEPRECATED macro gets defined in a header file created by cmake.
The define is not guarded with #if Q_CC_GNU or similar because at cmake
time the compiler is determined. Therefore moc suddenly sees this gcc
specific token and stumbles over it.

This patch simply defines an empty __attribute__ macro that will expand
to nothing and thus become invisible to moc's "C++ parser" after the
pre-processing.

Change-Id: I4448b9ac3f72b6334e32b27484401fb0fca23a0c
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoQNX: change suffix for separate debug files
Peter Hartmann [Tue, 25 Sep 2012 13:30:44 +0000 (15:30 +0200)]
QNX: change suffix for separate debug files

QNX uses .sym for files containing debug symbols.

Change-Id: Ieb995ae90af771ff5c877213f4f4982169f333c6
Patch-by: Greg Bentz
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoBlackberry mkspecs: Refine compiler options
Peter Hartmann [Thu, 20 Sep 2012 12:11:25 +0000 (14:11 +0200)]
Blackberry mkspecs: Refine compiler options

stack-protector-strong gives performance benefits over
stack-protector-all and is still checking more than -stack-protector,
so seems to be a good middle way and we want to use it when it is
there.

The -shared option for the compiler (not the linker) prevents a
RIM internal version of qcc from forcing -fPIE, and should not harm
in general when set.

In addition, add a method "compilerSupportsFlag" for Windows as is
present in the Unix configure script.

Change-Id: Iba300e9cb82f34043e7b36f8e45287a1aed2a1a5
Original-patch-by: Greg Bentz
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoQPA/Windows example: Set proper window flags, titles, names.
Friedemann Kleint [Fri, 28 Sep 2012 15:14:44 +0000 (17:14 +0200)]
QPA/Windows example: Set proper window flags, titles, names.

Do not leak windows.

Change-Id: I3af29ce597742cbe6444208aa72443c0507819db
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
12 years agoFixed qglxconvenience.cpp compile for GLX 1.3.
Samuel Rødal [Fri, 28 Sep 2012 07:36:21 +0000 (09:36 +0200)]
Fixed qglxconvenience.cpp compile for GLX 1.3.

These defines are new in GLX 1.4, earlier they were ARB extensions.

Task-number: QTBUG-27370
Change-Id: I83828067d106e93a3909de46a4051d492e277ba9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoQNX: Only set parent window if it is not NULL
Rafael Roquetto [Thu, 27 Sep 2012 21:24:16 +0000 (18:24 -0300)]
QNX: Only set parent window if it is not NULL

There are cases where a widget has a parent, but is also a toplevel window at
the same time, causing the system window to have no parent.
For instance, a QMenu usually has a QMenuBar as a parent, however QMenuBar
itself does not have its own platform window, as opposed to QMenu. Thus
QMenuBar::parent == QMainWindow (for example), but QMenuBar::platformWindow ==
0x0; QMenu::parent == QMenuBar, but QMenu::platformWindow != 0x0 (which is
QMenuBar's value).

Change-Id: Ib203fa1b85f5f20ef53366c80d6752d6384a202d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
12 years agoReturn QPersistentModelIndexes from QItemSelectionRange.
Stephen Kelly [Thu, 27 Sep 2012 09:24:38 +0000 (11:24 +0200)]
Return QPersistentModelIndexes from QItemSelectionRange.

They are stored as such anyway, and this allows clients to not have to
convert between QModelIndex and back so much. This should be
fully source-compatible.

Change-Id: Ia606ea082442089a0aae1583380c3710ce61d3d1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 years agoEmit layout change hint from QStandardItemModel.
Stephen Kelly [Thu, 27 Sep 2012 09:13:47 +0000 (11:13 +0200)]
Emit layout change hint from QStandardItemModel.

Change-Id: I6d6a8c146b63c57634ae6b26ed5c1de249aa9e66
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 years agoEmit layout change hint from QStringListModel.
Stephen Kelly [Thu, 27 Sep 2012 09:12:59 +0000 (11:12 +0200)]
Emit layout change hint from QStringListModel.

Change-Id: I8b4a01cfcca59103f2616b72645994a22bff40dd
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 years agoProcess and forward the layout change hint through the QIdentityProxyModel.
Stephen Kelly [Thu, 27 Sep 2012 09:10:44 +0000 (11:10 +0200)]
Process and forward the layout change hint through the QIdentityProxyModel.

Change-Id: I074c75080b7e74c44fc833c207d297723e5f6e06
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 years agoAdd hint API to QAIM::layout*Change signals.
Stephen Kelly [Thu, 27 Sep 2012 09:08:18 +0000 (11:08 +0200)]
Add hint API to QAIM::layout*Change signals.

Usually layoutChange is used for sorting elements. The parents parameter
to the signal already hints at a localization of what is being sorted, if
it's just one level in the tree. The new hints enum can be used to only
consider how the first column of a table gets sorted, because all other
columns will be sorted the same way.

Change-Id: I65dd2996894bbdb45a2f6288edbeaa49e4053256
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoQQnxWindow: use a proper cast
Marc Mutz [Fri, 28 Sep 2012 12:36:27 +0000 (14:36 +0200)]
QQnxWindow: use a proper cast

Replace a C-cast with a const_cast.
Casting doesn't care about nullptr, so don't check for one.

Change-Id: I18a3e8f21d73b73385e567c7ceaf64e36aaa2cf3
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoMake documentation of QVariant::isNull more explicit.
Jędrzej Nowacki [Mon, 24 Sep 2012 13:21:57 +0000 (15:21 +0200)]
Make documentation of QVariant::isNull more explicit.

Task-number: QTBUG-22933
Change-Id: I1d8d3fc778ba00bcad11caaaf8af7d87186f18e8
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
12 years agoqdoc: Augment imagedirs list
Martin Smith [Fri, 28 Sep 2012 09:23:52 +0000 (11:23 +0200)]
qdoc: Augment imagedirs list

Modularization of examples has resulted in putting
all documentation and code for an example in each
example subdirectory. In particular, each example
subdirectory now contains a doc/images subdirectoy,
where images are stored that are linked to from the
example .qdoc files, which are in the doc/src
subdirectory of the example directory.

Because there are so many example subdirectories,
it would be difficult to list all the doc/images
directories in the imagedirs variable of the
qdocconf file. Therefore, qdoc now searches all
the directories listed in the exampledirs variable
to find all the doc/images subdirectories there,
and it adds these to the imagedirs variable for
use in finding images called out in \image and
\inlineimage commands.

Task Nr: QTBUG-27248

Change-Id: I070ba1a558ab32e1db06429a71c083b55f9dd0ea
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
12 years agoPrevent an overflow warning in assertions.
Christian Kandeler [Wed, 26 Sep 2012 10:32:52 +0000 (12:32 +0200)]
Prevent an overflow warning in assertions.

Functions like QByteArray::at() assert the given index:
    Q_ASSERT(i >= 0 && i < size();
These functions typically get inlined. Now if the index is
e.g. size() - 2, then gcc will emit an ugly warning in
client code ("assuming signed overflow does not occur when assuming
that (X - c) > X is always false").
This can be easily prevented by casting both sides of the second
comparison in the assertion to their unsigned type. The explicit
comparison to zero is then no longer necessary, since that condition
is tested implicitly by the other comparison due to unsigned arithmetic.

Change-Id: Ic7244e1fa5da00a47d1fe0ed56fb81c23d444dfe
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQNX: fix bug on window hierarchy list
Rafael Roquetto [Thu, 27 Sep 2012 22:10:37 +0000 (19:10 -0300)]
QNX: fix bug on window hierarchy list

removeFromParent() must not be called from raise()/lower(), because it wrongly
sets m_currentParent to 0, causing the parent/child link to be broken after a
call either of these methods.

Change-Id: I58f847dc4a46f2cf120cb3acf230bac46bcf24f5
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
12 years agoQFlags: use unsigned int when the enum's underlying is unsigned
Marc Mutz [Thu, 20 Sep 2012 13:06:11 +0000 (15:06 +0200)]
QFlags: use unsigned int when the enum's underlying is unsigned

Replace storage and operator int() return types with unsigned int
if the enum is unsigned.

This fixes a number of exisiting warnings, in particular with
Qt::MouseButton under GCC.

Change-Id: Ia12d36212329aec3e9d62a5fbd38809a6c2b36d0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoqfuturesynchronizer.cpp: fix whitespace errors
Marc Mutz [Mon, 27 Aug 2012 21:34:55 +0000 (23:34 +0200)]
qfuturesynchronizer.cpp: fix whitespace errors

Change-Id: I106ae536f1411939c3785f0a97c39752db59b19c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQException/QFuture*: add \inmodule QtCore
Marc Mutz [Mon, 27 Aug 2012 15:06:33 +0000 (17:06 +0200)]
QException/QFuture*: add \inmodule QtCore

Change-Id: Iad787e3280889eae6b6aace9a85bda966b1a7094
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoInclude qexception.h instead of qtconcurrentexception.h
Marc Mutz [Mon, 27 Aug 2012 21:22:53 +0000 (23:22 +0200)]
Include qexception.h instead of qtconcurrentexception.h

Change-Id: I9a54412b77596aa74af7a513c33b10eb52257db2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMove QFutureSynchronizer back to QtCore
Marc Mutz [Mon, 27 Aug 2012 21:22:15 +0000 (23:22 +0200)]
Move QFutureSynchronizer back to QtCore

This class, too, belongs with QFuture.

Change-Id: I41a532ca66c156f1631e4b22ffc1a5879c854488
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMove QFutureWatcher back to QtCore
Marc Mutz [Mon, 27 Aug 2012 21:15:40 +0000 (23:15 +0200)]
Move QFutureWatcher back to QtCore

This belongs with QFuture.

Change-Id: I555cd01c1d3890fbbaca4fd8a9170292ea4eb0fb
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMove QFuture from QtConcurrent to QtCore
Marc Mutz [Mon, 27 Aug 2012 16:33:55 +0000 (18:33 +0200)]
Move QFuture from QtConcurrent to QtCore

This class belongs to QThreadPool/QRunnable more than to QtConcurrent, so
move to QtCore, where QThreadPool awaits it.

Change-Id: Ibf20288a986593bf779453427c2dae8db1e1423a
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQFuture: remove unused include
Marc Mutz [Fri, 21 Sep 2012 14:21:54 +0000 (16:21 +0200)]
QFuture: remove unused include

qtconcurrentcompilertest.h defines the HasResultType<> template, which
qfuture.h doesn't use.

Include qtconcurrentcompilertest.h in the headers which actually use
HasResultType<> instead.

Change-Id: Ic5939ccf4c9058b2b624432c7ea48a5aca2236b5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMove QtConcurrent::ResultStore as QtPrivate::ResultStore to QtCore
Marc Mutz [Mon, 27 Aug 2012 15:23:33 +0000 (17:23 +0200)]
Move QtConcurrent::ResultStore as QtPrivate::ResultStore to QtCore

No compatibility header needed. While this wasn't marked as private API,
it wasn't documented, either.

This is a prerequisite for moving QFuture to QtCore.

Change-Id: I8e986e6e2a22fbe5cf08d0600ec39ae9ae993e20
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoMove QtConcurrent::Exception as QException back to QtCore
Marc Mutz [Mon, 27 Aug 2012 10:24:48 +0000 (12:24 +0200)]
Move QtConcurrent::Exception as QException back to QtCore

Leave the old name as a deprecated typedef; adapt users.

This is a prerequisite for moving QFuture back to QtCore.

Change-Id: I81dcee2c7e6eb234c16f3f42e2415ca0da3dc4f8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agotst_QDateTimeEdit: cleanup whitespace & follow Qt coding style
J-P Nurmi [Thu, 27 Sep 2012 13:28:11 +0000 (15:28 +0200)]
tst_QDateTimeEdit: cleanup whitespace & follow Qt coding style

Change-Id: Iae04cd0c9ac6ea85621b293f2ce184d673548e9b
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
12 years agoFix accessing the rpath dir from included modules
Romain Pokrzywka [Sat, 15 Sep 2012 00:59:54 +0000 (17:59 -0700)]
Fix accessing the rpath dir from included modules

The wrong variable was used when reading the module settings

Change-Id: If35dc9694240a68393b24d7dba72520108cb9ac3
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
12 years agoFix rpath dir in forwarding module .pri file
Romain Pokrzywka [Sat, 15 Sep 2012 00:55:24 +0000 (17:55 -0700)]
Fix rpath dir in forwarding module .pri file

The module rpath should be the raw QT_INSTALL_LIBS, without the sysroot

Change-Id: I4140929b38a589134872593e4ce35eaf7d1cd5b7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
12 years agoconfig.tests/fontconfig: remove app_bundle config (mac compatibility)
J-P Nurmi [Fri, 28 Sep 2012 11:31:10 +0000 (13:31 +0200)]
config.tests/fontconfig: remove app_bundle config (mac compatibility)

Change-Id: I77e00ee57f6062de76814f83d947a7e3a7300ebf
Reviewed-by: Jiang Jiang <gzjjgod@gmail.com>
12 years agoQNX: fix assert condition on the destructor
Rafael Roquetto [Fri, 28 Sep 2012 14:12:32 +0000 (11:12 -0300)]
QNX: fix assert condition on the destructor

m_childWindows must be 0 (and not > 0), since at this point it should have no
children.

Change-Id: I149e34849cab2d56f8617cc04fc6bf95c0476e4c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agofix indentation
Mark Brand [Fri, 28 Sep 2012 10:53:27 +0000 (12:53 +0200)]
fix indentation

Change-Id: Iebec20c1be5a0610007a8e7ffd2646bda7f2785d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 years agoQProcess/Win fix forwarding of output channels
Joerg Bornemann [Thu, 27 Sep 2012 13:33:45 +0000 (15:33 +0200)]
QProcess/Win fix forwarding of output channels

We must not create pipe readers for the forwarded channels as we don't
want to read from stdout/stderr into the internal QProcess buffer.
Also, we must not pass CREATE_NO_WINDOW to CreateProcess because this
will render our stdout/stderr handles useless.

Change-Id: Ie6485e86c103d1e9225cf39c04aa54093c1efe0d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
12 years agoMac: Fix label margins in QGroupBox
Gabriel de Dietrich [Thu, 27 Sep 2012 16:28:06 +0000 (18:28 +0200)]
Mac: Fix label margins in QGroupBox

Also use mini-sized checkbox and label when checkable. This looks better when
there are several group boxes on the same dialog.

Change-Id: I69bb0240f2a6725afb9819d20696ca404be0bca7
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
12 years agoSome improvements to the system Mac palette
Gabriel de Dietrich [Mon, 24 Sep 2012 10:55:21 +0000 (12:55 +0200)]
Some improvements to the system Mac palette

Change-Id: I0c3c306db440a9a230a0916e7ee1eb27b072d057
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
12 years agoMake sure the path is quoted in case it has spaces in it
Andy Shaw [Tue, 25 Sep 2012 12:39:45 +0000 (14:39 +0200)]
Make sure the path is quoted in case it has spaces in it

This fixes a problem when the preprocessing scripts were called from a
path with spaces in it.

Task-number: QTBUG-15317
Change-Id: I92ea85e12e2f9abfc262a8dcaa4f414e471e468c
Reviewed-by: João Abecasis <joao@abecasis.name>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
12 years agoBlackberry: Support input method hints
Thomas McGuire [Thu, 27 Sep 2012 13:30:06 +0000 (15:30 +0200)]
Blackberry: Support input method hints

Change-Id: I2d30d6079d3982e5ca2b8d9346d0d511279792ad
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
12 years agoQNX: use assert on QQnxWindow destructor
Rafael Roquetto [Thu, 27 Sep 2012 22:18:16 +0000 (19:18 -0300)]
QNX: use assert on QQnxWindow destructor

This makes it clear that the m_childWindows size must be 0 at this point,
indicating otherwise an inconsistency in the logic of the child windows
management.

Change-Id: I04e418bc6e1d23681bd96f4d619cde9645dc6a22
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
12 years agoUpdate the NaN tests to deal with non-conformance better
Thiago Macieira [Thu, 27 Sep 2012 13:39:20 +0000 (15:39 +0200)]
Update the NaN tests to deal with non-conformance better

ICC apparently optimises 0 * anything directly to zero, even when it
should be doing a multiplication to conform to IEEE requirements. GCC in
fast-math mode does the same, but that also makes the rest of the
function unreliable, so we try to turn off fast-math mode if we can.

Task-number: QTBUG-22340

Change-Id: I0e3c5f4927b0a6bcb3189bb156c18843fc4b29b9
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
12 years agoQDoc: remove the experimental basedir variable
Pierre Rossi [Tue, 25 Sep 2012 12:35:12 +0000 (14:35 +0200)]
QDoc: remove the experimental basedir variable

It was introduced in the early days of the docs'
modularization and appears not to be used anywhere
anymore.

Change-Id: I5b0c60d92828624af2129153fce96ad01aec861c
Reviewed-by: Martin Smith <martin.smith@digia.com>
12 years agoTestLib: Fix MinGW compile warning
Kai Koehne [Thu, 27 Sep 2012 08:08:35 +0000 (10:08 +0200)]
TestLib: Fix MinGW compile warning

MinGW-64 defines _CrtSetReportMode, but only as a noop, resulting
in a warning "statement has no effect [-Wunused-value]"

Change-Id: I6e509246134dd5929b23b07abdb6d705db603793
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
12 years agoDoc: Small updates to QMenu's addAction() methods.
Geir Vattekar [Tue, 21 Aug 2012 12:10:39 +0000 (14:10 +0200)]
Doc: Small updates to QMenu's addAction() methods.

Task-number: QTBUG-26792
Change-Id: I41289cf10065161baca368ca195268d39cdff6cf
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>