aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/taskmodel.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/11.0'Eike Ziller2023-07-211-3/+7
|\ | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/taskwindow.cpp Change-Id: I1ba32d76f151df16f70e930cc713525017e3dd92
| * Issues: Prevent ever-growing sessionEike Ziller2023-07-211-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The session contains a list of disabled issue categories, and that was growing with each start of Qt Creator, accumulating entries for categories that are added as "disabled by default". When adding a category as "disabled by default", it would unconditionally append it to the list of disabled categories. This list is saved and restored at Qt Creator restart, and then, when the category is added by the code as disabled by default, it was appended again, now appearing twice. Use a set for the disabled categories internally to avoid this. Change-Id: I0e2fae92d5b78d6bcc13d946f27241ddb8da84b6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Tasks: Save TaskCategory objects in the modelEike Ziller2023-07-121-4/+3
| | | | | | | | | | | | | | | | So data can be accessed more directly, instead of going through individual methods categoryIds and categoryDisplayName. Change-Id: Idb36050762e507480ba69de6a32b5f6f9bec8b75 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Tasks: Create a container class for category dataEike Ziller2023-07-121-1/+3
|/ | | | | | | | Reduce the number of arguments that need to be passed around. Change-Id: I9fbfdcdf7b20f8f26e35f435bf8d65ba483e4114 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* SquishTests: Update reading build issuesRobert Löhning2023-05-311-1/+1
| | | | | | | | | | | Fixes tst_build_new_project, tst_CCOM02 et al. tst_tasks_handling fails which might be an actual issue, reported in: Task-number: QTCREATORBUG-29209 Change-Id: I5eae54df27d8ba8f441e5b9c4acdaa2b41716245 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Redo the TaskViewChristian Kandeler2023-04-181-1/+1
| | | | | | | | | | | - Make it a tree view. - Use the default delegate for top-level items. - If the task has details, show them in a child item. Fixes: QTCREATORBUG-28850 Change-Id: Iafd65496f916b9e382ef2c6ade0f9b3a323f63ed Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Allow multi-selection in issues paneChristian Kandeler2022-01-261-0/+2
| | | | | | | | | Users should be able to copy or remove several issues at once. Fixes: QTCREATORBUG-25547 Fixes: QTCREATORBUG-26720 Change-Id: I1ac75a3445c37200b6a01dd8c5d79d2b69c54a3c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Give build-related errors higher priorityChristian Kandeler2021-11-121-4/+6
| | | | | | | | ... in the issues pane. Fixes: QTCREATORBUG-23655 Change-Id: Id9dc2c3781d69e0d70b12bb9fe39ced85b3f2084 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-13/+13
| | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Output panes: Allow to invert the meaning of the filter fieldChristian Kandeler2019-12-021-2/+6
| | | | | | | | That is, show only the non-matching lines. Task-number: QTCREATORBUG-19596 Change-Id: Iac06a7c4531688dbf97c7d5c4d0cdb80979b5f95 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Issues pane: Show the right number of issues on the pane buttonChristian Kandeler2019-07-051-0/+1
| | | | | | | | | | | | While we do want to show contextual messages from the compiler, the number displayed on the button should correspond to the actual number of issues (i.e. errors or warnings), and should not include the notes around them. We used to do this correctly, but broke it in acd0d02e282f. Fixes: QTCREATORBUG-18490 Change-Id: Ib6b36f24b4f6bfe53ed5b977f0f88586c4d95b16 Reviewed-by: hjk <hjk@qt.io>
* Output panes: Respect filter optionsChristian Kandeler2019-06-051-0/+8
| | | | | | | | The UI elements for case sensitivity and regexp behavior had not been doing anything until now. Change-Id: Ie210103984fda64d4249c56f9a5b21200132108f Reviewed-by: André Hartmann <aha_1980@gmx.de>
* ProjectExplorer: Introduce a alias for QList<Tasks>hjk2019-05-281-2/+2
| | | | | Change-Id: I91391ad22b420926b0f512cac23cfe009048b218 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Use QSortFilterProxyModel for TaskFilterModelChristian Kandeler2019-04-081-29/+7
| | | | | | | | We used our own, hand-rolled filter model implementation for performance reasons, but benchmarking shows no difference. Change-Id: I076ffeffbd39b468308d48d23d15a69b966dbc23 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Add fallback finder for file paths in issues paneChristian Kandeler2019-02-251-2/+2
| | | | | | | | | | | The more specific output parsers often fail to resolve relative file paths, so add a fallback that attempts to find the corresponding file in the current session. A follow-up patch should add support for manual ambiguity resolving. Change-Id: If0aecbab0f3bf1aa779f4a538076c87ae6bf22d4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Fix crash when filtering out warnings from issues paneEike Ziller2018-07-091-0/+1
| | | | | | | | | Do not send endRemoveRows if we never sent beginRemoveRows. Fix up of 702d6a69148091b23023aeafdb697919dff1a1d6 Task-number: QTCREATORBUG-20741 Change-Id: If22a18e6426c8b4041924a170d5927ab9d11ccdf Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* TaskModel: Bit of code cleanupEike Ziller2018-06-281-1/+0
| | | | | | | | | | Do not send rowsRemoved before source model has removed the rows from its data. Add some QTC_ASSERTS and comments. Replace trivial slot by lambda. Change-Id: I7a0df404f757fca5f7724be66e516824ecd292dd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* ProjectExplorer: Modernize codeTobias Hunger2016-04-151-3/+3
| | | | | Change-Id: Ia967f698baba9bf84e6ef3c2ce26cafb17279f3e Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Projectexplorer: Modernize codebaseTobias Hunger2016-04-151-6/+4
| | | | | | Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
* ProjectExplorer: ModernizeTobias Hunger2016-02-031-15/+13
| | | | | | | | | * Use override where appropriate * Use pragma once * Make more constructors explicit Change-Id: I2865fe10f288e3de570826058e43b70a0cb4ee37 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* ProjectExplorer: Use Qt5-style connectsOrgad Shaneh2016-02-011-2/+1
| | | | | | | The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Always pass Core::Id by value.Christian Kandeler2014-07-011-8/+8
| | | | | | | | | | | Currently we pass in some places by value, elsewhere by const ref and for some weird reason also by const value in a lot of places. The latter is particularly annoying, as it is also used in interfaces and therefore forces all implementors to do the same, since leaving the "const" off is causing compiler warnings with MSVC. Change-Id: I65b87dc3cce0986b8a55ff6119cb752361027803 Reviewed-by: hjk <hjk121@nokiamail.com>
* ProjectExplorer: Pass const values by referenceOrgad Shaneh2014-05-061-1/+1
| | | | | Change-Id: I985aced32b95cfe4bc1bbbf7c917dc04b1d94f2d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* TaskModel: Do not duplicate itemsTobias Hunger2014-04-111-1/+0
| | | | | | | | | When inserting new items into the TaskFilterModel we could end up duplicating the items. Do not do that. Change-Id: I2450bac185a881e16f23368b39ce5e273c061d99 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Tasks: Remove one of two methods to find the task iconTobias Hunger2013-11-251-4/+0
| | | | | | | | The method is in a internal class, so this does not break the build for external plugins. Change-Id: I9ad75e8230059d865ec7a73aa0868cb82a35b35f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* Fix Krazy warnings about includes/header guards in ProjectExplorer.Friedemann Kleint2013-03-121-0/+5
| | | | | Change-Id: Ica1df90278f450717b71f7d895c84a31a5596e7c Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix possible crashTobias Hunger2012-10-091-1/+1
| | | | | | | | | The filter model needs to remove rows before the view tries to find the next row to select. Otherwise the filtermodel might access the source model at a position that is out of bounds. Change-Id: Id610455f32e7c7fe921c243537def0097b46a798 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Issues Pane: Fix badge number on clearing tasks of unknown typeDaniel Teske2012-09-191-0/+1
| | | | | | | Task-number: QTCREATORBUG-7893 Change-Id: I80870916081bc3b7464417173b74020aed40d485 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* BaseTextMark: Support renaming filesDaniel Teske2012-04-051-0/+1
| | | | | Change-Id: I8d712f76fca5d8f5ecad70f1485228e21c00648d Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Make TaskMarks clickable and jump to the right task in the taskwindowDaniel Teske2012-03-011-0/+2
| | | | | | | | | | | That means it is no longer possible to make bookmarks on lines with errors or warnings by simply clicking. That's not nice. It might be better to do something different, but let's see how the feedback to this is. Change-Id: I34788ff638ed49c21001d03cd60f992ffabd6153 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* TaskModel: Sort task by idDaniel Teske2012-02-221-1/+1
| | | | | | | | Makes it easier to later find the task again, and does actually not change the order in the normal case Change-Id: I2f36f2e7a6ab52c06e35be22820438a809ecb012 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Derive TaskFilterModel from QAbstractItemModel not TaskModelDaniel Teske2012-02-221-1/+1
| | | | | Change-Id: Ic748ada71e46811a05ced52ea7b1172ad02eb2ee Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-2/+2
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Task, adjust line numbers while editingDaniel Teske2012-02-141-1/+2
| | | | | Change-Id: Id2aa3b6f25a17416bb8ea601b6f5dd0de45f5375 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Task: Update Task to use Utils::FileName and Core::IdTobias Hunger2012-01-301-12/+12
| | | | | | | Use Utils::FileName and Core::Id in Task structure. Change-Id: Ia0ed459f86df36ffe547abde7c240b0ac409bcf5 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Taskwindow: Speed up the task windowTobias Hunger2011-10-051-0/+187
Make the taskwindow semi-graciously handle my Qt Creator build with 91k build issues. Change-Id: I47275e2057d2ff9bf5229f0a367bb19c4f3141e4 Task-number: QTCREATORBUG-1551 Reviewed-on: http://codereview.qt-project.org/5263 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>