aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* PE: Fix ProjectTreeWidget::expandedCount not to use 0 for error casesHEADmasterCristian Adam8 hours1-2/+2
| | | | | | | | | | | | | | This would make ProjectTreeWidget::nodeForFile pick the wrong node due to nodeExpandCount having a lower count. In case of qml files there is the source file node and the resource file node pointing to the same file name, but the resource name has an invalid index (not visible in the project view) and shouldn't be preffered! Fixes: QTCREATORBUG-30571 Change-Id: I2aff7da9dd6d83222e341b5cbcb78db5cd6a9224 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: Remove SystemInfo from CreateAvdInfoJarek Kobus9 hours3-15/+17
| | | | | | | | | | | Replace it with sdkStylePath and apiLevel fields what makes this structure safe to be used in different threads. Get rid of isValid() method. Change-Id: Iafce161457f05698fb3d5ea4a2a7fa15f8d95b38 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Lua: Add helpful error message if await is called without asyncMarcus Tillmanns11 hours1-0/+4
| | | | | Change-Id: Idc0b381a31ebe81709906e182d9a932e7ec7142f Reviewed-by: David Schulz <david.schulz@qt.io>
* Android: Make use of the error reportedJarek Kobus12 hours2-9/+16
| | | | | | | | | | Don't call createAvd() in case of the invalid systemImage(). Detect the erroneous result and handle it accordingly. Change-Id: Ieb869d12ea24f22dcf29beb362d934484929cdad Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CppEditor: Add quickfix for moving a class to a dedicated set of filesChristian Kandeler12 hours48-28/+1037
| | | | | | Fixes: QTCREATORBUG-12190 Change-Id: I8d23525c132f086992f030e56789eea3f7b136c9 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Add FilePath::(complete)Suffix and isAbsoluteMarcus Tillmanns12 hours2-0/+17
| | | | | Change-Id: Ifc9cc97b5c996a2bee8cd15d158411306dc3bd7d Reviewed-by: hjk <hjk@qt.io>
* ExtensionSystem: FilePath'ifyMarcus Tillmanns12 hours15-57/+63
| | | | | | | | Change IPlugin::fileName() and IPlugin::location to use FilePath instead of QString. Change-Id: If473ab1e258951735f93221cbd62c505f0727eb2 Reviewed-by: hjk <hjk@qt.io>
* AppMan: Add PerfProfiler supportDominik Holland15 hours3-18/+46
| | | | | | Change-Id: I7873742ebd93af1aed1c57e473c85d0b06bbbbf3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* PerfProfiler: Add support for reading perf output from other processesDominik Holland15 hours1-5/+11
| | | | | | | | | Instead of just using the "PerfConnection" property when a "PerfRecorder" is started, it is now also possible to set a "PerfProcess" property and read stdout and stderr from there directly. Change-Id: I01bd60a7ef36ca1676c0e0bc3d1f3e87f08749a2 Reviewed-by: hjk <hjk@qt.io>
* RunControl: Add more helper functions to SimpleTargetRunnerDominik Holland15 hours2-0/+20
| | | | | | | | | | | Allow to disable the forwarding of stdout and stderr and provide access to the underlying Process. This can be used when stdout and stderr need to be forwarded to other RunWorkers. Change-Id: I7fb789defe8a57831fcaf312fc7b500affdf2f61 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Environment: Avoid calling throwing functionsEike Ziller16 hours1-35/+57
| | | | | | | | | We do not declare any `throws` and this way we can also use QTC_GUARD Coverity-Id: 1586292 Change-Id: I75efd625e096bf02c1f7a85b9573bd134a9fb020 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Lua: Simplify waitmsMarcus Tillmanns17 hours1-8/+1
| | | | | Change-Id: I3832134f91580e8c1aa4a3ab62445feaba2009a4 Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: Fix crashEike Ziller33 hours1-1/+1
| | | | | | | Amends 770f1b0376db49b9ea5aad906dd6165ab71d9152 Change-Id: Idb490e0992d631af81d3da0cee682ebb87567077 Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Pass QColor by &Alessandro Portale35 hours2-2/+2
| | | | | | | Change-Id: Idef5659934c9de47fd879c73a0fe5dfcb890237c Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* CMake: Use theme colors for text prefixMarcus Tillmanns36 hours1-10/+3
| | | | | | | | Also uses new Utils::ansiColoredText() function. Change-Id: I43e59f78eb47903fc273244a9cd4e9da9b68839f Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* LanguageClient: Avoid calling throwing functionsEike Ziller36 hours18-135/+129
| | | | | | | | | | | Similar to with std::optional we want to avoid calling throwing functions for std::variant, which includes std::get. In many cases this also avoids the chain of `std::holds_alternative` + `std::get` calls. And we never declare any `throws`. Change-Id: I14f62ddef921b6bee90226ea34d1ffa62629bdc3 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Utils: Add function to format colored textMarcus Tillmanns38 hours2-0/+8
| | | | | Change-Id: I6ae4d113e0aca434e99d9864188187100c24e47d Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Utils: Fix output linkificationChristian Kandeler39 hours1-5/+14
| | | | | | | | | | The case where links are combined with other formatting was not correctly implemented. Fixes: QTCREATORBUG-30774 Change-Id: Ie56a7f4c9a1f8a9b23848cc6fd4b7749bb6cecd7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CMakePM: Add conan/vcpkg-dependencies to "Clear CMake Configuration"Cristian Adam2 days1-1/+3
| | | | | | | | | This way one could really get a clean build as one would expect when issuing "Clear CMake Configuration". Change-Id: I7067bc4f6f858aeb408612eab5e658e637c0c957 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CMakePM: Add "Clear CMake Configuration" to context menuCristian Adam2 days2-0/+9
| | | | | | | | Fixes: QTCREATORBUG-24658 Fixes: QTCREATORBUG-30771 Change-Id: I6429e861a77663513ed3243396bdd67042c11faf Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Lua: Add testsMarcus Tillmanns2 days10-0/+621
| | | | | Change-Id: Iac2a47498b9463d647ef131a908fd6b851295993 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: CleanupMarcus Tillmanns3 days5-110/+40
| | | | | | | | Moves LuaEngine creation into initialize() Removes uneccessary PluginLoader class Change-Id: I9eddbe4d0cba7ba3c7c1ce825ec18845de7d4654 Reviewed-by: hjk <hjk@qt.io>
* Make it possible to add wizards paths via plugin meta dataEike Ziller3 days20-32/+55
| | | | | | | | | | That makes it easy with Lua plugins, and is useful on the C++ side as well. Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* App: Use 'fusion' style only on fractional dpi on WindowsCristian Adam3 days1-3/+5
| | | | | | | | | | | On 200% on 4k screens there is no reason to use the 'fusion' style since the 'vista' native one works perfectly fine. Task-number: QTCREATORBUG-16095 Change-Id: I1ffd02891aa5ef30c0172edd949d63d4270400c4 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* ClangTools: Remove unused variableMarcus Tillmanns3 days1-1/+0
| | | | | | Change-Id: Ieff874cb6db24714a5a62fd3f59ea5d69c9358a8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* C++: Do not freeze Qt Creator while checking file sizesEike Ziller3 days3-26/+41
| | | | | | | | | | | | | | Before actually indexing files, the C++ model checks the files against a file size limit (if set, which is the default). Do not iterate over all files and check their size in the main thread. If the files are on a device, this operation is not fast. Move the filtering to the parsing thread itself. Change-Id: I2202cc44c28f38159ca593db2399dde30f95f9bd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller3 days7-64/+90
|\ | | | | | | Change-Id: I77d3656aec10063a90095d5299b85304692d8b32
| * Update qbs submodule to HEAD of 2.3 branchv13.0.1Christian Kandeler5 days1-0/+0
| | | | | | | | | | Change-Id: Ib3182e394222e4323982983b557cabbc60e1c0d8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * ClangFormat: Fix compiliation with LLVM19Björn Schäpers6 days2-1/+9
| | | | | | | | | | Change-Id: I4b166da2e477ffd101a5c4b9aa07c710f7698da9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Welcome: Restore legibilityAlessandro Portale6 days2-56/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the release of Qt Creator 13.0.0, a couple of bug reports and comments regarding reduced legibility appeared. They boil down to: 1) Text appears blurry 2) Text is too small 3) Text contrast is too low This change fixes the blurryness by setting less custom font weights for non-HighDpi systems in StyleHelper::uiFont(). Bigger texts are used for the "Session" and "Recent Project" delegates. The text contrast is being increased by making Token_Text_Accent darker for light themes and brighter for dark themes. Token_Background_Muted, which is used as background color is made a bit brighter for light themes. Fixes: QTCREATORBUG-30579 Fixes: QTCREATORBUG-30637 Fixes: QTCREATORBUG-30650 Change-Id: I8eeb9db6854a19b0de0bcee14b10e2ef66234e06 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
| * Android: Disable "Make [NDK] default" button while NDKs list is emptyAlessandro Portale6 days1-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When pressing the "Make [NDK] Default" button while the list is empty leads to a crash. The button should actually not be enabled if the list is empty. This change disables the button while the NDKs list is empty. Fixes: QTCREATORBUG-30716 Change-Id: I5f10fd180f62d20210f1b0c0261e4d821d0582dd Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| * Core: Use Windows API to create path to explorer.exeCristian Adam6 days1-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | Searching after "explorer.exe" in PATH can fail, as seen in a report on #qtcreator channel on Discord. Explorer.exe is always part of %systemroot%, which can be programatically obtained via SHGetFolderPath function. Fixes: QTCREATORBUG-30765 Change-Id: Id2c4f3bd9c51234cb9e16d936202dfbcb1975606 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | Lua: Change Process to directly use Async moduleMarcus Tillmanns3 days1-26/+18
| | | | | | | | | | | | Change-Id: Ie91a308d55b06f35b2f2114a46b347d83e779db2 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* | QML: Add an "external" editor for opening .ui.qml files in Design StudioEike Ziller3 days1-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Using the logic from the landing page in design mode. Users can select Qt Design Studio from the Open With... menu, or even set it as the default editor in Preferences > Environment > MIME Types, "application/x-qt.ui+qml" Task-number: QTCREATORBUG-30754 Change-Id: Idd4e688f722dcf38735db7c1b9b31af02caeb045 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Lua: Change fetch module access to asyncMarcus Tillmanns3 days1-92/+90
| | | | | | | | | | Change-Id: I32bd760e347e2bd4465bd028e31fb3c4ff220aa5 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Lua: Make FilePath:searchInPath asyncMarcus Tillmanns3 days3-31/+44
| | | | | | | | | | Change-Id: Ida94856c26bab38d95753fb4d5475d57e3315212 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Android: Hide AndroidSdkManagerDialogJarek Kobus3 days3-15/+20
| | | | | | | | | | | | | | | | Provide executeAndroidSdkManagerDialog() function instead. Change-Id: If7033ce797710f4dfbb7df0630962316b20c8a12 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Android: Hide QDialogButtonBox inside cppJarek Kobus3 days2-13/+8
| | | | | | | | | | Change-Id: I0f10933884d3a95e774defe9b1f5125a5b1eee39 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Hide OptionsDialog inside cpp fileJarek Kobus3 days2-72/+63
| | | | | | | | | | Change-Id: I26cacdd743b51d57e154cb0dd454b8cdf07cb153 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Rename AndroidSdkManager{Widget -> Dialog}Jarek Kobus3 days5-15/+13
| | | | | | | | | | | | | | Do some small cleanups. Change-Id: Iec6c77cb0a33ebdfcd72c3751cb1fd44ab3ea078 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Create and execute AndroidSdkManagerWidget on demandJarek Kobus3 days2-14/+7
| | | | | | | | | | | | | | | | | | | | | | There is no need to always instantiate it inside AndroidSettingsWidget. Force data refresh on model construction. Change-Id: I1adcd933e8684df9819d3dbd9cef2d615cff84a8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Simplify parsing argument detailsJarek Kobus5 days1-7/+6
| | | | | | | | | | | | | | | | | | | | No need to call split() for the output - instead, just look for the index of "Common Arguments:" and the following newline. Change-Id: I008adeb1a8c39b0e3c0dd2364566396bf0235511 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Use less Grid features in AndroidSdkManagerWidgetAlessandro Portale5 days1-20/+22
| | | | | | | | | | | | | | | | Grid is only needed for the empty space in the upper right. Remove usage of Spans. Change-Id: Ib612589f3d19ee659af63926a13adc1e9ddbde7d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Android: Use LayoutBuilder for JLSSettingsWidgetAlessandro Portale5 days1-10/+7
| | | | | | | | | | Change-Id: Ied43a275d142da44fedb31e52bb1b441b21df3d5 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Android: Log the actual Process CommandLine in sdkManagerCommandAlessandro Portale5 days1-3/+2
| | | | | | | | | | | | | | No need for the temporary one. Change-Id: I810e795907f4a10e8ea1041bbbd89591dae3d3ca Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Android: Pass const reference instead of a copyJarek Kobus5 days2-3/+3
| | | | | | | | | | Change-Id: I5058478c99b6316c836003239490c606ca0efb4b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Run Process asynchronously from the main threadJarek Kobus5 days4-48/+20
| | | | | | | | | | | | | | | | Instead of running it blocking from a separate thread. Change-Id: Ia971395faf7d34062ab4bcfa91082c0bf77cdccf Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Make parseCommonArguments() staticJarek Kobus5 days1-44/+42
| | | | | | | | | | Change-Id: If1d840ac589131e58302eb1073b37a0feac99448 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Do some cleanupJarek Kobus5 days7-769/+87
| | | | | | | | | | | | | | Cleanup after employing task tree... Change-Id: I79ffa385886b0a635a5fdfdbc496dcf6b042aa71 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Android: Reuse recipesJarek Kobus5 days5-99/+88
| | | | | | | | | | Change-Id: I9b4a0fdc793a5eb2ea80be38f1a48b51a6bdeeb1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>