summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove TESTED_CLASS/TESTED_FILES comments from tests.Jason McDonald2011-12-06284-853/+0
| | | | | | | | | These comments were mostly empty or inaccurate. Appropriate naming of tests and appropriate placement of tests within the directory tree provide more reliable indicators of what is being tested. Change-Id: Ib6bf373d9e79917e4ab1417ee5c1264a2c2d7027 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't mark selftest subtests as testcases.Jason McDonald2011-12-062-2/+0
| | | | | | | | | The subtests are intended to be executed by tst_selftests and therefore don't need to have "CONFIG += testcase", which causes 'make check" to treat them as stand-alone tests. Change-Id: I1b47e0186be99c591bb1e03bbec6386518f8a449 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add new mkspec for cross-compiling Qt5 for ARMJyri Tahtela2011-12-062-0/+68
| | | | | | | | This mkspec provides default compiler settings for cross-compiling Qt5 for ARM. Change-Id: If58a1833141ab305bd57928796f7444e9b7aa2b3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Fix QT_DEPRECATED_SINCE evaluationBradley T. Hughes2011-12-051-23/+23
| | | | | | | | | | | | | | | | QT_DEPRECATED is defined by default by the logic in qglobal.h, but QT_DEPRECATED_SINCE is evaluated before that definition, making QT_DEPRECATED_SINCE evaluate to 0, disabling all deprecated code (even though it shouldn't be disabled). Fix this by moving the QT_DEPRECATED_SINCE evaluation to after the evaluation of QT_NO_DEPRECATED and/or definition of QT_DEPRECATED, to ensure that QT_DEPRECATED_SINCE works as expected. Change-Id: I57d9f6a3e1859b0057fd4f37bcf2d2cc3dfba230 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: João Abecasis <joao.abecasis@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Re-add QInternal::EventNotifyCallbackBradley T. Hughes2011-12-053-0/+57
| | | | | | | | | This is needed by QtScript, so we need to keep it for now. Change-Id: Iee6bd7daf7e86a09242523f5aca72ede413a6981 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Make tst_QVariant::canConvertMetaTypeToInt more verbose.Jędrzej Nowacki2011-12-051-13/+20
| | | | | Change-Id: If17cbd1154c4fd3c006648b28e91a009de5b373b Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
* qpixmap_win.cpp: Fix typo in format conversion (alpha).Friedemann Kleint2011-12-051-2/+2
| | | | | Change-Id: I8abdae5482e94a7f9af494e5d547352431285336 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* v8: Introduce MIPS code for the QML codeHolger Hans Peter Freyther2011-12-051-1/+136
| | | | | | | | Copy and paste the ARM code into the MIPS dir, there is no lithium support in MIPS right now. Change-Id: I21491d36da2a4ac4cb6898c47b0e5bd37a733b41 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v8: Attempt to fix a typo in the commit messageHolger Hans Peter Freyther2011-12-051-1/+1
| | | | | | | is resolve -> is resolved Change-Id: I95a6072be63e353bafdafccc404e90d331a01894 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* mips: Really build the MIPS V8 codeHolger Hans Peter Freyther2011-12-051-3/+1
| | | | | | | | 2008d2d40ed10baf94acb9103b85f3bf6e2f655a was not rebased properly and should have used the V8_TARGET_ARCH to add the MIPS code to the build. Change-Id: Idf0c183fca63da0fa9f9aa8d091a764b88c888f5 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix typos in Sqlite docs.Stephen Kelly2011-12-052-3/+3
| | | | | | Change-Id: I4a57e9e37831c135b1ad620c8c9586a5eea76220 Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fixing naming of selftests.Jason McDonald2011-12-054-34/+34
| | | | | | | | Make the test object names correspond to the test program names, so that it is easier to see which test produced each block of test output. Change-Id: Ib19a955938b549f27cdcaac83bfa9150285b396d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't set graphics system at start of test.Jason McDonald2011-12-051-8/+1
| | | | | | | | | | QApplication::setGraphicsSystem() is a no-op, and even if it wasn't it would be unwise to force a graphics system that isn't guaranteed to be included in the Qt build, without including any logic to skip the test if setting the graphics system failed. Change-Id: Id9a0a87586872088625de7840b5032d0c3cc48a1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fixed tst_selftests findtestdata subtest for shadow builds.Rohan McGovern2011-12-052-0/+6
| | | | | | | | | | This test uses qt.conf to enforce a predictable tests install location. This was not working in the shadow build case, as qt.conf was only present in the source tree; embed it as a resource at :/qt/etc/qt.conf so it works in the shadow build case too. Change-Id: Iec708d9686c29a1fc5ff0020dc11a93a593d20c5 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove unused Mac specific font code in widgetsJiang Jiang2011-12-046-1427/+0
| | | | | | Change-Id: If7a81b8b59aedcc0ba54c735787a220bab9ca535 Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Remove QCoreTextFontEngineMultiJiang Jiang2011-12-042-357/+0
| | | | | | | | It's not used anymore since we have switch to HarfBuzz on Mac. Change-Id: I68252fbe3021f54dacac5a901184c3f3e541a6b7 Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Enable subpixel rendering for raster on MacJiang Jiang2011-12-042-1/+11
| | | | | | Change-Id: I06e6465e03c17776974d361254abf5b750736080 Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Move the metatype declaration for QGraphicsScene.Stephen Kelly2011-12-042-1/+2
| | | | | | | From where it is forward declared to where it is fully defined. Change-Id: Ie2240ffef6d1edbbbd5b193f9528ef94ef412d82 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Remove unused enum values.Frederik Gladhorn2011-12-041-3/+1
| | | | | | | | | These were used for foreground/background color. Since we have proper functions for these two now, the hack with invoke_method is no longer needed. Change-Id: I66eb645124caa838adb1ceb41383a2724a45f553 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Quote the path in CMake so that spaces in paths work.Stephen Kelly2011-12-031-1/+1
| | | | | | Change-Id: Ie73a4b242ab0bf90e6f292be9a7b7913ae4273a5 Reviewed-by: Clinton Stimpson <clinton@elemtech.com> Reviewed-by: Richard J. Moore <rich@kde.org>
* New class QTemporaryDir.David Faure2011-12-028-3/+879
| | | | | | | As discussed on qt5-feedback / development lists. Change-Id: If1733369d12daa29054776ec2cbd78e63679768e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Fix tst_qsql crashes on Mac OS XHonglei Zhang2011-12-022-13/+15
| | | | | | | | | | | | In tst_qsql, there are function calls to QApplication(argc, 0, false), where argc is zero. According to the documentation, argc must be greater than zero and argv must contain at least one valid character string. The misuse of this API has no problem on any platform other than Mac OS. This commit has fixed the crash by passing valid dummy parameters. Task-number: QTBUG-22811 Change-Id: I42b26d66f0becb7a942896e6ddcaea52ff720a48 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
* Remove QInternal callbacks and internal functionsBradley T. Hughes2011-12-029-304/+19
| | | | | | | | | | | | | | | | After commit 79f675a1e0f628bbc25345ebc1eb1f5809166c6b, the connect and disconnect callback API effectively becomes useless. Now that these callbacks cannot/do not, it makes little sense to keep the backdoors added for Qt Jambi support. Remove them for now. Should the Qt Jambi team want/need to port to Qt 5, we can re-add them, possibly designing a better API for doing so as well. Change-Id: I6209a1d647d683c979d5294b632b8c12c0f9f91c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Automatically add QtQuick module if only QtDeclarative is specifiedKent Hansen2011-12-021-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QtQuick and related APIs (QQuickItem, SceneGraph, et al), which used to live in the QtDeclarative module, have moved to a new module, QtQuick. Existing projects that use QtQuick-specific APIs should add "quick" to their project's QT variable, and update their include statements. E.g., QT += declarative should be changed to QT += declarative quick and #include <QtDeclarative/qquickitem.h> should be changed to #include <QtQuick/qquickitem.h> and similarly for the other QtQuick classes. In order to give existing projects a chance to migrate smoothly, we should issue a warning and automatically add the QtQuick module if only the QtDeclarative module was specified. (If a project doesn't use any QtQuick APIs, the warning can be ignored -- but there is no way to disable it.) This change, along with the compatibility headers in QtDeclarative, make it possible to build existing projects without any modifications on the project's side. This change will be removed at a later time; when that happens, existing projects that did not port to the QtQuick module will no longer build. Change-Id: I56abcadc1e5c74490527fc03646310d801bfc084 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Implement QDir::removeRecursivelyDavid Faure2011-12-023-0/+131
| | | | | | Task-number: QTBUG-4592 Change-Id: I363e2c24d1c0ada975b8b927d7c6e776b8aae579 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* QSqlRelationalTableModel doesn't follow relations on the first columnHonglei Zhang2011-12-022-1/+56
| | | | | | | | | | QSqlRelationalTableModel doesn't follow relations on the first column of a table. The DisplayRole and the EditRole for indexes on column 0 are always the same. The bug is found in QSqlRelationalTableModel::data. Task-number: QTBUG-20038 Change-Id: Ie1e98b5f46ffc171113f2d51b9b19ff5febb1c3c Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Added minimal class docs for QWindow to make it visible.Gunnar Sletta2011-12-021-0/+20
| | | | | Change-Id: Ibed2279ba5454547fb4060005e805a11221b3732 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Make the Qt5 part of the target name namespace style.Stephen Kelly2011-12-022-11/+11
| | | | | | | | As it was in Qt4 and discussed on the cmake list. Change-Id: Ide77c2525a261a5d658d7cb661010a67d3386341 Reviewed-by: Clinton Stimpson <clinton@elemtech.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Remove cast and assignment operators from QAtomicInt and QAtomicPointerBradley T. Hughes2011-12-024-221/+10
| | | | | | | | | | | | | | | | | | | This is a source incompatible change. There is concern that the convenience of the implicit cast and assignment operators can lead to misuse. Several commits have already been done that remove excess use of the implicit cast, which is a *volatile* read every time it's used. Users of the QAtomic* API should have to think about when they are loading the value, and if they do or don't need the acquire memory barrier on load. The code that people would write using this API is meant to be multi-threaded, concurrent, and correct. The API should not allow them to inadvertently, possibly unknowingly, shoot themselves in the foot. SC-break-rubber-stamped-by: Lars Knoll Change-Id: I88fbc26d9db7b5ec80a58ad6271ffa13bbfd191f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Cocoa: Handle accessible interface children.Morten Johan Sorvig2011-12-021-2/+27
| | | | | | | | Implement AccessIbleChildrenAttribute and accessiblityHitTest. Change-Id: Ia9fa80e3015edbb969d173a2587cb53b9c69852e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Don't inherit QAccessible from QWindowsAccessibleJan-Arve Saether2011-12-021-27/+27
| | | | | | | Qualify all references to QAccessible members with QAccessible:: Change-Id: Ia78d8482bbab3d77c9e258a52bc74f8e7c0c7e10 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Windows: Stabilize qpauseanimation test.Friedemann Kleint2011-12-021-8/+65
| | | | | | Change-Id: I93b470d89009d4573cbe3ec5018cddc40f4a4623 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Update documentation for QTest::qExec()Jason McDonald2011-12-022-14/+16
| | | | | | | | | Update the documentation to make it clear that regular test applications should not call QTest::qExec() more than once. Also minor rewording of description of return value. Change-Id: I45bdf520ed10fd3c9232847a0ec0bc2b32d4caf3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Clean formatting.Frederik Gladhorn2011-12-022-14/+15
| | | | | | | | Remove extra spaces, remove virtual keywords. This code was simply inconsistent with the rest. Change-Id: Iec8e9542dd4c458ddd535cb1766c90c18051686a Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Accessibility: table2 -> tableFrederik Gladhorn2011-12-029-200/+159
| | | | | | | | Rename the new interface after the old one has been removed. This interface is very close to the IAccessible2 Table2 interface. Change-Id: I8659232189fe0e8307151c743727de425c30ac9a Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* syncqt: Create deprecated headers that work with MSVCKent Hansen2011-12-021-1/+5
| | | | | | | | | MSVC doesn't understand the #warning directive; use #pragma message instead. Change-Id: I42fe43269f5a84559a983932737c9eeb6b74b1ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Revert "Add QObject::objectNameChanged(const QString &objectName) signal"Martin Jones2011-12-024-28/+22
| | | | | | | | | | | This reverts commit ba635d7e74472f3a54c0c4686966af46d9035c6f. Breaks tests in declarative: tst_qdeclarativeecmascript::deleteLater tst_qquickvisualdatamodel::objectListModel Change-Id: I467b45109332e66fc62f3de00f376b1b88ab19ca Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* directfb: Introduce EGL integration for DirectFBHolger Hans Peter Freyther2011-12-028-4/+327
| | | | | | | | | | | | Introduce a new platform called 'directfbegl' that allows platform integration with EGL. Change the QDirectFbIntegration to make it more easy to hook up in the creation process, introduce an EGL integration with custom screen, window and EGL Platform Context. Vendors might need to add custom code to initialize EGL to be used with DirectFB, this can be done in QDirectFbScreenEGL::platformInit. Change-Id: I7bee277ede27c72437cd7c5977fa6ed85e65f538 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* directfb: Use QT_BEGIN_NAMESPACE/QT_END_NAMESPACE around the codeHolger Hans Peter Freyther2011-12-029-0/+32
| | | | | Change-Id: Iabf32130dcfe4f5a383e9c99f661ded176432817 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* directfb: Move the macro to the qdirectfbconvenience header fileHolger Hans Peter Freyther2011-12-022-5/+6
| | | | | | | | We will need to have logging outside of the blitter code, make the macro available to everyone. Change-Id: I811ecb98a870a818630276b5daa788790db71ccd Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Windows: Fix qabstractfilenengine-test.Friedemann Kleint2011-12-011-2/+16
| | | | | | | | | | | The test fails if the repository is checked out with Windows line endings. Try to work around. Basically, ensure that common developers can conveniently run the test. Change-Id: I91f31b830ba7ba305deea782737d4e07a89420eb Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Remove action enum.Frederik Gladhorn2011-12-011-17/+0
| | | | | | | | This is a left over from the old way of handling accessibility actions. Change-Id: I1146f3dfec2b842f83a3cdd264e4ebb1013cc517 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Compile.Morten Johan Sorvig2011-12-014-32/+30
| | | | | | | QAccessible and QtQuick API changes. Change-Id: I5e329543937f9dd4b68dd01321c475149df4678c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Make cell a proper QAccessible2Interface.Frederik Gladhorn2011-12-015-40/+54
| | | | | Change-Id: I9b245037e8448f39ed2cb80d1ef5fb0714173518 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Rebuild configure.exe.Friedemann Kleint2011-12-011-0/+0
| | | | | | | | | | | | | | - Build tests by default b8f6ad4d1f081780e9c108cd96007a924c596d14 - Added build system support for installing tests 9ffd7a339f0da644c95e71583134263c06745ed5 - Add V8 snapshot support 52ef2ee57fd75640aebdb7578aefb5303547dcc7 - Reduce size by using -O1 76f2b0ab50df3fa7fb1e74662f08228ef1d54106 Change-Id: I3569a1e0550669154ca4da5eaff23d401556e4a6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* v8: Be able to build V8 for MIPSHolger Hans Peter Freyther2011-12-012-1/+23
| | | | | | | | Add mips to the list in configure and the v8.pri, build the existing MIPS files. The result has not been verified to work. Change-Id: I0f4fd29cd9752d32b6d87e0df0e888822f40ac0a Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add QObject::objectNameChanged(const QString &objectName) signalBradley T. Hughes2011-12-014-22/+28
| | | | | | | | | | | | | | | | | | | This is sent when the object's name changes. tst_moc must be updated since the method count of QObject has changed. The test assumed that there were 4 invokable methods in QObject. The new signal is the 5th, which breaks the test's assumptions. Fix this as well. tst_QObject must be updated since the QObjectPrivate::isSignalConnected() method only supports the first 64 signals. With the addition of this new signal, sig61() in the test becomes the 65th signal, and will always appear connected now. Task-number: QTBUG-13999 (related) Change-Id: Ie87893c71a231fafa7ccf2f16102238a7be8327a Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Pass the tests when run in visual studio.Stephen Kelly2011-12-012-0/+4
| | | | | | | | Make sure the name of the project corresponds to the project name passed to try_compile so that the .sln files are created. Change-Id: Ifee24ac4ab6a16a538bdf7fb32ea252eb1ba436a Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Fix QTcpServer::serverAddress() for dual stack socketsShane Kearns2011-12-014-1/+70
| | | | | | | | | | When listening on QHostAddress::Any, serverAddress() should return QHostAddress::Any too, assuming that setting the socket options was successful. Task-number: QTBUG-22899 Change-Id: I50a9ff1b4ad0c1c1905e2952c595d7068df2627d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Tests: Temporarily remove qsound.Friedemann Kleint2011-12-011-0/+2
| | | | | | | As the test does not link Windows. Change-Id: I07ce2381146e43aef4353ddb2625ac472e6a0555 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>