summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow arthur tests to use private headers.Jason McDonald2011-05-205-5/+5
| | | | | | | | | The tests include qapplication_p.h, therefore the .pro files need to specify QT += core-private gui-private Change-Id: Icd6d7ba31f79b8c7b15e0327dd5ce44c7f486221 Reviewed-by: Rohan McGovern
* Remove mention of qt3support in makeselftestJason McDonald2011-05-201-1/+0
| | | | | | Change-Id: Ie081d3a543ff30e3e58e154cbfea57a29bb24210 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support test data from lancelot testJason McDonald2011-05-201-60/+0
| | | | | | | | The data was already commented out and thus unused. Change-Id: I234cea542bbacf429b6cb1fc0c9feec4f80e47e5 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from algorithms autotestJason McDonald2011-05-202-389/+1
| | | | | | | | | | | | | | qHeapSort and qBubbleSort were Qt3 functions that were replaced by qSort. During modularization, the Qt3Support header containing these routines (q3tl.h) was moved into the algorithms autotest, presumably because that was the only thing that still included the header. However, as these routines are not part of Qt5, they don't need to be tested anymore. This commit deletes the q3tl.h header and the test functions that tested it. Change-Id: I52eed7b4b4db3bd671dc6dbd752642bc9e783c30 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Don't link qt3support lib in QMessageBox autotestJason McDonald2011-05-201-2/+1
| | | | | | Change-Id: I0126dc790e88639ad524cdf719ced2a444df9b71 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QVariant autotest.Jason McDonald2011-05-201-62/+34
| | | | | | | | | This commit removes the four columns of test data that were only used for testing Qt3Support features. Change-Id: I93116b64ac49b0d6812595dfd58962ba8afbdad1 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove obsolete test dataJason McDonald2011-05-20980-408/+0
| | | | | | | | | Remove test data for Qt3Support functions from the QTextStream autotest. The code that used this data was removed in an earlier commit. Change-Id: I26e34cdefd47287c6992cf1d31276a40994c607c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QMenuBar test, part 2.Jason McDonald2011-05-201-93/+85
| | | | | | | | | Follow-up to previous commit: remove the "_noQt3" suffixes on test function names and the "_Qt4" suffixes on variable names. Change-Id: I000e87357b025930b0065efc1d0de05c2cd07bba Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* New configure.exe binaryMarius Storm-Olsen2011-05-191-0/+0
|
* Full translucent background support in xcb and xlib backend.Samuel Rødal2011-05-197-12/+55
| | | | | | | | | Make sure to pick an alpha visual also for non-GL surface types, and to ask for alpha in the window format if the WA_TranslucentBackground attribute is set. Reviewed-by: Janusz Lewandowski (cherry picked from commit 6241e39cff9311c943430ff2f31236b13618f2ac)
* Lighthouse xcb and xlib: Add support for transparency of GLX windows.Janusz Lewandowski2011-05-1910-25/+78
| | | | | | Merge-request: 1231 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> (cherry picked from commit a3b627e1c5ce03a2500ab35c64729b1995639dcc)
* Lighthouse minimal: Add support for transparencyJanusz Lewandowski2011-05-192-3/+3
| | | | | | Merge-request: 1231 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> (cherry picked from commit c15b41056e60abdbb4d835e27a360f01be618a4f)
* Compile fixes for Xlib plugin.Samuel Rødal2011-05-194-15/+13
| | | | (cherry picked from commit 4af11f2c6666c55657569f946c33816f33711225)
* Don't crash if windowmanager is not initializedLasse Holmstedt2011-05-191-1/+2
| | | | | | | This can happen if there is e.g. no wayland server. Reviewed-by: sroedal (cherry picked from commit aea5e35f57d061b133d2fa613d10f5e0118f5706)
* Compile fix for 64bit Linux.Friedemann Kleint2011-05-191-1/+1
| | | | Reviewed-by: Thiago <thiago.macieira@nokia.com>
* Tests: Fix some compile warnings.Friedemann Kleint2011-05-1940-49/+76
| | | | As they are now compiled by default.
* Wayland: send surface id + process id pairs to compositorLasse Holmstedt2011-05-199-1/+324
| | | | | | | | This enables doing window/process management since we can now actually map the process we've launched to a window. Reviewed-by: Samuel Rødal (cherry picked from commit 457c33d9fd308542c9290fd60bf86960f9251255)
* Remove warning from QColor::setNamedColor().Samuel Rødal2011-05-192-4/+1
| | | | | | | | | | | This warning is pointless as the user can anyway check if the color is valid after making the call by calling isValid(). Using isValidColor() could be used but it has a big performance overhead as validation then needs to be done twice. Task-number: QTBUG-19098 Reviewed-by: Erik Verbruggen (cherry picked from commit a423ff5474b89028eeca95b254f5184311c8223b)
* Fixed compile of qdrawhelper_neon.cpp.Samuel Rødal2011-05-191-1/+1
| | | | | | | | We need to use the quad-word intrinsic and reinterpret the cast to a signed int vector. Reviewed-by: Kim Motoyoshi Kalland <kim.kalland@nokia.com> (cherry picked from commit d2d7aef223a3bad368c6b7c7f7f4617f4acf323c)
* Compile IPC tests.Friedemann Kleint2011-05-191-0/+1
|
* Always call XInitThreads.Gunnar Sletta2011-05-191-2/+2
| | | | | | | | | Any Qt application that embeds a QSGView needs to call this because of the threaded renderer. Today applications that use threaded GL silently fail. In a few weeks time, the refactor branch will be merged, which will obsolete this change, so it is a temporary measure to get tests and examples running.
* Remove redundant #ifdef's from benchmarksJason McDonald2011-05-1923-158/+13
| | | | | | | | Preprocessor directives that refer to QT_VERSION's less than Qt 5 are redundant in the qt5 modules. Change-Id: Id3a9c5f0ba07b72d1c99e51c12a240570bf0d58e Reviewed-by: Rohan McGovern
* Improve coding style of qdatastream testJason McDonald2011-05-191-525/+520
| | | | | | | | Expand literal tabs and format switch statements in accordance with the Qt Coding Style. Change-Id: I64e638b730f4be2bc707136b1b7e5585d6808731 Reviewed-by: Rohan McGovern
* Don't use Qt3Support in arthur test suite.Jason McDonald2011-05-1910-230/+1
| | | | | | Change-Id: I5acc05aeb7db5aedbbe35594f46d614319a299b2 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QMenuBar autotestJason McDonald2011-05-191-465/+0
| | | | | | Change-Id: I63677bfe56ec92c1c96e2df5619ee434bdc91fdb Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QSplitter autotestJason McDonald2011-05-191-657/+2
| | | | | | | | | Note that the functions suffixed with a 3 were actually the Qt4 versions, which is why this patch looks strange. Change-Id: Iec874153248f57b8696a289cb13eb60fecc5699c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QSharedPointer autotestJason McDonald2011-05-192-11/+6
| | | | | | Change-Id: I1bb3752e3a5101e4a2990d0cac01406e6023ee2e Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support code from QComboBox autotestJason McDonald2011-05-191-19/+5
| | | | | | | | | This commit removes the second-last column of test data (labeled testQt3Support) of the insertItem test function. Change-Id: I2158bdb5a77c9eaf1424998f51fb03a8df934490 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Remove Qt3Support test code from accessibility autotestJason McDonald2011-05-191-1007/+0
| | | | | | Change-Id: Id31836ea52da71b40c0bcbb67d9beffc70b90400 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* tests: allow unstable tests to be marked with CONFIG+=insignificant_testRohan McGovern2011-05-191-0/+4
| | | | | | | | | | Marking a test with CONFIG+=insignificant_test will cause the exit code of the test to be discarded during `make check'. This is intended to be used for tests which are valuable to run, but are known to be unstable and are not feasible to immediately fix. Reviewed-by: Jason McDonald Change-Id: I50a712c33c2ebb0af39f1ea0bf2adef7f0936425
* Remove Qt3Support code from QDataStream autotest.Jason McDonald2011-05-191-293/+9
| | | | | | | | | QWMatrix and QColorGroup were Qt 3 classes and QPalette is substantially different in Qt 3 and Qt 4. Change-Id: Iee176fcf237c3f9ac2ffd7f1fd9e4963dc4df39c Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* tests: fixed compilation of tst_qtextstreamRohan McGovern2011-05-191-1/+1
| | | | | | | | Compilation of this autotest was broken by a strange qmake bug, QTBUG-19393. Work around it by putting a space between two string literals. Change-Id: I494c486dd11858eeaf98d7a04021c74fcf3cbba7
* QUiLoader, QAbstractFormBuilder: Introduce errorString().Friedemann Kleint2011-05-186-24/+110
| | | | | | | | | | | | Introduce errorString() to be able to obtain load errors in Qt Designer. Remove automatic Qt 3 form conversion from Qt Designer (since uic3 no longer exists) and move all form load error checking logic including language check into QAbstractFormBuilder. Make language accessible in FormBuilderExtra in case Jambi is revived. Reviewed-by: hjk
* Enable configuration for XcbEckhart Koppen2011-05-182-1/+25
| | | | | | | | The xcb platform plugin can now be enabled using -xcb at configuration time. A configuration time compilation check will be added at a later point. Reviewed-by: Samuel Rødal
* Fall back to using paths for large fonts in drawStaticText()Eskil Abrahamsen Blomfeldt2011-05-184-14/+68
| | | | | | | | | | | | | | QStaticText had an implicit risk which meant you had to make sure the text size did not grow unreasonably large. This was intended to avoid hiding the performance impact of using QStaticText for such a purpose, but it's too inconvenient. Thus, the same fall back as in drawTextItem() has been introduced. This will also fix a bug recently introduced when we started using the FT cache to draw static text in the raster engine, since this will fail for large fonts. Task-number: QTBUG-19084, QTBUG-19370 Reviewed-by: Jiang Jiang (cherry picked from commit 0aa9b30432cec3b7f366983f451fc9a7f8f83243)
* Add ability to work around non-standard GLES implementationsPaul Olav Tvete2011-05-181-3/+3
| | | | Reviewed-by: Gunnar
* Fix broken drawing with large fonts using QStaticText and FreeTypeEskil Abrahamsen Blomfeldt2011-05-181-1/+1
| | | | | | | | | | | | | In FreeType, there's a fall back to QFontEngine::alphaMapForGlyph() when the fonts are very large. Since this uses a QPainterPath containing an unhinted glyph, the use of hinted metrics would sometimes lead to the glyphs being clipped because they would be positioned slightly outside the image they were painted into. When outline drawing is on, it makes sense to return unhinted metrics, since the glyphs we will actually use are unhinted. Task-number: QTBUG-19067 Reviewed-by: Jiang Jiang
* Remove Q_ASSERT's from qdbustype autotestJason McDonald2011-05-181-4/+4
| | | | | | Change-Id: I276750d8acda3744ee8a9c424b2da0a08e8c7461 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove autotest code for Qt3Support library.Jason McDonald2011-05-1837-3939/+45
| | | | | | | | | | This commit deals with the simple cases -- mostly just removing blocks of code enclosed in #ifdef QT3_SUPPORT. Later commits will deal with the trickier cases. Change-Id: I280dea25b3754be175efe62fc7e5e4e7c304e658 Task-number: QTBUG-19325 Reviewed-by: Rohan McGovern
* Make QDataStream test compile and re-enable itJason McDonald2011-05-185-8399/+9
| | | | | | | | | | This test can't use svg files as QtSvg is a separate module, on which qtbase does not depend. This commit changes the test to use a pixmap that was already present in the test. Change-Id: Iab4ce70aa376a7d2985b69816bd251ce4f5d46cf Task-number: QTBUG-19244 Reviewed-by: Rohan McGovern
* Reduce usage of Q_ASSERT in autotests.Rohan McGovern2011-05-1822-172/+160
| | | | | | | | | | | | Using Q_ASSERT does nothing in release-mode builds, and in debug builds it causes tests to terminate prematurely. It is much better to use QVERIFY or QCOMPARE. Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551) Change-Id: Ic39972b685ca35a9a71d9c8d03e8dae31481fb19
* Fixed license header.Rohan McGovern2011-05-181-0/+42
| | | | | | (cherry picked from commit 2caea6081fc46217636f0ab70d09891efd2d2864) Change-Id: I086c8cb2d0ccc691d8af68804132f048bee7fa4b
* Remove Q_ASSERT's from qsharedmemory autotestJason McDonald2011-05-182-2/+4
| | | | | | | | | Report a fatal error rather than ignoring the error in non-debug builds. Change-Id: Ib6ef993e6e0c65bd9adea994ea7b454cc147f3d4 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 637456edef085d1825f15429cd921f2f0d4bd6a2)
* Remove Q_ASSERT's from QNetworkReply autotestJason McDonald2011-05-181-7/+11
| | | | | | | | | | Rather than aborting in debug builds and failing mysteriously in release builds, report fatal errors in all builds. Change-Id: I020b06e19b7ffc8ae4413e1756259f4ca608f253 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit bbfefe1b764cd41b7e677f26621fb6e76a67f9d7)
* Remove Q_ASSERT from QXmlStream autotestJason McDonald2011-05-181-3/+3
| | | | | | | | | | | Report a meaningful fatal error if an unknown token type is encountered rather than ignoring the error in non-debug builds and reporting an uninformative message in debug builds. Change-Id: Id219f3c7cbd4ba3e9875cb81f833720d5d153132 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 1c85fc559ee456a165527d23cb1b7dc237f5504b)
* Remove Q_ASSERT's from QXmlStream autotestJason McDonald2011-05-181-5/+10
| | | | | | | | | Report fatal errors rather than ignoring them in non-debug builds. Change-Id: I62dd177e2f391e64c12314bf224f8952ed6f3144 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 4793c3bd1dfddcc98eae12e5caf29ff6aabd31b2)
* Remove Q_ASSERT from QItemModel autotestJason McDonald2011-05-181-1/+2
| | | | | | | | | | | If populateTestData() would return an invalid model index, report a meaningful fatal error rather than failing silently in a release build and aborting with an uninformative error message in a debug build. Change-Id: I96820429a25ce5c4eb375d50e7e1f672851e26e6 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 984a72a8bbf853059f0eb7e1054538b48d5f3bc8)
* Remove Q_ASSERT's from QXmlStream autotestJason McDonald2011-05-181-6/+8
| | | | | | | | | Report fatal errors rather than ignoring them in non-debug builds. Change-Id: Ieafc58f3603fa953f4a963394039e613dcd442fb Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 6e3fcd6ff50e6435fd90629ed695196d25312ffc)
* Remove Q_ASSERT from QVariant autotestJason McDonald2011-05-181-6/+9
| | | | | | | | | | | I missed one Q_ASSERT in the previous commit. Also changing to use Q_FUNC_INFO instead of hard-coded function names in the warning messages. Change-Id: I0ff5b2b2cda02597836beb5d2811fa8dd2a344ab Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit 74a4aad171b39018d596b99684286b9426a091a5)
* Remove Q_ASSERT's from QTreeView autotestJason McDonald2011-05-181-2/+4
| | | | | | | | | Report fatal errors instead of failing silently in non-debug builds. Change-Id: Ieaff30b71dba2a385a5fffc93d2a8c0f5864aa18 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern (cherry picked from commit e12b912de89088a307c3519a01198a5314b8dd1a)