summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Delete pointer if it is no more used...at-v3.6.0at-3.6Christian Stenger2015-12-091-2/+3
| | | | | | | ...and postpone creation of the newItem object a bit. Change-Id: Id2322dcaae33cd902267dc73d2929db06880e20c Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix missing handling for xml tagChristian Stenger2015-11-271-0/+9
| | | | | | | | Without this we're running into the QTC_ASSERT within the default case. ("unexpected cdatamode...") Change-Id: I75b3b1ff08ff11064042cd2a877bcfe373b46e45 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add plugin unit test for data tagsat-v3.6.0-rc1Christian Stenger2015-11-133-6/+27
| | | | | | Change-Id: I765989cd18c3aff0b8bbc81e4e303e9354e327b7 Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix data tag support for split header and sourceChristian Stenger2015-11-131-1/+5
| | | | | | | | | If data functions where defined inside the source file when having source and header split they were simply ignored. Change-Id: I6d32d3c721f656797a78d3ea740c102d6b93ec88 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Don't display checkboxes for data tags...Christian Stenger2015-11-032-0/+2
| | | | | | | | ..as they can't be (un)checked at all. Might make sense later on but at the current state of data tag support they're completely useless. Change-Id: I3b2b79e1d2aa445fcd12d6794151d1833040aa76 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix potential crashChristian Stenger2015-11-031-4/+0
| | | | | | | | | There's no need to call beginXYZ() or endXYZ() on our own as this is done by TreeModel. Change-Id: I647f280a45c5f3ebb191a8e945c423eed22d677c Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix support for data tagsChristian Stenger2015-11-021-5/+4
| | | | | | | | | Functions defined within the declaration or inside a namespace had no qualified name stored by the visitor. This lead to ignoring them when creating the respective TestTreeItem. Change-Id: Id57c0c492a0cba460aa2d47dc7283bb1ac6e4aa6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Fix potential access beyond array end.Christian Kandeler2015-10-261-1/+1
| | | | | Change-Id: I81b3903858a9072ba2a4ac9e2df572c02fdb9281 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Fix warning about comparing an enum to an integerat-v3.6.0-beta1Tobias Hunger2015-10-141-1/+1
| | | | | Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Quieten warning by the code modelTobias Hunger2015-10-091-0/+1
| | | | | | | QDebug is considered a forward declared type only. Change-Id: Icd3d544dee04d81bb7087fe6f0153949afad3f10 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Use QXmlStreamReader to parse test run outputChristian Stenger2015-10-094-175/+176
| | | | | | | | Using the QXmlStreamReader will be easier to extend current functionality and should be more robust than parsing on our own. Change-Id: I9e1df7083a1af7681987f3971550e19a35b29df9 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Simplify conversion from/to Result::TypeChristian Stenger2015-10-084-67/+24
| | | | | | | Additionally rename enum value UNKNOWN to INVALID. Change-Id: I08dc4e371afb576db10716eda00ff6368f9d2311 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Re-use QC's TreeItem/TreeModel for TestTreeItem/TestTreeModelChristian Stenger2015-10-084-241/+93
| | | | | Change-Id: Ied35f808311392dcace1dca35796223369b37e0b Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Remove unused codeChristian Stenger2015-10-082-16/+0
| | | | | Change-Id: I12eb0ea78355e651fc4d904171dcdf49907b35b5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Move data handling almost from model to itemChristian Stenger2015-10-085-102/+108
| | | | | | | | Part of preparing to re-use QC's TreeModel/TreeItem for TestTreeModel/TestTreeItem. Change-Id: I3752d800d836a5cd9067cacfcd181d93ec957095 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix keyboard handling on results paneChristian Stenger2015-10-081-0/+1
| | | | | Change-Id: Ib9a8d600af122bf0d6ed2cc7a63badc90fb88d43 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Remove unused codeChristian Stenger2015-10-023-17/+0
| | | | | | Change-Id: I5a5f41222a572f1ae3662e5c48c72b4a6adfbc13 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Use pointers for test tree itemsChristian Stenger2015-10-026-70/+75
| | | | | | | | Part of preparing to re-use QC's TreeModel/TreeItem for TestTreeModel/TestTreeItem. Change-Id: I8699405c3dcad88df67171af2d542bc8e3fd2fc0 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Let TestTreeItem handle its parentChristian Stenger2015-10-024-20/+17
| | | | | | | | | Part of preparing to re-use QC's TreeModel/TreeItem for TestTreeModel/TestTreeItem. Change-Id: Ieab26e9061790dd4c3d8dc64ce292727a17977f7 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Simplify check state handlingChristian Stenger2015-10-021-12/+1
| | | | | | | | | Data functions and special functions cannot be checked at all, so there is no need to inherit the state by its parent. Change-Id: If72f79ef6bcd77628916bd7fbe137faa5555db41 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Use QC's TreeModel for TestResultModelChristian Stenger2015-10-0212-213/+369
| | | | | | | | | This changes the model to be a real tree instead of a list. Additionally the results pane now displays the results as tree as well. Change-Id: I69ba7bbfcd75ce17c3a0d4052498d9c1c7382d43 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add capability to store/copy output from results paneChristian Stenger2015-09-092-8/+114
| | | | | | | Change-Id: Ie32a374cac851009df3d2289f471bbb697788198 Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add 'Run This Test' capability to data tagsChristian Stenger2015-09-092-2/+15
| | | | | Change-Id: I3eb99f0a0652053cb05a3457a37ff335bab5580b Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Move duplicate code into functionChristian Stenger2015-09-042-64/+41
| | | | | Change-Id: I48e3187acb53159c16c7884a96ebdb831571b830 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Cache some information to speed up handling of large outputChristian Stenger2015-09-042-40/+46
| | | | | Change-Id: I93c37566af029028dc40e5eb48a398eb9c7fff7c Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-09-011-0/+2
|\ | | | | | | Change-Id: Ic17fb734d1df5a9ff6b4dba52125739d127ffb88
| * Fix getSelectedTests() for Quick Tests having special functionsat-v3.5.1at-3.5Christian Stenger2015-08-241-0/+2
| | | | | | | | | | | | | | | | | | Quick Tests with special functions (init(), cleanup(),...) must not try to execute these functions explicitly. Change-Id: Ia9a4e9c2788110bb61a70796b0e3a4b9b2091a49 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* | Add basic support for data tagsChristian Stenger2015-08-317-15/+234
| | | | | | | | | | | | | | | | | | This enables displaying data tags for data functions inside the test tree. Clicking on the data tag opens the editor at the location the respective QTest::newRow() call is done. Change-Id: Ia91bf87437c2608a05bae88ed715711217685fdf Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Store location of definition of functions...Christian Stenger2015-08-242-4/+15
| | | | | | | | | | | | | | | | | | ...instead of declarations. Declarations will now be used only as fallback if definition cannot be found for some reason. Change-Id: I1b79622e70d2227cd715f3d82b12f36997080a2e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-08-201-1/+1
|\ \ | |/ | | | | Change-Id: I55acdb9ad3d475ceb09c172555445d2da756c9d6
| * Preferences: Options page needs unique IDat-v3.5.0Robert Loehning2015-08-101-1/+1
| | | | | | | | | | | | Task-number: QTCREATORBUG-14742 Change-Id: I81f21ac5ccd4d0d2e5775e7d816bfd91ef927e84 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Remove unused codeChristian Stenger2015-08-192-9/+0
| | | | | | | | | | Change-Id: If90c6f9f1a33242ef2a33447cf4cff0b706bc0ea Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Add logging capability to code parserChristian Stenger2015-08-191-7/+40
| | | | | | | | | | | | | | | | | | Helps to get more information when something goes wrong. Can be enabled by setting QT_LOGGING_RULES to qtc.autotest.testcodeparser.debug=true Change-Id: Ic168029912f8af509d6a822440658225c7f04eab Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Fix postponing when code model is parsedChristian Stenger2015-08-171-0/+2
| | | | | | | | | | | | | | | | | | If postponing a full parse unset an already postponed partial parse otherwise we could run into the Q_ASSERT statement inside onPartialParsingFinished(). Change-Id: Iee197f1e16496ea87975d5ead0e43953353ab9a7 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Remove useless codeChristian Stenger2015-08-172-12/+0
| | | | | | | | | | | | | | Introduced with 4fbc020ddc8d353aba8c2c3c79223eaf09be573e Change-Id: I28b6b7ea0cfdcc670e83e1114c546d00231a7027 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Add qbs project files to unit testsChristian Stenger2015-08-0616-0/+232
| | | | | | | | | | Change-Id: I27918b0beaa39926c13dbf54e1479502a598a598 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Be more generic regarding supported project typesChristian Stenger2015-08-066-78/+53
| | | | | | | | | | | | | | | | | | | | | | This removes the hard dependency on QmakeProjectManager. Furthermore now unneeded code is removed and some parts of the parsing are slightly modified to support other project types than qmake based projects. Change-Id: I1c23056d5a444ddea857e10fdb71264eb6ecc269 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Ensure we do not interfere with ourselves while parsingChristian Stenger2015-08-063-17/+36
| | | | | | | | | | Change-Id: I4e22e91273737321e7dbfa10e50b4ae1f4ee63f9 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Consolidate duplicate codeChristian Stenger2015-08-061-18/+2
| | | | | | | | | | Change-Id: I0cae5df1b1f5a8ddab063dc37e1dcd0cb97701a0 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Move signal emission to where it belongsChristian Stenger2015-08-051-1/+1
| | | | | | | | | | Change-Id: I85dc5793887e3a26bc86fc6615aa3167054ae58a Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-08-0415-45/+49
|\ \ | |/ | | | | Change-Id: I8dffae0c2c62f6a6a3bfa5642c079fc9bad1412d
| * Fix deployment when using build scripts againat-v3.5.0-rc1Christian Stenger2015-07-231-2/+4
| | | | | | | | | | Change-Id: If4180b1f79c51bdf38ac99e5eb9acebb3b3342bc Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Fix deployment of wizards on OSX when using build scriptsChristian Stenger2015-07-221-1/+4
| | | | | | | | | | Change-Id: I9e1c223173c0a4e0f77d2c7642cf2d81010c1ff1 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Fix deployment of wizards on OSXChristian Stenger2015-07-1710-5/+7
| | | | | | | | | | | | Task-number: QTCREATORBUG-14490 Change-Id: I41d214f96ce60b2e268585b1b740f47915b0d3df Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
| * Don't use qApp->processEvents() if not necessaryChristian Stenger2015-07-165-40/+37
| | | | | | | | | | Change-Id: I2e92341530f3d79f9c0b47f2007750582db9a361 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* | Rename member to better reflect its meaningChristian Stenger2015-08-032-11/+10
| | | | | | | | | | Change-Id: I50a1f0ff69f638fceae4887c64be52f7d5b92822 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Remove useless currentProject() functionChristian Stenger2015-08-031-15/+8
| | | | | | | | | | Change-Id: I63598256b27a310231935104e6f7beb5ffe0eed7 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Merge remote-tracking branch 'origin/3.5'Eike Ziller2015-07-0112-140/+265
|\ \ | |/ | | | | Change-Id: If5eacbdd8f9cd07b7be028c3b04256e9d5368b83
| * qbs build: Soft dependency on LicenseChecker.at-v3.5.0-beta1Christian Kandeler2015-06-261-2/+1
| | | | | | | | | | Change-Id: Ibb1f4ee5996306fe24df72b0cf16d5652a76bc57 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
| * Make licensechecker dependency optionalKai Koehne2015-06-253-3/+9
| | | | | | | | | | Change-Id: Ia353ef7065dbd7dd3ff1f3a9293613cf7f14ce37 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>