summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.12.1' into 5.12Qt Forward Merge Bot2019-01-189-0/+61379
|\ | | | | | | Change-Id: I8ea54fdacbda23e07d79a543e3c70c0a02cf5092
| * Move QML documentation example to QDoc testsPaul Wicking2018-12-236-0/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The import and types contained in the example ends up in reference overviews. This causes confusion among users. The example serves its purpose better as a QML project to generate documentation from as tests for QDoc. Moving the example to tests/auto/qdoc will exclude it from ending up in the online docs. This will also keep the git history cleaner than readding the same files as a separate commit later on. Task-number: QTBUG-43904 Change-Id: I6e080d50319f235916cbd8e1dda3da7dba1dccd1 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
| * Add binary compatibility files for QtTools for Qt 5.12Milla Pohjanheimo2018-12-183-0/+60749
| | | | | | | | | | | | | | Binary compatibility files added. Change-Id: I62bc7eb3f791ceab63b492dcf62d1111653ebb1c Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* | lupdate: Add support for parsing C++11 raw string literalsPalo Kisa2019-01-092-0/+57
|/ | | | | | | | | | | [ChangeLog][lupdate] Added support for parsing C++11 raw string literals Task-number: QTBUG-42736 Change-Id: Ia246c7e7208580182a1e0413bb38bc2c8ff3f61e Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* lupdate: don't abort on prf execution errorsv5.12.0-beta4Oswald Buddenhagen2018-10-291-0/+2
| | | | | | | | | we report all messages with a "WARNING:" prefix specifically to indicate that the errors aren't supposed to be actually fatal in this context. Fixes: QTBUG-62478 Change-Id: I010abf34a216993af0d33d614345f6f562f0a10e Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* lconvert test: Try to avoid QProcess::waitForFinished() timeoutsFriedemann Kleint2018-10-271-0/+4
| | | | | | | | | | | Add a test for QProcess::waitForStarted() to separate out the startup time and catch startup errors, trying to avoid errors like: FAIL! : tst_lconvert::readverifies(kde context) 'cvt->waitForFinished(3000)' returned FALSE. (Process 1 hung) tst_lconvert.cpp(81) : failure location Change-Id: I8c23eae7255b39b6a7a7dc77b520fcb6c7d5e642 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Fix -Wold-style-castJesus Fernandez2018-07-311-5/+5
| | | | | | | | It replaces QCOMPARE with QVERIFY when comparing to booleans. Change-Id: I419edf1da0c1b205f88e672de386d7b5f2ce0627 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Unexport HelpProjectData and move it to helpgenerator app treeJarek Kobus2018-07-264-6/+16
| | | | | Change-Id: I5af687d5f7dd3fc886a33453b5613df062a8f5a2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Merge remote-tracking branch 'origin/5.11' into devFriedemann Kleint2018-07-251-1/+0
|\ | | | | | | Change-Id: I08932d5a2599831a4cc53f5a70709d7c3a27a35b
| * Make the "Copyright" field in attribution files optionalNicolas Ettlin2018-07-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Currently, the "Copyright" field in copyright attribution files is mandatory. However, this obligation should be lifted so we could later use README.chromium files with the qtattributionscanner tool (these files do not contain a Copyright field ; in these cases, the copyright owners can be found in the license file's body). Change-Id: I569f8cd5d3f20fc85e5fcb873601053327841dda Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Move the QHelpGenerator into the shared folderJarek Kobus2018-07-122-5/+7
| | | | | | | | | | | | | | Don't export it anymore. Change-Id: I5e3f00df9190d3284ae8169a3ce35ddb42d9be83 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Order contents items alphabetically by titleJarek Kobus2018-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | If many different doc versions are installed order them by version number in the reverse order (the bigger version in front) Task-number: QTBUG-21357 Task-number: QTBUG-59364 Task-number: QTCREATORBUG-10004 Task-number: QTCREATORBUG-17949 Change-Id: I8429c3d63fedf9811ea41ca13f754b677ff55a1e Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devLiang Qi2018-06-301-39/+0
|\| | | | | | | | | | | | | Conflicts: src/androiddeployqt/main.cpp Change-Id: I3df907e197b1b976f74562f1a9cce10261f166f3
| * Remove dead test - compilerwarningsJarek Kobus2018-06-221-39/+0
| | | | | | | | | | | | | | A follow-up of 9d078c8f147ea875e862360b0d7480201fbbcff7 in qtqa repo. Change-Id: I25b888e507d01dda8c059ea85b2902bfa8337a61 Reviewed-by: Liang Qi <liang.qi@qt.io>
* | Add support for the new QT_TR*_N_NOOP() macro familyMateusz Starzycki2018-06-252-0/+42
| | | | | | | | | | | | Task-number: QTBUG-3945 Change-Id: Ia29d97adaaf47539a19bd544729663dc893c5c14 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-123-0/+60554
|\| | | | | | | Change-Id: I0e5b9a8da16da4e03914cc5760108d4fa9d73bfe
| * Add binary compatibility files for 5.11 for QtToolsMilla Pohjanheimo2018-06-053-0/+60554
| | | | | | | | | | | | | | | | Files for bic test added. Change-Id: I4e395b0b351a8f569e28255a5a507fb391d041a1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-041-2/+0
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I91242ffea8752c3006c2aa28ac953ce74f4b6750
| * qtattributionsscanner: Make QDocModule, QtUsage entries optionalKai Koehne2018-06-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | For Qt modules these should really be filled, but they might not make sense in other contexts, like Qt for Python. Therefore make them optional. http://quips-qt-io.herokuapp.com/quip-0007.html should be adapted, too. Change-Id: Ic4837052f29df21291c4ffcde175e7ff0946d46a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Store the copy of the index inside the help collection fileJarek Kobus2018-04-232-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids having to open all .qch files at startup, which is slow and can lead to contention on open file handles. This change is backward compatible. The old help lib won't use the new tables. The new help lib will generate the new tables on first run or regenerate them when it detects they are not anymore in sync. Store also the timestamp info about the qch files and compare it upon every startup. If it doesn't match then new tables' data is regenerated. The case when running new Creator, then running old Creator and reconfiguring doc set and then running new Creator again should work properly. Task-number: QTCREATORBUG-18242 Change-Id: I7f656935ae2383b866b27e256eec23dab588efc5 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | lupdate: add support for c++17 nested namespacesOswald Buddenhagen2018-04-202-0/+24
| | | | | | | | | | | | | | | | Task-number: QTBUG-63364 Started-by: Mateusz Starzycki <mstarzycki@gmail.com> Change-Id: I492eecdc11a97d3cd8adc4caf6f20e536fc83bf7 Reviewed-by: Mateusz Starzycki <mstarzycki@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-04-097-8/+11
|\| | | | | | | Change-Id: Ifa1d05c3f578d04db599c68ec96ef343e293fd51
| * qtattributionsscanner: Add test modeKai Koehne2018-04-037-8/+11
| | | | | | | | | | | | | | | | Rename test qt_attribution.json files to qt_attribution_test.json. This avoids warnings when picking up the test files in normal mode. Change-Id: I8831a81c84986c074d3519d2855c00987b4c2570 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Remove CreationDate, it's not used anywhereJarek Kobus2018-04-061-1/+1
| | | | | | | | | | | | | | We use CreationTime instead. Change-Id: I64b256651b1a1c9094216db01f1d5a5c400cf44e Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-04-033-1/+13
|\| | | | | | | Change-Id: I88c539e807e21613fad838dc5230ab26994ed749
| * Add support for translation function aliases that are member expressionsSimon Hausmann2018-03-293-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | When traversing the AST for call expressions, it may happen that the base of the call expression is a field member expression instead of a plain identifier. For example with CustomTranslator.myTr() the base is a field member, with an identifier as base and myTr as name. We can construct a qualified name from that quite easily and this way support qualified tr aliases in qml files. Task-number: QTBUG-67278 Change-Id: I106243d8eed6d8cec75819a44942cf750de2829a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | Fix collection.qhcJarek Kobus2018-03-203-5/+5
|/ | | | | | | It was broken in 1cce97edb12e464071497ad535a8a85f4b3d83c0 Change-Id: I5702ecf4aaf3fb631cfe7205a5691de7109bfd81 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* lupdate: Read id attributes of .ui filesFriedemann Kleint2018-01-183-0/+79
| | | | | | Task-number: QTBUG-34610 Change-Id: I807752fc573b9e6965462f0cf4728673fe3f3c70 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Ensure that Nbsp characters are preserved by escaping themAndy Shaw2018-01-122-0/+13
| | | | | | | | | | | | Characters that are considered spaces, but aren't just ' ' should always be escaped so that the exact type of space that they are is preserved. Since QTextDocument::toPlainText() will convert QChar::Nbsp to ' ', we need to get the plain text from the handler directly and do our own conversion where applicable to stop it from replacing the Nbsp characters. Task-number: QTBUG-35652 Change-Id: I373edca92253ca5f978ba656c8ebbcaf77965e61 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Add OPTIONS parameter to qt5_add_translationKevin Funk2018-01-121-1/+1
| | | | | | | | | | | | With this it is possible to pass additional parameters to the lrelease command Change-Id: I8f552f1b965d6c03a9115753438d841aef181315 Task-number: QTBUG-44323 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: André Klitzing <aklitzing@gmail.com> Reviewed-by: Kai Pastor <dg0yt@darc.de> Reviewed-by: David Faure <david.faure@kdab.com>
* Add binary compatibility files for QtTools for 5.10Milla Pohjanheimo2017-12-143-0/+60554
| | | | | | | Files to test binary compatibility for 5.10 added Change-Id: I7eb4034e5aea519c8ecebcd6d75319a2647e0b19 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Fix problems when building with -no-feature-processUlf Hermann2017-09-123-24/+2
| | | | | | | | | | | Guard the QProcess includes, modernize some ifdefs, exclude tests and examples that don't work without processes, and use QT_CONFIG(process) rather than QT_BOOTSTRAPPED as discriminator where we are actually checking for QProcess support. Also, don't try to build linguist and designer without QProcess. Change-Id: I4e1c7485a96ff02f2f6241113add35e44dc54b1d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* qtattributionsscanner: Allow to use it for one single fileKai Koehne2017-08-283-11/+54
| | | | | | | | | | | | | This allows a saner use with qbs, where we can and should actually handle the dependencies correctly. In addition, this patch adds an optional '--basedir' argument that is needed to correctly root relative paths that are printed in the documentation. Change-Id: I0abf769ad5c0a3ac15b6907f83b77d369eb78d1f GPush-Base: 5c8d5742dc7b5e00a6aed447e8f288680b58e225 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Don't create unused IndexItemTableJarek Kobus2017-08-281-6/+0
| | | | | Change-Id: I0fa1ea9a1b6b6d1b1da481880f7a620284456487 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* lconvert: Add a -no-untranslated command line optionRobert Loehning2017-08-063-4/+48
| | | | | | | | [ChangeLog] Added option "-no-untranslated" to lconvert Started-by: hjk <hjk@qt.io> Change-Id: I79e5a67ec721c9bcd8ea25bb9ec8ad80f55a229d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Update binary compatibility files for Qt 5.9.0 for QtToolsMilla Pohjanheimo2017-06-303-0/+59591
| | | | | | | Binary compatibility files updated for Qt 5.9.0. Change-Id: Ie409f6cd8fed076cffbc16b6dc61f32b7e7828c0 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Revert "tst_windeployqt: Add --no-angle"Friedemann Kleint2017-06-091-2/+1
| | | | | | | | | | Re-enable testing ANGLE deployment. This reverts commit eeb08ff6408f803ae0eeb70bf3aa075157f12cb2. Task-number: QTBUG-56992 Change-Id: I019616a8858685b25c8e02f4f1081487ebb9f615 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix licensingJani Heikkinen2017-05-035-54/+39
| | | | | | | | | | | | - Remove unused license files - Switch old LGPLv21 license headers with GPL-EXCEPT one - Switch old LGPL3 license headers with LGPL one Task-number: QTBUG-57147 Change-Id: I36a5b5b823cede544f43ac8349b5db27f8df6abc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9Liang Qi2017-03-272-0/+14
|\ | | | | | | Change-Id: I73fad6fed560b8df8382cb9c17fe295a74ef3553
| * Fix lupdate to handle \u escapesEdward Welbourne2017-03-092-0/+14
| | | | | | | | | | | | | | | | | | | | It treated \u as u, which isn't correct. Instead, read the number following and convert, via QChar, to UTF-8 encoding in the byte array (that'll later be .fromUtf8()ed). Added a simple test-case. Task-number: QTBUG-35164 Change-Id: Ib23cc5e5fb98e6cb8715b4018545e40a40e271d0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* | windeployqt: Compile with QT_NO_FOREACHFriedemann Kleint2017-01-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Remove usage of foreach, replace by C++ 11 range based for. On this occasion, change all loops over QDir::entryList() to use QDir::entryInfoList() which is more efficient and makes path construction easier. Change-Id: I18b83fccdf497ca6b0466cacde876c795299b566 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-1218-14/+212
|\| | | | | | | Change-Id: I5431f85d563b6949f94d2008fc8dcf840b5c3397
| * qtattributionscanner: Support optional QtParts propertyKai Koehne2016-11-284-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'd like to differentiate between code that ends up in the Qt libraries or plugins, or code that only is added to examples, tests, or (host) tools. This can now be specified with the JSON property 'QtParts'. If 'QtParts' does not contain 'libs', the page will not show up in the list of attributions generated by module with e.g. \generatelist{groupsbymodule attributions-qtcore} nor in the global list generated by \generatelist annotatedattributions Instead, third party code in examples or tests can now be documented separately using e.g. \generatelist{groupsbymodule attributions-examples} and \annotatedlist attributions-examples Change-Id: Iba72f76b63e4435af54a61b7b4a2cf4617746ba6 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-0814-14/+201
| |\ | | | | | | | | | Change-Id: Ib403ca6ac5edf4c75e7fbdcd467601bdfe348e6d
| | * Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-11-0414-14/+201
| | |\ | | | | | | | | | | | | Change-Id: I4ee208f69bed72c480c636cb18f22fd88c02d1e5
| | | * lupdate: Add qrc resource file supportTakumi ASAKI2016-10-2511-0/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lupdate parses qrc files specified by the RESOURCES qmake variable or by command line options, and adds files in them as source files. [ChangeLog][lupdate] Added qrc resource file support Task-number: QTBUG-53206 Change-Id: Id7f952487ab11e062db9c5a419fb2ee3c4716740 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
| | | * fix test execution in dirs with spacesOswald Buddenhagen2016-10-252-6/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib99cf27f50f32eb23d278f5b9a9c279d10da4ece Reviewed-by: Jake Petroules <jake.petroules@qt.io>
| | | * deduplicate test command launching a bitOswald Buddenhagen2016-10-252-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pre-calculate the lrelease/lconvert path once. Change-Id: Ia1603db955ef08e61d123393f6e69c4653d8b6a9 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
| * | | attributionscanner: Allow to specify multiple filesv5.8.0-beta1Kai Koehne2016-10-273-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far 'Path' was used to specify a whole directory, or a single file. This introduces a separate 'Files' property, so that one can document that e.g. two specific files in a directory contain third party code. 'Files' should be relative to 'Path'. Change-Id: If4213d9a1b1ca706c49ed761027c6af86fbdc02a Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* | | | tst_windeployqt: Add --no-angleFriedemann Kleint2016-11-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deploy without ANGLE until renaming has settled. Task-number: QTBUG-56992 Change-Id: I94306869ac67849cc9068ec7ea5939866bdb6cdd Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>