summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Remove two uses of FilePath::toStringhjk2023-01-061-2/+2
| | | | | | | | | The context here (passed as part of command lines args) suggests the use of .nativePath(), but if .toString() was ok so far, .path() (i.e. with forward slashs also on Windows) would change less. Change-Id: I045c4311c67b8875b87c328fbe57ca79ae0d7f1a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Ios: Pass context object to lambda connectionsJarek Kobus2023-01-062-4/+4
| | | | | | | Change-Id: I69a7a2ff3e91256961b2b501e75fe1a21d9c8b6f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Remove GPL-3.0+ from license identifiers, part IIKai Köhne2023-01-0632-32/+32
| | | | | | | | | | | | | | | The original text before the SPDX change did not include a potential GPL-4.0, but GPL-2.0. 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 LGPL-3.0/LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only/g" {} ; Change-Id: Id5e40d3e174ecea660a09e88a02bd57505f1875d Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Make TreeStorageBase related qHash and comparison hidden friendshjk2023-01-062-15/+9
| | | | | | | Also, inline the hashing. Change-Id: I75859ad5481ab673d6c6f233c6fe67a96f9cda45 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* QmlPreview: Robustify preview runner a bithjk2023-01-061-3/+4
| | | | | | | Don't rely on qobject_cast not returning null for eternity. Change-Id: I0adede2f05a27e4f98ee47e737af38732f1e4c31 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlPreview: Have a dedicated run worker factory classhjk2023-01-063-44/+50
| | | | | | | More similar to what the rest is doing or heading to. Change-Id: I835ef19810cbce146d3ae22b3881c0e89d1b1fb9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Valgrind: Use named classes for run worker factorieshjk2023-01-064-27/+32
| | | | | | Change-Id: I05009aa2fe4541e10fa56a3a095db030e18b79b5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Debugger: Use a full class for DebuggerRunWorkerFactoryhjk2023-01-063-8/+19
| | | | | | | This continues the work started with de6c7696d2ce8. Change-Id: Ifc306347f2346909a9eba39c74449c559a7c2f76 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* PerfProfiler: Use named classes for run worker factorieshjk2023-01-064-21/+26
| | | | | Change-Id: Ib91f307c69bd2b85626aedf958799417cdd354ee Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Update the qml code model parserSami Shalayel2023-01-0518-3436/+3929
| | | | | | | | | | Updates the qml code model from qtdeclarative dev (commit: 164d8f66d82deea74464c68a2cdd19e5998835da). Fixes: QTCREATORBUG-28238 Change-Id: I383c98012f1efd56110d43c258fa1b398a6f8255 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Task/ProcessProgress: Delete private data on destructionJarek Kobus2023-01-054-14/+17
| | | | | Change-Id: I81787984ff8dbb541f88922c90e51a68184c392b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CMakePM: Make "Autorun CMake" a global settingCristian Adam2023-01-058-33/+28
| | | | | | | | | | The "Autorun CMake" is only visible in the Tools settings page when the user clicks on CMake tool. This is not very visible and it doesn't have to be per CMake version. Change-Id: I57ded0b2e6a3ecb731bb8bc1495b6b61bc04c8b6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Don't call FutureProgress::setKeepOnFinish(HideOnFinish)Jarek Kobus2023-01-053-3/+0
| | | | | | | This is the default behavior so no need to set it explicitly. Change-Id: I7248a7a3890fa7fd947b8e42fccc70383d46ca3a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProcessProgress: Add setKeepOnFinish()Jarek Kobus2023-01-052-3/+14
| | | | | Change-Id: I327cf309081d432b11a85bd98bc9f42de65313da Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QMakeStep: Use TaskTree for running qmake stepJarek Kobus2023-01-052-61/+52
| | | | | | Change-Id: I8737a0fe3f8857db4e171001a73adde842d05d44 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* AbstractProcessStep: Provide API for running TaskTreeJarek Kobus2023-01-052-28/+75
| | | | | | | | As an alternative to calling AbstractProcessStep::doRun(). Change-Id: I53142b7470a3e2aed0e219300fb3e0b4621630db Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* QtSupport: Consolidate Qt version macro expander setup a bithjk2023-01-051-110/+92
| | | | | Change-Id: Id8f08d335beb3f6aef682b84f62cd9bdb50dd057 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QtQuick Application wizard: Add "QDS style project" optionAlessandro Portale2023-01-0514-458/+269
| | | | | | | | | | | | | | | | | | | | | | This adds a checkbox labeled "Design Studio style project" to the Wizard. With that selected, the project is generated via the "General / Empty" templates of QDS with Qt 6.2 as target Qt version, 1920x1080 form size, the "Material" QtQuick.Controls style ("Light" Theme) and CMake project format. At the same time, the preexisting QtQuick Application wizard in Qt Creator now also focusses on Qt 6.2 and CMake. TS file generation is removed for now, can be added later, but then using the i18n setup feature of QQmlApplicationEngine (instead of a QTranslator in main.cpp). The wizard now focusses on the QML CMake API. In order to filter the kits accordingly, the flag "QtSupport.Wizards.FeatureQtQmlCMakeApi" was added. Task-number: QTCREATORBUG-28436 Change-Id: I80bc5585f31ec82c64f845701c768f8a07e000da Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix static build of Qt CreatorCristian Adam2023-01-055-6/+8
| | | | | | | | | | | | | | When is QTC_STATIC_BUILD set to ON add_qtc_library will add a <target_name>_STATIC_LIBRARY define, otherwise <target_name>_LIBRARY is added. Since Sqlite uses two libraries now both SQLITE_STATIC_LIBRARY and SQLITEC_STATIC_LIBRARY need to be checked. Change-Id: I07c4de01627754534da7e37d1261db37779df296 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* ProjectExplorer: Return FilePaths for SessionManager::projectsForSessionName()hjk2023-01-055-20/+17
| | | | | | Change-Id: Ie168973e872ea105c7eb46ff7f58fb34883364b1 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Make Utils::withTildeHomePath a FilePath memberhjk2023-01-059-50/+51
| | | | | | | | Gets .osType() right in remote cases. Change-Id: I6397996062d976d7db690c5729dd4faa1f459563 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CMake build: Use version-less Qt targetsEike Ziller2023-01-05105-181/+184
| | | | | | | | | Since we do not support Qt < 5.15 anymore, and as a first step for getting rid of our special FindQt5.cmake. Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Debugger: Make calling std::function details skippablehjk2023-01-051-0/+6
| | | | | | Change-Id: I03415209557589a15d66e2ee4fd531f0f02bf5bd Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Utils: Add defaultValue getter for AspectsCristian Adam2023-01-052-6/+56
| | | | | | | | | Does the variant conversion based on the aspect type. Change-Id: I2127a5a4202c3a60b946492b90a78beabaa11aed Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/9.0'Eike Ziller2023-01-0547-67/+108
|\ | | | | | | | | | | | | Conflicts: src/plugins/qtsupport/qtoptionspage.cpp Change-Id: Ic8ada9fd47f5eb62e751b6188a45b95ddb36122d
| * Properly support relative paths in Link with Qt UIEike Ziller2023-01-041-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | Relative paths are resolved based on the applicationDirPath, so reflect that in the path chooser too. Also, do not resolve relative paths in the path chooser to absolute paths when writing to the settings. Change-Id: Iaeffa2cad1e145adbbc5c918b5f8ff14f6f2b31e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * GLSL: Fix file licenseshjk2023-01-042-2/+2
| | | | | | | | | | | | | | Amends a7956df3ca which accidentally dropped the (L)GPL part. Change-Id: I75ab5013925bac6563a782c5e19676d39accc1e0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * AdvancedDockingSystem: Fix file licenseshjk2023-01-0440-40/+40
| | | | | | | | | | | | | | Amends a7956df3ca which accidentally dropped the (L)GPL part. Change-Id: I22e3f5cdb12b15ee777524cac04aa888606026c3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Add support for plugin paths set by the installerEike Ziller2023-01-031-8/+37
| | | | | | | | | | | | | | | | | | | | | | | | This is important on macOS, where we cannot install optional plugins into the app bundle, because that would break code signing. Instead the install settings in the signed bundle sets a custom plugin path outside the bundle, and the installer puts optional plugins there. Task-number: QTCREATORBUG-26705 Change-Id: I8b36752471d16dfc5828e87e20254f39ab985ca2 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * Editor: fix crashing on updating snippet selectionsDavid Schulz2023-01-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | The final selection is not tracked in m_selections and needs to be handled explicitly. Also add an assert preventing unconditionally accessing an out of bounds element of m_selections. Fixes: QTCREATORBUG-28631 Change-Id: I1898418b1126bdaffccbdf0e483e2c659d191917 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * German translation: Fix error message when installing pluginEike Ziller2023-01-021-1/+1
| | | | | | | | | | | | | | | | | | %1 resolves to "Qt Creator" or "Design Studio", and the message means that no plugin for that application was found in the extracted zip. Change-Id: I1f07a3557bdac7dcabf26206aa12fabac0ca272d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Robert Löhning <robert.loehning@qt.io>
| * SquishTests: Update tst_designer_autocompleteRobert Löhning2023-01-021-1/+3
| | | | | | | | | | | | | | | | | | | | ui_mainwindow.h is being created on first build. While there seems to be some workaround for qmake-based projects, cmake-based projects can't be parsed properly before the file was written. Change-Id: I0e9802f79b60d7d07ed92ca0ae9b93e53249b61f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | AbstractProcessStep: Merge finish() with processFinished()Jarek Kobus2023-01-0512-50/+42
| | | | | | | | | | | | Change-Id: Ied15ec3ee9d3bcc80b03b2589d101c65f2fd062a Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Debugger: Add missing stretchChristian Stenger2023-01-051-1/+2
| | | | | | | | | | | | | | Amends 2b97f69796f. Change-Id: I44ddf368990c7ebbeeb5c07569ac5811a56f3c10 Reviewed-by: hjk <hjk@qt.io>
* | Docker: Fix typo in test fileshjk2023-01-052-1/+1
| | | | | | | | | | Change-Id: I4e7c0c0612d9dca8c815c5a378436574c4456a00 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | GerritModel: Reuse ProcessProgressJarek Kobus2023-01-041-28/+13
| | | | | | | | | | Change-Id: I229ab2cbb8137b6e1debe86eaa462110fdcc337e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | GerritPlugin: Reuse ProcessProgressJarek Kobus2023-01-041-99/+24
| | | | | | | | | | | | | | | | Get rid of unneeded State enum, future watcher and future interface. Change-Id: Id217d557c9051479cd3da872c1661c163cdf3a21 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | tracing: Remove foreachArtem Sokolovskii2023-01-041-4/+4
| | | | | | | | | | Change-Id: I74f17198a9f98f958924214ad2058e295b313373 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Utils: Drop commonPath(QStringList)hjk2023-01-042-24/+0
| | | | | | | | | | | | | | | | | | There's FileUtils::commonPath(FilePaths) nowadays. Change-Id: I26e30d61eb80cb457458791e9ad049356f18de98 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Android: FilePath-ify AVD handling codeAlessandro Portale2023-01-044-37/+38
| | | | | | | | | | | | | | Change-Id: Id08414f8fb9ce7f4fac5221cd24392e25f02f00d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Debugger: Also ship asm highlighting fileEike Ziller2023-01-041-0/+2352
| | | | | | | | | | | | | | | | | | | | | | For highlighting disassembly views. Amends b41abc94bb82e300c5f646328d99a04a2339d208 Change-Id: Ifb5ddd50661459eb9deda9c2a419943777b1068c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Use FileUtils::commonPath instead of stringshjk2023-01-041-4/+3
| | | | | | | | | | Change-Id: I917912fe441d1b72466c02ff9f3e743daa4eff92 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Core: Convert promptoverwritedialog to FilePathhjk2023-01-044-51/+55
| | | | | | | | | | | | Change-Id: I4c1fc7b8c8956f671a3beef8834fe8039333482e Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | PatchTool: Preserve CRLF when reverting a chunkOrgad Shaneh2023-01-041-2/+1
| | | | | | | | | | | | | | Fixes: QTCREATORBUG-12690 Change-Id: Ib408a33bd1bd69ebc27a029025313eaf7bdf4f18 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | Qmake: Use FileUtils::commonPath instead of the string based versionhjk2023-01-041-4/+4
| | | | | | | | | | | | Change-Id: Ib7dce9ed26b6ca280767e88ada2bcff52c8a5684 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Core: Partially convert basefilewizardfactory.cpp to FilePathhjk2023-01-041-16/+17
| | | | | | | | | | Change-Id: I68abf990c2125e09228598fff151cbae9910ca44 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Debugger: Check for skippable frames earlyhjk2023-01-031-27/+28
| | | | | | | | | | | | | | | | | | This avoids unnecessarily opening of files with functions that are skip. Change-Id: Ie435949ad4033444ad5814a91109f33e022711d0 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | ExtraCompiler: Hide some methods in protected sectionJarek Kobus2023-01-032-16/+6
| | | | | | | | | | | | | | Replace setCompileTime() with updateCompileTime(). Change-Id: I0ab2262787fc1a6c374e8e2b524f1cfad05fcbbf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | modelinglib: Remove foreach usage part 2Artem Sokolovskii2023-01-0317-78/+94
| | | | | | | | | | Change-Id: Ia898cc019a0534a97d20a3dc48e69c6617773766 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Debugger: Save a few cycles in watch datahjk2023-01-034-146/+124
| | | | | | | | | | Change-Id: I1fada2767bedb5c9a90bd8f4f2db6b2c881f111e Reviewed-by: David Schulz <david.schulz@qt.io>