aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
Commit message (Collapse)AuthorAgeFilesLines
* ProjectExplorer: Fix iterating through files to removeRobert Loehning2020-07-231-4/+5
| | | | | Change-Id: I680f8e40248dbbf4f4ee76765fad7a99944b0a5f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Don't prompt user whether 0 files should be deletedRobert Loehning2020-07-231-8/+10
| | | | | Change-Id: I893c8af5e2c0f0172dd397732275bdec9918bc44 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* GCC Parser: Recognize lines with "cc1plus"Christian Kandeler2020-07-142-0/+33
| | | | | Change-Id: I73a548b58c96fe944a80e36ee72ea9d3965ca6dc Reviewed-by: hjk <hjk@qt.io>
* GccParser: Recognize "required from" as a continuation markerChristian Kandeler2020-07-131-0/+40
| | | | | Change-Id: Iaea98cbccc6aa95e7eeaab23a2ef85a3eaa4b2e0 Reviewed-by: hjk <hjk@qt.io>
* MSVC: Use proper codec for vswhere output parsingChristian Kandeler2020-07-091-0/+1
| | | | | | Fixes: QTCREATORBUG-24311 Change-Id: Ifeefd51ddc9f3eb738ee2649328209ed3494f9a5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* GccParser: Catch file paths in "inlined from" linesChristian Kandeler2020-07-072-0/+37
| | | | | Change-Id: Ia16e5e4e3d3ce453e54df8eac48248164059bdc9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ParseIssuesDialog: Flush the parserChristian Kandeler2020-07-071-0/+1
| | | | | | | Amends 1c6e4fbd32. Change-Id: I53bc79a6e909daf83a42ff32cc7e6f0577f3ccc1 Reviewed-by: hjk <hjk@qt.io>
* Core/Utils: Migrate further to Utils::Idhjk2020-07-06137-840/+832
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* GccToolchain: Also handle compilers named cc and c++Tobias Hunger2020-07-031-2/+4
| | | | | | | | | | | | | | | | | This fixes a common cause for duplicate kits during import: The projects are configured to use one of these compilers, Creator says it can't support them, resulting in a kit without a ToolChain. This in turn will fail the comparison between temporary kits, so the same kit will get created twice. Right after the kit gets created, it gets fixed up again, so the kit seems very sensible after the import is done. Task-number: QTCREATORBUG-22702 Task-number: QTCREATORBUG-20582 Change-Id: I19c8f2e1131818dd9ab86c656001893ec3c083bf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Project Explorer: Fix UI text capitalization and writing styleLeena Miettinen2020-07-022-2/+2
| | | | | Change-Id: I0b79513fe71055e38091e3567269e7a729190267 Reviewed-by: David Schulz <david.schulz@qt.io>
* Target selector: Fix drawing of the run iconAlessandro Portale2020-06-301-8/+4
| | | | | | | | | | | | | | | | | | | | | With the new layout calculations (see QTCREATORBUG-24148), the option rect can now be used to center the icon with the provided functions in QRect. The current code kind of works if RunColumnWidth matches the row height, so that it can do things like subtracting vertical from horizontal dimensions. But in fact, the icon is not centered on the option.rect. fillRect(option.rect, Qt::red) <-to verify. Apart from that it has a few more downsides. This change: - Uses the run icon made for dark background - Paints the icon at its native 16x16px (instead of 15x15px) - Uses QRect::center()/moveCenter() to actually center the icon Change-Id: Ib280c650bd454b551f9e30ca108579fee06d81f0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Target selector: Make sure the run icon is not hidden under scrollbarChristian Kandeler2020-06-301-2/+7
| | | | | | Fixes: QTCREATORBUG-24148 Change-Id: Icae939d8f63a99b372f32d91d33acdfb2130a4f7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ProjectExplorer: Do not activate kits via right clickChristian Kandeler2020-06-291-0/+21
| | | | | | | | | | ... in the target selector. When requesting the kit context menu by right-clicking, we get extra mouse events on Windows that activate the kit, which is annoying to users. Suppress these events. Fixes: QTCREATORBUG-24156 Change-Id: I8a5de927634dfdfafb54d265ab31763c6120a527 Reviewed-by: David Schulz <david.schulz@qt.io>
* Clang-cl: Consider MSVC 2019Christian Kandeler2020-06-261-2/+5
| | | | | | Fixes: QTCREATORBUG-24167 Change-Id: Iff6e98c5cb404c67dce796ad6f7225f97caa4184 Reviewed-by: David Schulz <david.schulz@qt.io>
* Target Selector: Do not repeat kit name in context menuChristian Kandeler2020-06-261-5/+4
| | | | | | | | | | | Kit names can get rather unwieldy, and there is no point in repeating them in this particular context menu, where the user clicked pretty much right on the kit name. Fixes: QTCREATORBUG-24242 Change-Id: I04d96e53ece24fd6c54d8aa225d13a0c7354acd0 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Even more Qt6 portinghjk2020-06-235-9/+14
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Ib6ef0e521483153c9716c9a1870072e836d6b026 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Toolchains: Fix auto-detection for clang-clChristian Kandeler2020-06-231-3/+6
| | | | | | | | This broke in aef8255ba0, which removed the collection of MSVC toolchains in a global variable for clang-cl to inspect. Change-Id: I949aa0a098ed307d264e8fe23625586018507d00 Reviewed-by: hjk <hjk@qt.io>
* More Qt 6 fixeshjk2020-06-232-6/+6
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I1e30b49218b18f426aea6e4cd3680be513894746 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Icons cleanup: Remove unused icons and deduplicate identical pngsAlessandro Portale2020-06-222-0/+3
| | | | | | | | Accordingly Adjust the svg element Ids to new png locations in the source tree. Change-Id: I717dd7165c571e69322a1cce8d609f49c6bc75bc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Drop use of Qt::DefaultLocaleShortDatehjk2020-06-221-2/+2
| | | | | | | | Gone in Qt 6. Task-number: QTCREATORBUG-24098 Change-Id: Ie9fe1858406133fed6987de0e0a38fe86de15caf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* OutputWindow: Do not activate links for empty referenceOrgad Shaneh2020-06-181-2/+5
| | | | | | Change-Id: I1d4fc0f25f1882a34058c66c51376982cc70238e Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PathListDialog: Retain original dir separatorsAlessandro Portale2020-06-181-2/+2
| | | | | | | | | | | | | | | When editing the "Path" variable on Windows, the PathListDialog currently returns the path with all '\\' dir separators turned into '/'. Such conversion makes sense for the "Add ..." operation but should not be enforced for all paths. Or in other words: Do it like EnvironmentWidget does. This change removes conversion of the separators of all paths. Task-number: QTCREATORBUG-24213 Change-Id: Icab1bdc190e55e8f5724a93b7cd14b08e4c68829 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Move InfoBar to UtilsEike Ziller2020-06-181-5/+6
| | | | | | | | | The only reason it was required to be in Core plugin, was its use of Id, which now is available in Utils. Change-Id: I66ce863c24924e6448d339b3422538a7fe167336 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Move Id from Core to UtilsEike Ziller2020-06-186-9/+6
| | | | | | | | | | | | | | | | And add a compatibility wrapper for Core::Id, so we don't have to rename all occurrences from Core::Id to Utils::Id. This allows us to use Id also in Utils, which makes it possible to e.g. move Core::InfoBar to Utils without work arounds. Change-Id: I5555d05b4e52f09d501dbfe5d91252a982a97c61 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* All: Use Utils::SkipEmptyPartshjk2020-06-178-12/+17
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix plugin unit tests when using projectsChristian Stenger2020-06-172-2/+2
| | | | | | | | | | | | | | The ClangTools and the AutoTest plugins use an internal mechanism to load and configure a project when performing their integrated unit tests. Both assumed to have exactly one kit present for these tests. Make it possible to have more kits present when starting with existing settings or if more kits get automatically generated when starting with clean settings. Change-Id: If2bc66320c4854f1d34a19d17107e8f0b7d64d39 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PE: Replace some QRegExp by QRegularExpressionChristian Stenger2020-06-172-37/+37
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I6d9fde23d5d7a1d3fab3723a22ba385ebaee04a0 Reviewed-by: hjk <hjk@qt.io>
* PathListDialog: Make entries movableAlessandro Portale2020-06-161-1/+3
| | | | | | | | | Quite often, I edit path lists in order to modify the order of entries. It is nice to do this with via drag and drop in the PathListDialog. Fixes: QTCREATORBUG-20965 Change-Id: I02492c537de694071822d4f261347acea46b220b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ExtensionSystem: Remove PluginSpec::isHiddenByDefaulthjk2020-06-161-1/+0
| | | | | | | Not used anymore. Change-Id: Ic73ba3024b9e6157ff044cb23450fc9dad3c4c02 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Update parts of RunConfigurationFactory docshjk2020-06-161-24/+46
| | | | | | Change-Id: I4b9addde8055cb07565eea1c62e4e5b47725ff48 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Consolidate RunConfigurationFactory::idshjk2020-06-156-22/+19
| | | | | | | | | | | | | | | | | | | | It was already only one id string with two names. Since it is not an id for the factory but the id of the created run configuration, settle of runConfigurationId() as accessor. The factory and id fields in RunConfigurationCreationInfo were redundant. factory always implies (runconfiguration)id (but not necessarily the other way round, in theory different factories are possible for the same runconfiguration type for different devices). So drop the id field here. In one case now factory pointers instead of ids are compared, but this is neutral there as this happens in a context of a fixed Target, device and project are fixed there, so id and factory are equally unique. Change-Id: I859aa91486a2dd4abfc7369540a3322d6ec6260d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Use QRegularExpression in SelectableFilesModelhjk2020-06-112-3/+5
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I741f754dbb361310fa4e84241e75c39df7fc2627 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Add support for new M32R architectureDenis Shienkov2020-06-112-0/+11
| | | | | | | | | | | | | | This commit adds new ProjectExplorer::Abi::M32RArchitecture entry for the Renesas M32R architecture: * https://www.renesas.com/us/en/products/microcontrollers- microprocessors/m32r.html Also now the ABI of GCC compiler for this architecture is recognized correctly. Change-Id: Ic6a328e06c2824489c1f18895260355c449e7da8 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Recognize GCC ABI for Compact Risc architectureDenis Shienkov2020-06-111-0/+7
| | | | | | | | Now the ABI of GCC compiler for the Compact Risc (aka CR16) architecture is deteted correctly. Change-Id: Ifbe12a26036707da4a9df361d67b6033b29c0748 Reviewed-by: hjk <hjk@qt.io>
* CMake: Remove magic configuration from CMakeTobias Hunger2020-06-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | Get rid of magic configuration handling in the CMakeProjectManager. * Use CMakeCache.txt as the sole source of truth, do not keep a shadow copy of configuration in the .user file * Have initial CMake arguments that are easy to edit in batch (Fixes: QTCREATORBUG-18179) used whenever no CMakeCache.txt file is in the build directory. These allow for any thing that can be passed to CMake on the command line. (Fixes: QTCREATORBUG-16296) * Ask when changes to CMake configuration were not applied (Fixes: QTCREATORBUG-18504) * Run cmake with arguments effecting its configuration only when the CMake settings are changed in the UI, run CMake without any special arguments in all other cases. * Get rid of the confusing dialog used to keep settings in sync between what is in CMakeCache.txt and Creator (Fixes: QTCREATORBUG-23218) Change-Id: I26d55be7df733f084f5691ecf7d7b4352f58b8e7 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* ProjectExplorer: Recognize GCC ABI for Renesas SuperH architectureDenis Shienkov2020-06-081-0/+6
| | | | | | | | Now the ABI of GCC compiler for the Renesas SuperH architecture is deteted correctly. Change-Id: I788bc848fed4741b3bbc193e843b753884c7e209 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Recognize GCC ABI for Renesas RX architectureDenis Shienkov2020-06-081-0/+6
| | | | | | | | Now the ABI of GCC compiler for the Renesas RX architecture is deteted correctly. Change-Id: I5d0b810a5d5fe7339e0d0f507f696f98c16be30d Reviewed-by: hjk <hjk@qt.io>
* Use dialogParent() instead of mainWindow()Eike Ziller2020-06-0214-56/+55
| | | | | | | | | | There are very few reasons to use mainWindow() directly. Especially for modal dialogs, using dialogParent() is important, since that guarantees the stacking order in case of other dialogs currently being open. Change-Id: I7ad2c23c5034b43195eb35cfe405932a7ea003e6 Reviewed-by: hjk <hjk@qt.io>
* PE: JsonWizard: Improve handling of check boxesChristian Stenger2020-05-281-1/+1
| | | | | | | | | | | | | Only handle active user clicks as 'modified' to be able to react on (un)setting values by expressions that depend on other fields. Improves the check box handling on the "Add C++ Class" and "Add Python Class" wizards as it re-evaluates the check box state based on an expression as long the user does not actively checks the respective check box. Change-Id: I739c02b85196555c0379272005ca3b0095f7c762 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove some useless IContext subclassesEike Ziller2020-05-271-16/+4
| | | | | | | | They are only created at single places anyhow, so use the setters of IContext instead Change-Id: I00a089c9f1ea151c76cb6443e2a24c4a05437bbb Reviewed-by: hjk <hjk@qt.io>
* Remove unnecessary removeContextObject callsEike Ziller2020-05-274-23/+8
| | | | | | | They are removed on deletion now. Change-Id: I08461ea4938e24ab450df013a0f8f820032381da Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Add support for new CR16 architectureDenis Shienkov2020-05-272-0/+5
| | | | | | | | | | This commit adds new ProjectExplorer::Abi::CR16Architecture entry for the National Semiconductor CR16 architecture: * https://en.wikipedia.org/wiki/CompactRISC Change-Id: I886422e3745cbaec177236c3a2bd90950633a925 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Add support for new R32C architectureDenis Shienkov2020-05-272-0/+5
| | | | | | | | | | This commit adds new ProjectExplorer::Abi::R32CArchitecture entry for the Renesas R32C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: I869dd07783355b01522ca9eb87b73a8e55bf3746 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Add support for new M16C architectureDenis Shienkov2020-05-272-0/+5
| | | | | | | | | | This commit adds new ProjectExplorer::Abi::M16CArchitecture entry for the Renesas M16C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Id476cfefbfd971b31cb307d51b6980a29684191d Reviewed-by: hjk <hjk@qt.io>
* Revert "JsonWizard: Fix restoreLastHistoryItem for LineEdit"Christian Stenger2020-05-262-13/+2
| | | | | | | | This reverts commit e3abd5b3486e117ae1f5880a8304221699f5b14c as it broke updating evaluating line edits. Change-Id: Ie729a63d6a2b87df7143aba26726b657cffb8148 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Split deployment data using last colon on the lineVille Nummela2020-05-261-3/+3
| | | | | | | The original approach does not work with absolute file paths on Windows Change-Id: I9f284dfa7c0fe145a99e216a571d3f0eb1289f94 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Rename FilePath::rawFileName to rawFilePathhjk2020-05-221-1/+1
| | | | | Change-Id: Idf8cad2b18087f511aa1efe54adbb5a427660016 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* BareMetal: Add support for Renesas M32C architecture in GCC toolchainDenis Shienkov2020-05-191-0/+6
| | | | | | | | | | | | | | | | This commit adds support for the M32C atchitecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html using GCC toolchains. Tested auto-detection on Windows using the GCC v4.7.3 toolchain provided from the following URL: * https://gnutoolchains.com/m32c-elf/ Change-Id: Iaddd69e3109a4bd81d094dcb4edab29c8b398f01 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Add support for new M32C architectureDenis Shienkov2020-05-192-0/+5
| | | | | | | | | | This commit adds new ProjectExplorer::Abi::M32CArchitecture entry for the Renesas M32C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Ic6ab278e5da6992824a1427ac86a470768fcdb1f Reviewed-by: hjk <hjk@qt.io>
* Move splitString() method to base ToolChainConfigWidgetDenis Shienkov2020-05-194-17/+18
| | | | | Change-Id: I382b5ad33e167356be19260454934940ae6d2d96 Reviewed-by: hjk <hjk@qt.io>