profile/ivi/qtbase.git
12 years agotst_qgraphicsview hoverLeave regressed
Toby Tomkins [Fri, 22 Jun 2012 03:16:43 +0000 (13:16 +1000)]
tst_qgraphicsview hoverLeave regressed

Task-number: QTBUG-26274

Change-Id: Ieafc6bf4a7fa5287985610a4dea57fbe6f3a9eba
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRestore building of examples, tests.
Rohan McGovern [Thu, 21 Jun 2012 01:01:27 +0000 (11:01 +1000)]
Restore building of examples, tests.

Without this, a simple "configure && make" will not build the examples
or tests, even if the "-make tests -make examples" options were used.

This is a partial revert of 709cc8800e7d8600e181cf6b9f8b1033faefe596.

Change-Id: If363cd24d30ba4c102a35ed2617999ae4e9ed9b0
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoFixes high CPU usage on timer expiration when using glib event loop.
Daniel Thor Kristjansson [Wed, 20 Jun 2012 19:17:15 +0000 (15:17 -0400)]
Fixes high CPU usage on timer expiration when using glib event loop.

GTimerSource has 1ms accuracy, QTimerInfoList::timerWait() has 1us accuracy.
So when there is less than 1 ms left on the timer we enter a tight loop
checking for timer expiration since we don't round up the timerWait()
timer to the nearest millisecond.

Task-number: QTBUG-7618
Change-Id: I684c9236324f598bc69c6810be270aa47c791f91
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoUpdate the docs about setRoleNames deprecation.
Stephen Kelly [Thu, 21 Jun 2012 14:24:28 +0000 (16:24 +0200)]
Update the docs about setRoleNames deprecation.

Change-Id: I5aff626979238014d34cba1d383051cd4b048499
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
12 years agofix doc typo in qwindow.cpp
Joerg Bornemann [Thu, 21 Jun 2012 12:42:39 +0000 (14:42 +0200)]
fix doc typo in qwindow.cpp

Change-Id: I0980319e32b94882fe882c57cd8341f6b3e62048
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoFix possible crash when copying QImage.
Kim Motoyoshi Kalland [Wed, 20 Jun 2012 11:45:32 +0000 (13:45 +0200)]
Fix possible crash when copying QImage.

Task-number: QTBUG-14766

Change-Id: I82a4736dbd5ac08ede1b2bdccfa29a2009ebb4d8
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoQDoc: Use the module page as link in qt.ditamap.
Casper van Donderen [Wed, 13 Jun 2012 17:33:32 +0000 (19:33 +0200)]
QDoc: Use the module page as link in qt.ditamap.

If the number of [QML]module pages in a single qdoc run is 1: Use it as the link for the nested group of documentation pages in the automatically generated ditamap.

Change-Id: Idbc3e2e5d65a1e7f0201638102ffab62475a66ec
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
12 years agoQDoc: Use 'Type' instead of 'element' in instantiates.
Casper van Donderen [Thu, 21 Jun 2012 07:58:03 +0000 (09:58 +0200)]
QDoc: Use 'Type' instead of 'element' in instantiates.

On a C++ documentation page "is instantiated by QML element" was printed
when you have a QML Type that instantiates this class. The text is now
changed to "is instantiated by QML Type".

Change-Id: I6c93531edc6ef9ac112573034fd54fa52390bc37
Reviewed-by: Martin Smith <martin.smith@nokia.com>
12 years agoRemove QWS references from testlib
Girish Ramakrishnan [Wed, 20 Jun 2012 01:22:44 +0000 (18:22 -0700)]
Remove QWS references from testlib

Change-Id: Iad52a5c44b27cb11a47987c9f8890cc67b557fb7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoAvoid unnecessary detach when saving to BMP.
Kim Motoyoshi Kalland [Tue, 19 Jun 2012 12:18:16 +0000 (14:18 +0200)]
Avoid unnecessary detach when saving to BMP.

Task-number: QTBUG-11486

Change-Id: Ic9aa733da4f23dc3eaba111c97a39bfd911f8cb3
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoNew command line switches for configure.exe
Rafael Roquetto [Wed, 20 Jun 2012 14:00:34 +0000 (16:00 +0200)]
New command line switches for configure.exe

Adds support for the following command line switches to configure.exe tool:
    * -nis (-no-nis)
    * -cups (-no-cups)
    * -iconv (-sun-iconv, -gnu-iconv, -no-iconv)
    * -neon (-no-neon)
    * -largefile
    * -fontconfig (-no-fontconfig)
    * -posix-ipc
    * -glib
    * -system-freetype
    * -sysconfdir <dir>

Change-Id: I0e299f02605bdcb588ae746f397b92ec23a7ff23
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoQTextLayout docs: a minor typo fix
Konstantin Ritt [Tue, 19 Jun 2012 01:27:41 +0000 (04:27 +0300)]
QTextLayout docs: a minor typo fix

Change-Id: I5e6d02f17e9064afe0c21dda806e67bc14c728b7
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoproper filling when using Qt::TexturePattern
Konrad Grochowski [Tue, 19 Jun 2012 15:15:11 +0000 (17:15 +0200)]
proper filling when using Qt::TexturePattern

fix for using both Qt::OpaqueMode and
Qt::TexturePatter for filling

Task-number: QTBUG-19202
Change-Id: Ia92363cacaa51140fe78b542d9768aead81868ff
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
12 years agoFix qitemview and qdatetimeedit autotest builds for WinCE.
Janne Anttila [Tue, 19 Jun 2012 08:27:06 +0000 (11:27 +0300)]
Fix qitemview and qdatetimeedit autotest builds for WinCE.

Defined missing SPI_GETPLATFORMTYPE macro as it was done in for example
in qwidget and qaccesiblity test cases.

Change-Id: I33a1e0119848911fbc4830299fcc1854f5259e86
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
12 years agoFix qdiriterator autotest build for WEC7.
Janne Anttila [Tue, 19 Jun 2012 08:08:39 +0000 (11:08 +0300)]
Fix qdiriterator autotest build for WEC7.

Change-Id: I18b1bdd79905761eff7a5ddbe1c6538c33624a1f
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
12 years agoFixed mouse grabbing preventing popups from being closed.
Samuel Rødal [Mon, 18 Jun 2012 13:53:30 +0000 (15:53 +0200)]
Fixed mouse grabbing preventing popups from being closed.

The pointer grabbing leads to fake Enter events being sent to the
Qt::Popup window, preventing it from closing since QWidget::underMouse()
returns true. We should only send Enter events if the mouse is actually
inside the widget.

Change-Id: I4ba3fb08943580f93ad4337ff0227becd647767e
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoHandle fragmented responses on SOCKS5 control channel
Shane Kearns [Tue, 12 Jun 2012 15:46:37 +0000 (16:46 +0100)]
Handle fragmented responses on SOCKS5 control channel

Server responses may arrive in more than one packet, though this
is rare due to nagle algorithm.
Also fixed IPv6 addresses being discarded from server responses,
which was caught by the new autotest.

Task-number: QTBUG-18564

Change-Id: I32d9e2978037fb3e1fff27b7e618b5da6d222f28
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoFix qfile autotest build for WEC7
Janne Anttila [Tue, 19 Jun 2012 08:11:13 +0000 (11:11 +0300)]
Fix qfile autotest build for WEC7

Change-Id: I6c4b4c91ea841ccb91ad685510caaecaf51baced
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoAdd new benchmark metrics to testlib
Chris Adams [Wed, 9 May 2012 06:43:53 +0000 (16:43 +1000)]
Add new benchmark metrics to testlib

QElapsedTimer provides nanosecond-resolution elapsed timing, which
allows for finer granularity benchmark reporting.  Also, clients
may also wish to benchmark the memory usage of a particular component,
but no metric currently exists which matches that requirement.

This commit adds the WalltimeNanoseconds and BytesAllocated metrics
to meet these needs.  It is intended for manual use by clients via
setBenchmarkResult() only.

Change-Id: Ib37ada374e265c857eda02d047d51d436618e4a7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoDoc: tmake -> qmake, it's about time
Daniel Molkentin [Mon, 18 Jun 2012 23:00:16 +0000 (01:00 +0200)]
Doc: tmake -> qmake, it's about time

Pushing this before 5.0 since it will most certainly
trigger a major recompile, which is probably why
this has never been changed.

Change-Id: I5fd90537d3b754d0a8a1b522d66183513693e0af
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoChange default Content-Type for http POST to match 4.7.4
Shane Kearns [Wed, 13 Jun 2012 16:27:31 +0000 (17:27 +0100)]
Change default Content-Type for http POST to match 4.7.4

Qt 4.7.3 sent no Content-Type header by default.
This was fixed independently on 4.8.0 and 4.7.4 branches, with
different defaults.
Since this is often used for web service logins, the 4.7.4
default of x-www-form-urlencoded seems more likely to work.

The warning message is left in place, since not specifying the
content type is still an application bug.

Task-number: QTBUG-23350
Change-Id: I30bf50fd216ee9894d0168e904cea1ed4251ec68
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
12 years agoRemove references to Q_WS_QWS
Girish Ramakrishnan [Wed, 20 Jun 2012 01:15:48 +0000 (18:15 -0700)]
Remove references to Q_WS_QWS

Affected code includes:
src/widgets/dialogs/qmessagebox.cpp
src/widgets/graphicsview/qgraphicsitem.cpp
src/widgets/kernel/qapplication_p.h
src/widgets/kernel/qwhatsthis.cpp
src/widgets/kernel/qwidget.h
src/widgets/widgets/qdockwidget.cpp

Change-Id: Ib9e920b3cc1253b39e4e00d7137c21321ecc0399
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoplastique: Use QPlatformTheme::DialogButtonBoxButtonsHaveIcons
Girish Ramakrishnan [Wed, 20 Jun 2012 01:03:47 +0000 (18:03 -0700)]
plastique: Use QPlatformTheme::DialogButtonBoxButtonsHaveIcons

Change-Id: I2f493d45820063ef62f16febde0df89a874dddb0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRemove dead code
Girish Ramakrishnan [Wed, 20 Jun 2012 00:58:29 +0000 (17:58 -0700)]
Remove dead code

Change-Id: I48c1e3b2ebcf4ec2fb21ed2d1a88e1dae64e937d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoFix QWidgetWindow sending duplicate drag-drop events
James Turner [Wed, 20 Jun 2012 12:55:40 +0000 (14:55 +0200)]
Fix QWidgetWindow sending duplicate drag-drop events

Unlike the other event handlers in QWidgetWindow, the drag-drop events are not followed by an
early return. This causes all drag-drop events to also be sent to the root widget of the window,
which is a bug. For example in the fridgemagnets example, where the target widget and
root widget are the same, the drop event is received twice.

Change-Id: I99e56ad8c48b3d31b0bd7c815cea8490edbf0af4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoRecord if a metatype is a smart pointer to a QObject derived.
Stephen Kelly [Thu, 24 May 2012 12:35:45 +0000 (14:35 +0200)]
Record if a metatype is a smart pointer to a QObject derived.

This allows QVariant/QMetaType software (such as QtDeclarative) to
deal with smart pointers in a similar way to how they can deal with
naked pointers (accessing properties etc).

This also adds a requirement that T be fully defined when
QSharedPointer<T> is inserted into a QVariant.

Change-Id: I29e12b8a6aa5f4aadbd62f92b89bc238f64b5725
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoAdd some internal API for extracting a QSharedPointer<T> from QVariant.
Stephen Kelly [Sat, 9 Jun 2012 20:57:35 +0000 (22:57 +0200)]
Add some internal API for extracting a QSharedPointer<T> from QVariant.

The T must be derived from QObject, or it will fail to compile.

This will allow scripting or other 'wrapping' and runtime environments like
QtDeclarative to handle QSharedPointers to types derived from QObject
properly. A QSharedPointer<T> can be inserted into a QVariant, and
where T derives from QObject, a QSharedPointer<QObject> can be
extracted from the QVariant, and its properties are then accessible.

Change-Id: I68d6d89aceceb019267bd7301baa2047f9c09b90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoQNetworkAccessManager: delete the httpThread
Martin Petersson [Wed, 13 Jun 2012 06:59:35 +0000 (08:59 +0200)]
QNetworkAccessManager: delete the httpThread

The httpThread was using deleteLater the finished signal of the
thread to call the deleteLater slot. If the QNetworkAccessManager is
deleted when the application is closed then then fished is emitted
but we never return to the eventloop so the deletion is never done.

This will delete the httpThread directly instead of using deleteLater

Task-number: QTBUG-25487
Change-Id: I1fdbd4eca01e8bd8b3a98936298e5c78217752b4
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
12 years agoChange *-clang mkspec globs to *-clang*
Bradley T. Hughes [Thu, 14 Jun 2012 05:14:05 +0000 (07:14 +0200)]
Change *-clang mkspec globs to *-clang*

Like with the numerous g++ mkspecs, we have mkspecs with suffixes, and
these mkspecs should still match the clang globs.

Change-Id: I9296408b5192bc72cc468d229a57923e3f5ab6f0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agomkspecs: Add macx-clang-libc++ and macx-clang-libc++-32
Bradley T. Hughes [Wed, 13 Jun 2012 11:37:14 +0000 (13:37 +0200)]
mkspecs: Add macx-clang-libc++ and macx-clang-libc++-32

Use these mkspecs to switch to the new libc++ C++ runtime library, which
in turn makes it possible to enable C++11 support with clang.

Change-Id: If92908592f8bee4829a1bad747fe396f527d26c7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agofix tst_QWidget::getSetCheck on Windows
Joerg Bornemann [Tue, 19 Jun 2012 16:10:28 +0000 (18:10 +0200)]
fix tst_QWidget::getSetCheck on Windows

Change-Id: Ie11a7576f8e618e2fedb31bd8071abb44b9f9f57
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoFix unused parameter warnings in moc test.
Mitch Curtis [Wed, 20 Jun 2012 10:38:08 +0000 (12:38 +0200)]
Fix unused parameter warnings in moc test.

Change-Id: I3467a8bf99464c2d3762a171b20508bb4b29ddb4
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoMake QUuid compile with QT_NO_QUUID_STRING without breaking QDebug <<
Jeremy Katz [Mon, 18 Jun 2012 22:18:09 +0000 (00:18 +0200)]
Make QUuid compile with QT_NO_QUUID_STRING without breaking QDebug <<

Change I0cbb0581a1c3abefdde75b7cd45fdafd31640f0d breaks the use of
operator<< for QDebug, which shows up when trying to link QtCore in
the small qconfig.

Instead, render QUuid as "QUuid(QT_NO_QUUID_STRING)".

Task-number: QTBUG-24816

Change-Id: Ia52283d7461a9907bcec7a110e41c9f830895efe
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agodefine QT_NO_ICONV if QT_NO_TEXTCODEC
Jeremy Katz [Mon, 18 Jun 2012 20:08:00 +0000 (22:08 +0200)]
define QT_NO_ICONV if QT_NO_TEXTCODEC

This also updates qfeatures.h with various other things that have
been neglected. Run $QTSRCDIR/util/scripts/make_qfeatures_dot_h
after changing qfeatures.txt

Task-number: QTBUG-24816

Change-Id: I18b71fcec71efa9cfe3425fb1a7833456ec411b9
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoMake QVariant compile with QT_NO_QUUID_STRING
Jeremy Katz [Mon, 18 Jun 2012 15:18:13 +0000 (17:18 +0200)]
Make QVariant compile with QT_NO_QUUID_STRING

Task-number: QTBUG-24816

Change-Id: I76e6a6bcf1a2381e14f400648e3cb8ba554772a6
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoMac: Fix rendering of non-int sized fonts.
Eike Ziller [Fri, 15 Jun 2012 11:42:19 +0000 (13:42 +0200)]
Mac: Fix rendering of non-int sized fonts.

Scrolling happens in integer steps, so it's necessary to use a
fractional correction value.

Task-number: QTCREATORBUG-7127
Change-Id: I6eccba6532f95aa4bf9270bdaec4b57280dc8e3d
Reviewed-by: Matthias Ettrich <matthias.ettrich@nokia.com>
12 years agoDocument and use UserEvent::nullWindow for event delivery
Girish Ramakrishnan [Mon, 18 Jun 2012 21:51:14 +0000 (14:51 -0700)]
Document and use UserEvent::nullWindow for event delivery

nullWindow is used to track if the window was null when the event
was created. If the window was null at contruction time, the qpa
event delivery code will choose a window to deliver it to.

If the window was not-null at creation time but became null during
the actuall event processing time, the event is ignored.

All the event delivery except the touch event delivery has been
changed to reflect this. I have not changed touch event delivery
because I don't really know what all need to be retranslated into
new window co-ordinates.

Change-Id: Ic62d12a13e70dd4d01226509411817db1b6af108
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
12 years agoMerge "Merge branch 'buildsystem'" into refs/staging/master
Oswald Buddenhagen [Wed, 20 Jun 2012 08:34:13 +0000 (10:34 +0200)]
Merge "Merge branch 'buildsystem'" into refs/staging/master

12 years agoMake QDateTime::fromString()/Time::fromString() adhere to ISO 8601.
Mitch Curtis [Mon, 18 Jun 2012 13:53:30 +0000 (15:53 +0200)]
Make QDateTime::fromString()/Time::fromString() adhere to ISO 8601.

Currently QDateTime::fromString and QTime::fromString do not correctly
handle fractional minutes and, in some cases, fractional seconds.

In the case of reading fractional minutes, it has been decided to
ignore invalid characters outside of the 5 character portion that
we're interested in (see code comments in fromStringImpl() for
info on why we read 5 digits). The motive is that there is a
performance penalty for calling mid to get the portion of surplus
string and also for converting to it to a float. This is also in
line with what QDate does with surplus characters, for example.

Task-number: QTBUG-14418
Task-number: QTBUG-25387
Change-Id: Ib742fe80686aff3c3770b995678cf838fb4e3bb4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoClean up QDateTime tests.
Mitch Curtis [Fri, 8 Jun 2012 16:09:09 +0000 (18:09 +0200)]
Clean up QDateTime tests.

Clean up and consolidate different tests in tst_qdatetime.cpp
(that seem to be doing the same thing) into single tests.

Change-Id: Ib6ceb1cb7fb4c6eca672495f96d9cfd907853c85
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoAdd leading zeros to years below 1000 in QDate::toString().
Mitch Curtis [Fri, 8 Jun 2012 11:36:16 +0000 (13:36 +0200)]
Add leading zeros to years below 1000 in QDate::toString().

QDate::toString(Qt::ISODate) lacks prefixed 0's on years below 1000.
The ISO 8601 standard dictates that this should be the case.

Task-number: QTBUG-16476
Change-Id: I7e73152bba0f5894bcbaa3f4418732b74ce86bc5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoUpdate calendarwidget example
Gatis Paeglis [Mon, 18 Jun 2012 10:01:57 +0000 (12:01 +0200)]
Update calendarwidget example

Due to API changes introduced by ff55d64f6788563a6ef9da2b6d0b6dc23bb936aa

Task-number: QTBUG-26130
Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoUse the POSITION_INDEPENDENT_CODE property on targets using Qt.
Stephen Kelly [Wed, 13 Jun 2012 20:26:30 +0000 (22:26 +0200)]
Use the POSITION_INDEPENDENT_CODE property on targets using Qt.

This property is only set if Qt is configured
with -reduce-relocations (which is the default).

Change-Id: If2f0ab92448f03bbc3f7c828d3bca60107229072
Reviewed-by: Brad King <brad.king@kitware.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoQUrl::setEncodedQueryItems should replace
Martin Petersson [Wed, 13 Jun 2012 10:38:51 +0000 (12:38 +0200)]
QUrl::setEncodedQueryItems should replace

If there is  already a query string present in the url. It should be
replace when setEncodedQueryItems is called again.

Task-number: QTBUG-26148
Change-Id: I2bd4e1f5d9b4161d64556062e97141888ad89b3b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoImproved QCursor::setPos() robustness on xcb.
Samuel Rødal [Wed, 20 Jun 2012 07:25:54 +0000 (09:25 +0200)]
Improved QCursor::setPos() robustness on xcb.

This makes tst_QGraphicsView::hoverLeave() less flaky.

Change-Id: Iaa1be6e2d02499679c69b26c07132413040173b6
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
12 years agoAdd test for queued call of method with unregistered parameter type
Kent Hansen [Fri, 15 Jun 2012 11:39:28 +0000 (13:39 +0200)]
Add test for queued call of method with unregistered parameter type

Verify that this produces a warning containing the relevant typename.

Change-Id: I046c02585e410a211e9175600b1027dda83bdd9c
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoQMetaMethod::invoke: Use normalizedType() to normalize return type
Kent Hansen [Fri, 15 Jun 2012 10:23:00 +0000 (12:23 +0200)]
QMetaMethod::invoke: Use normalizedType() to normalize return type

The code was probably written before QMetaObject::normalizedType()
was introduced.

The behavior is covered by the existing tests
tst_QMetaObject::invokeMetaMember and
tst_QMetaObject::invokeBlockingQueuedMetaMember.

Change-Id: Ib1c3b3e4dff37947defd1dfdcc860df44539aa3a
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
12 years agoAccessibility: Do not automatically add controllers
Frederik Gladhorn [Thu, 10 May 2012 19:36:24 +0000 (21:36 +0200)]
Accessibility: Do not automatically add controllers

While I do like the idea, it currently relies on every
QWidget having QAccessibleWidget as a11y representation.

This crashes for example when using the itemviews and
asking them for relations.

Change-Id: Ie15a78dae620eefb97c646b9e802b13bdf864650
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
12 years agoMOC: Avoiding MAX_PATH limit on Windows
Yuchen Deng [Thu, 14 Jun 2012 12:27:02 +0000 (20:27 +0800)]
MOC: Avoiding MAX_PATH limit on Windows

See: http://msdn.microsoft.com/en-us/library/aa365247(v=VS.85).aspx
Task-number: QTBUG-26157

Change-Id: Ie74481cd06c31149a060a432352da5b2731caaef
Reviewed-by: Debao Zhang <dbzhang800@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoFix compile-time error macro when building with -fPIE
Gabor Ballabas [Tue, 19 Jun 2012 11:24:43 +0000 (13:24 +0200)]
Fix compile-time error macro when building with -fPIE

This macro causes a compile-time error using LLVM with Clang
when the target that includes qglobal.h is built with -fPIE.

Change-Id: I2e82e1a8feed9009c814f187b06501b26ea3b3b7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoFix access to uninitialized pointer
Tobias Hunger [Sat, 16 Jun 2012 20:52:03 +0000 (22:52 +0200)]
Fix access to uninitialized pointer

The C++ standard says in 9.4..2 that the object expression is evaluated,
so any compliant compiler may access d. So this syntax is a bug in this
place.

Change-Id: I37d2c4ea54febd40410ca473c906bcb1c66c4974
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
12 years agoAdd qMove macro to support std::move
Olivier Goffart [Wed, 25 Apr 2012 09:09:48 +0000 (11:09 +0200)]
Add qMove macro to support std::move

Change-Id: I373e07f479c11b172dab35ed7e5b62724aa50a1a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
12 years agoWindows: Fix MinGW warnings.
Friedemann Kleint [Wed, 13 Jun 2012 14:14:40 +0000 (16:14 +0200)]
Windows: Fix MinGW warnings.

- Missing initializers for structs
- Missing enumeration value
- Mixing enumeration/ints in operator ?

Change-Id: I149ab01ad2ebd04f89e5c699905d5ba724828e0f
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agotst_qfilesystemmodel: increased test's permitted runtime
Rohan McGovern [Wed, 20 Jun 2012 01:03:58 +0000 (11:03 +1000)]
tst_qfilesystemmodel: increased test's permitted runtime

This test has recently timed out a few times on Windows test runs, with
no relevant changes to account for the timeout. Double the permitted
runtime.

Change-Id: I93765c9ea592973495bfe3a2f63e63ed615eb542
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
12 years agoMerge branch 'buildsystem'
Oswald Buddenhagen [Tue, 19 Jun 2012 14:48:23 +0000 (16:48 +0200)]
Merge branch 'buildsystem'

This appears to be fully backwards-compatible with all tested modules,
as far as CI is concerned.

Change-Id: I53f979d06d0a264c5aab1193bab181a38ab837d6

12 years agoFixed Wince Makefile environment
Bjoern Breitmeyer [Fri, 11 May 2012 08:24:28 +0000 (10:24 +0200)]
Fixed Wince Makefile environment

Integrated the checksdk tool into qmake and made
the makefiles selfcontained, so configure make, is now
enough to build qt for wince

Change-Id: I29076702eca2ec23d4d06bb3d5c5cef9d4f95161
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agomake missing qt modules fatal
Oswald Buddenhagen [Wed, 6 Jun 2012 11:01:45 +0000 (13:01 +0200)]
make missing qt modules fatal

there is no point in continuing; it will error out later (in more
cryptic ways) anyway.

Change-Id: I2562eadc2d91bfaa6e85368dc3774da31409a141

12 years agoless confusing wording
Oswald Buddenhagen [Wed, 13 Jun 2012 12:42:32 +0000 (14:42 +0200)]
less confusing wording

Change-Id: Ia509fe1a28de803673623d425f5949b35404598c

12 years agofix misnomer: qt_module.prf => qt_build_config.prf
Oswald Buddenhagen [Mon, 4 Jun 2012 15:10:11 +0000 (17:10 +0200)]
fix misnomer: qt_module.prf => qt_build_config.prf

qt_module suggests to be congruent to qt_plugin.

Change-Id: I629530bcbe2ba6c0adbdc11a275119c8aff0c953

12 years agofix regexp in qmodule.pri inclusion check
Oswald Buddenhagen [Wed, 13 Jun 2012 12:36:32 +0000 (14:36 +0200)]
fix regexp in qmodule.pri inclusion check

this also allows us removing the redundant flag variable

Change-Id: If26d22280ce7bc2ef3514c7c11ce7cd9baec1293

12 years agorevamp automatic makefile generation for sub-projects
Oswald Buddenhagen [Fri, 18 May 2012 20:13:51 +0000 (22:13 +0200)]
revamp automatic makefile generation for sub-projects

instead of making the "real" targets depend on the makefiles, add
conditional makefile generation to the targets themselves.
this causes makefile generation to follow the recursion order determined
by the project, which is important when dealing with prl and module pri
files.
a side effect of this is that qmake and make calls are interleaved now,
which is entirely different from a 'qmake -r' run.

on the downside, calling make with multiple targets which operate on the
same subprojects without prior makefile generation will make a mess, as
the qmake calls will be racing. this should be no problem, as qmake does
not generate recursive targets where this would be useful - at least by
default.

it is not sufficient to just order the creation of the makefiles
non-recursively (e.g., by using gnu-specific order-only-prerequisites),
as an interrupted and subsequently resumed build would happily skip the
nested makefiles.
workable alternative approaches would be walking the entire tree in a
pre-pass to ensure makefile presence (which is incredibly slow) or
creating additional stamp files only after recursing and having the
makefiles depend on them (which is ugly).

Task-number: QTBUG-23376
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Change-Id: I88d3e7610215677d362026de316513d3bea04b06

12 years agosupport for private depends in modules
Oswald Buddenhagen [Thu, 19 Apr 2012 17:21:32 +0000 (19:21 +0200)]
support for private depends in modules

if a module's private headers add additional dependencies, QT_PRIVATE is
now the place to declare them. note however, that this may not contain
other private headers in turn - that would be much harder to implement,
and we want the explicitness anyway.

Change-Id: Ic516fcf1a003c95798df4fbe216f92016afaf47e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agointroduce $$QMAKE_CHK_EXISTS_GLUE
Oswald Buddenhagen [Fri, 18 May 2012 18:44:01 +0000 (20:44 +0200)]
introduce $$QMAKE_CHK_EXISTS_GLUE

instead of hard-coding platform differences, use a variable.

Change-Id: I20e98811ad5f07429148c6f88aedbabc3ba58fff
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agocentralize definitions of shell commands
Oswald Buddenhagen [Fri, 18 May 2012 18:22:42 +0000 (20:22 +0200)]
centralize definitions of shell commands

there are only two types. everything else is duplication.

Change-Id: I87f2bdd3d56b94bb2ecdb60e8861afeb9af3666f
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agonormalize $$QMAKE_QMAKE
Oswald Buddenhagen [Mon, 23 Apr 2012 10:44:40 +0000 (12:44 +0200)]
normalize $$QMAKE_QMAKE

everything in the projects should be normalized. only the makefile
generators need to adjust it to the native form.

Change-Id: I06a4e997f32134d13949ec4a9dd1b44367aab7cb
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agocorrectly find idc even for makefiles
Oswald Buddenhagen [Tue, 22 May 2012 13:28:48 +0000 (15:28 +0200)]
correctly find idc even for makefiles

this is a qt tool, so it needs appropriate treatment

Change-Id: I0cb30ba07e03c72ee275cd916ca0a39a99fc3705
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agofix in-/out-dir mixup
Oswald Buddenhagen [Fri, 18 May 2012 19:51:02 +0000 (21:51 +0200)]
fix in-/out-dir mixup

no point in entering the outdir and leaving the indir.
this doesn't really matter except for the obsolete borland generator,
but whatever.

Change-Id: Ieb4e4c549ebd65f99e4d00819c52822968b060a4
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove unnecessary conditional
Oswald Buddenhagen [Fri, 18 May 2012 19:06:54 +0000 (21:06 +0200)]
remove unnecessary conditional

the code above already deals with the differences

Change-Id: Ifb799e46f5187e7bd3d0f0169e868ad267bcfe23
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove duplicate assignments of MKDIR & CHK_DIR_EXISTS
Oswald Buddenhagen [Tue, 29 May 2012 08:53:12 +0000 (10:53 +0200)]
remove duplicate assignments of MKDIR & CHK_DIR_EXISTS

Change-Id: I314659a1ba25227380176dc65a9c81e3c6df28c1
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agounobfuscate makefiles re $(CHK_DIR_EXISTS)
Oswald Buddenhagen [Tue, 29 May 2012 08:53:00 +0000 (10:53 +0200)]
unobfuscate makefiles re $(CHK_DIR_EXISTS)

no need to define an obscure variable for it. just inline it.
the assignments are left in for compatibility with hand-written commands.

Change-Id: I9bc3914e2c4116f3b8fe00a421ca0f036bb7e214
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agomake 'qmake_all' targets respect .depends and CONFIG+=ordered
Oswald Buddenhagen [Wed, 30 May 2012 10:33:34 +0000 (12:33 +0200)]
make 'qmake_all' targets respect .depends and CONFIG+=ordered

Change-Id: I010a9886ee0d40e4319cb6bd873b038336a42111
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agomake 'qmake_all' target of SUBDIRS projects properly recursive
Oswald Buddenhagen [Fri, 18 May 2012 14:59:22 +0000 (16:59 +0200)]
make 'qmake_all' target of SUBDIRS projects properly recursive

so far it would rebuild the makefiles one level down only, which is
somewhat arbitrary and not really helpful.

Change-Id: I5fe01f379ecc4b210610a674d7df7dfc18131eef
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agomake 'qmake' target of SUBDIRS projects non-recursive
Oswald Buddenhagen [Fri, 18 May 2012 15:07:26 +0000 (17:07 +0200)]
make 'qmake' target of SUBDIRS projects non-recursive

that's consistent with other projects. 'qmake_all' can be used for
recursion.

Change-Id: Ie6d620f7a3e0e28d3f2f82f01ca94c2f46137c68
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agodon't use $(MAKEFILE) to refer to SUBDIRS' makefiles
Oswald Buddenhagen [Wed, 16 May 2012 12:54:21 +0000 (14:54 +0200)]
don't use $(MAKEFILE) to refer to SUBDIRS' makefiles

$(MAKEFILE) is our own file, and using it would wreak havoc if it was
named anything but Makefile.

Change-Id: I51cae2014a85399b409f18788f864ff2a82e493e
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agodo not add "/." to _PRO_FILE_PWD_
Oswald Buddenhagen [Mon, 14 May 2012 13:13:12 +0000 (15:13 +0200)]
do not add "/." to _PRO_FILE_PWD_

if a "subdir" project added a project file from the same directory as
itself, "/." would be appended to the path, which is obviously not useful.

Change-Id: Ia733dedb57e568c5cf9a3d5eb29727176a5142c5
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agodon't refer to removed headers
Oswald Buddenhagen [Fri, 11 May 2012 09:21:42 +0000 (11:21 +0200)]
don't refer to removed headers

Change-Id: Ib1d51f8fb6078c6ac365b455bde5bebf66b13b15
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoallow projects to suppress qmake recursion
Oswald Buddenhagen [Thu, 10 May 2012 14:49:13 +0000 (16:49 +0200)]
allow projects to suppress qmake recursion

webkit does some unholy tricks with the ordering of qmake and make
invocations, so it does not work with qmake -r. to make it still
possible to integrate it into the qt5 aggregator project, give it a
chance to "break out" from the recursion.

Change-Id: I926836e44c0e0790cdd90e6b0c8f766dccc33c4d
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
12 years agoscan module path backwards
Oswald Buddenhagen [Thu, 10 May 2012 13:35:24 +0000 (15:35 +0200)]
scan module path backwards

the last read file wins, so reading in inverse order ensures that we
respect the list's sorting by decreasing priority.

Change-Id: I2e6539a52d4195ed6af4c0143b035c39577b8310
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agolet default_pre add modules to the qmake path
Oswald Buddenhagen [Mon, 2 Apr 2012 16:59:24 +0000 (18:59 +0200)]
let default_pre add modules to the qmake path

that way qmake is made aware of the forwarding pris which are generated
for this module even when a top-level .qmake.cache prevents the module's
root from being found automatically.
the path is also added to the cache, so that subsequent partial
qmake-ing of the tree will still find the module.

this also makes the -cache-module-fwd parameter of syncqt useless, so
remove it.

Change-Id: I2afbc52a465c0b3260e9bcaf032c43a82ae8061f
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agorecognize QMAKEMODULES env var, property and cache variable
Oswald Buddenhagen [Thu, 10 May 2012 13:34:05 +0000 (15:34 +0200)]
recognize QMAKEMODULES env var, property and cache variable

the latter allows sub-projects to dynamically extend the qmake search path
specifically for modules. the others are just for congruency with
QMAKEPATH and QMAKEFEATURES.

Change-Id: I0c099035f8dc8ee8645566dbc635644a15ed9da5
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agolook for mkspecs/ even below .qmake.cache/.conf-determined root
Oswald Buddenhagen [Wed, 6 Jun 2012 20:14:41 +0000 (22:14 +0200)]
look for mkspecs/ even below .qmake.cache/.conf-determined root

otherwise a cache/config in an aggregator project may unduly hide the
mkspecs/ of the aggregated project from qmake's view.

Change-Id: Idb0b124de071822f8f55463d9f8a4d194ef3130e

12 years agoadd support for a super cache
Oswald Buddenhagen [Thu, 10 May 2012 10:59:14 +0000 (12:59 +0200)]
add support for a super cache

qmake will now look for .qmake.super, just like it looks for .qmake.cache,
and the cache() function has a mode to write this super cache.
this allows the creation of aggregator projects like, say, qt5.
a notable difference to the normal cache is that this file is *not* added
as a dependency of the Makefile. this means that modifications done by
later sub-projects will not cause a re-processing of earlier projects, and
consequently that one should be cautious regarding what information to
store there.
another notable difference is that this file is read *before* the spec,
so the spec can use the variables from the cache without resorting to
$$fromfile() & co.

Change-Id: I4807b6d34014261fa9eebd6f0ae128b802d86691
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agolook for .qmake.conf files
Oswald Buddenhagen [Thu, 10 May 2012 09:22:07 +0000 (11:22 +0200)]
look for .qmake.conf files

this is the source dir equivalent of .qmake.cache and can be checked
into the repository. it can be used to make project-wide settings, or
just to signal the presence of an mkspecs/ directory.

Change-Id: I5f1cebad2aa2a89e78089341b2051613b6b7a613
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agofind .qmake.cache for subprojects independently
Oswald Buddenhagen [Thu, 10 May 2012 08:41:54 +0000 (10:41 +0200)]
find .qmake.cache for subprojects independently

this allows the creation of aggregator projects, like, say, qt5.
this is not expected to have a negative impact, as no project could
reasonably expect a nested .qmake.cache to *not* take effect - in fact,
if the project was processed stand-alone, it would already use it.

Change-Id: I33f2935d309baba7e95465f2fefb8231c4f03eda
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoallow setting QMAKEPATH and QMAKEFEATURES in .qmake.cache
Oswald Buddenhagen [Thu, 7 Jun 2012 10:48:40 +0000 (12:48 +0200)]
allow setting QMAKEPATH and QMAKEFEATURES in .qmake.cache

Change-Id: Ie383abb57c06cb49d38345d64750837b8fe14c70
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agodon't duplicate project_build_root's calculation needlessly
Oswald Buddenhagen [Fri, 27 Apr 2012 16:14:56 +0000 (18:14 +0200)]
don't duplicate project_build_root's calculation needlessly

Change-Id: Id2f343c450149b13b52c2cae8eb6eb4bfd73fc03
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agomove generation of module master headers to qt_module_headers
Oswald Buddenhagen [Fri, 13 Apr 2012 14:17:12 +0000 (16:17 +0200)]
move generation of module master headers to qt_module_headers

this has the advantage that the %mastercontent assignments in sync.profile
are not necessary any more. as it happens, most modules got them wrong
anyway.

Change-Id: Ibdf689be408f18e1d90c44ef4ecacd7c24b1f1c9
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agomake master phonon compat header a forwarding header
Oswald Buddenhagen [Wed, 25 Apr 2012 10:28:36 +0000 (12:28 +0200)]
make master phonon compat header a forwarding header

instead of writing the same file twice, just forward to the compat
header, like it is done for every other header.

Change-Id: I8c908f80149aff4720cca6d51ab5b550c31f78b1
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove detection-based usage of modules which are frameworks
Oswald Buddenhagen [Thu, 12 Apr 2012 18:55:53 +0000 (20:55 +0200)]
remove detection-based usage of modules which are frameworks

each qt module comes properly declared and located, so there is simply
no point in performing a search.

Change-Id: I86fad21bb8e128b85f1000cc116cc44a23642eb4
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agofix direct includes from modules which are frameworks
Oswald Buddenhagen [Thu, 12 Apr 2012 18:54:05 +0000 (20:54 +0200)]
fix direct includes from modules which are frameworks

Change-Id: I1f2c1e5ebdb2fa258500a08b32dcafb4150ee424
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agolet modules which are frameworks remember that fact
Oswald Buddenhagen [Fri, 1 Jun 2012 06:23:12 +0000 (08:23 +0200)]
let modules which are frameworks remember that fact

this will allow us to not rely on the modules matching the global
qt_framework setting.

Change-Id: Ic1dce757ff63d06af54a2428e23a1bbcf1c81ba1
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove workarounds for broken syncqt
Oswald Buddenhagen [Thu, 12 Apr 2012 18:33:20 +0000 (20:33 +0200)]
remove workarounds for broken syncqt

SYNCQT.HEADER_FILES contains qconfig.h just fine nowadays.

Change-Id: I52b35d2ac41d772acaef06f3931df75742c867cb
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoautomatically add QT_BUILD_FOO_LIB to DEFINES
Oswald Buddenhagen [Wed, 11 Apr 2012 15:28:49 +0000 (17:28 +0200)]
automatically add QT_BUILD_FOO_LIB to DEFINES

Change-Id: I35d9861e48469eb5cc8824e361450684047e6559
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove backwards compatibility hacks
Oswald Buddenhagen [Wed, 11 Apr 2012 10:04:17 +0000 (12:04 +0200)]
remove backwards compatibility hacks

there won't be terribly many projects relying on it. now's the time to
find out for sure ...

this reverts commit 3279b07302fde0eb14f9b197c9ad2e14d512817e

Change-Id: Id36687ab3bfc7dd5ce35b584621a8f5b3ee00fc9
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoclean up projects from QPRO_PWD nonsense, etc.
Oswald Buddenhagen [Tue, 10 Apr 2012 18:42:59 +0000 (20:42 +0200)]
clean up projects from QPRO_PWD nonsense, etc.

Change-Id: I4c41aedf5bfb37e31ad202cacd2312b0bdb168e2
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoauto-generate QMAKE_PKGCONFIG_REQUIRES and QMAKE_PKGCONFIG_DESCRIPTION
Oswald Buddenhagen [Tue, 10 Apr 2012 18:35:04 +0000 (20:35 +0200)]
auto-generate QMAKE_PKGCONFIG_REQUIRES and QMAKE_PKGCONFIG_DESCRIPTION

less boilerplate, more accuracy

Change-Id: I6cc2abd50eafb4901d987c122f10a62ec9ea9da3
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agomove QMAKE_PKGCONFIG_VARIABLES stuff out of qt_module_config.prf
Oswald Buddenhagen [Tue, 10 Apr 2012 18:04:23 +0000 (20:04 +0200)]
move QMAKE_PKGCONFIG_VARIABLES stuff out of qt_module_config.prf

this only needs to be set in one module each - the one which provides
the relevant tool.

this is moderately source-incompatible, in that a package which queries
a given variable from the wrong library won't get the path it looks for
any more. as it's likely that everyone was using QtCore as a reference
anyway, this will only affect uic - which is in the new QtWidgets
library, to which people need to adjust anyway.

Change-Id: If05d3c33fda6cd12466e261391b825c59651d3e4
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove ACTIVEQT_IDC assignment from QMAKE_IDC
Oswald Buddenhagen [Fri, 13 Apr 2012 14:14:54 +0000 (16:14 +0200)]
remove ACTIVEQT_IDC assignment from QMAKE_IDC

the specs have been cleaned of it

Change-Id: Ica0ab4d5f9d36f1f9566759326f3b3144e34cd67
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agoremove support for CONFIG+=qt_compat
Oswald Buddenhagen [Tue, 10 Apr 2012 17:17:12 +0000 (19:17 +0200)]
remove support for CONFIG+=qt_compat

this is truly prehistoric stuff

Change-Id: Ia781fc03c081bff895f4d2b5325d3624441bdf5f
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
12 years agodon't explicitly inject qt header/library paths
Oswald Buddenhagen [Tue, 10 Apr 2012 17:06:41 +0000 (19:06 +0200)]
don't explicitly inject qt header/library paths

the modules already do that on demand.

Change-Id: I889a5cd7b62631e2551ada4b096f20b3b79b2c75
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>