Commit Graph

85691 Commits

Author SHA1 Message Date
Mahmoud Badri
9d8aa76b4c EffectMaker: Show save popup when adding a new effect
when there is an untitled effect composition in the effect maker.

Change-Id: I3d905202e52b1242949d72f1870d4cc06efe080b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 12:16:04 +00:00
Marcus Tillmanns
5f3950c620 Terminal: Defer shell model init
Speculative fix for sometimes slow load times of the Terminal
plugin on Windows

Task-number: QTCREATORBUG-29840
Change-Id: I6782db075bfaa25fbabe2bac2a8f0f3b4af4f833
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 12:05:25 +00:00
David Schulz
c622601db5 Debugger: simplify interrupting on windows
Use Process::interrupt again and ignore the superfluous exceptions when
debugging qbs builds with cdb reported by QTCREATORBUG-28279.

Change-Id: I010d41e2b01721d63a3967c9c95d7b10d47a4472
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-12 11:53:30 +00:00
Eike Ziller
a374588604 QmlDesigner/editor3d: Fix build with Qt 6.7
rendercontextcore is now a public header

(qtquick3d 89ca37fb914c6539334df62b38ea8cee80dade9d)

Fixes: QTCREATORBUG-30052
Change-Id: I58ac699ed81e958c0a0fccd14385b3359be1fb08
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 11:52:45 +00:00
Jarek Kobus
d1d573ad16 Aspects: Make lambda non-mutable
Amends 16f7652717

Change-Id: Id01ce3f7f0b5c9911097fa3ef2836015a009ed2b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-12 11:51:24 +00:00
Jarek Kobus
24397509d4 Libs: Cleanup lambdas
Change-Id: I715a124dd73f23c735dde27d3205ac7613ae04c6
Reviewed-by: hjk <hjk@qt.io>
2023-12-12 11:28:30 +00:00
hjk
d81b4c3aff ScxmlEditor: Remove some unused includes
Change-Id: Ie6b4beb57eaf56bcfef1027c400ea20765e36aaf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 10:56:06 +00:00
hjk
016936a450 Clean up some lambdas
Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 10:55:32 +00:00
Mahmoud Badri
e984536b6f QmlDesigner: Fix opening the new effect maker
Change-Id: I23d278dfaa430df09cd31aa63e8034a7787bac7a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 10:37:37 +00:00
Jarek Kobus
8d2cee31e4 TerminalWidget: Fix a warning about no return value
Amends a0c05cabcc

Change-Id: Ieb969f7a6c61469f69e8503089e4985fa8380e3c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-12 09:34:12 +00:00
The Qt Project
83778b5ef5 Merge "Merge remote-tracking branch 'origin/12.0'" 2023-12-12 09:24:04 +00:00
Marcus Tillmanns
b6ee23d218 ProjectExplorer: Use SyncronizedValue instead
Protect sshParameters with SyncronizedValue instead of
manual QReadWrite lock.

Change-Id: Ib164eb34aa1b8167d00c02ce49fd5bfc9fba6c15
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-12 09:18:12 +00:00
Eike Ziller
10e5a27c27 Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp

Change-Id: If96d0f0a3d48c2581e765e4afb8b23924c48bdd6
2023-12-12 10:17:39 +01:00
Cristián Maureira-Fredes
c4464eb072 Add logo and title to PySide install dialog
Change-Id: I7888ee906334de2c93c24c5da2394c9e73101a28
Fixes: QTCREATORBUG-30041
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 08:51:44 +00:00
hjk
27ef041d28 ProjectExplorer: Some more ToolChain->Toolchain renamings
Change-Id: I5cb2adf544a846f45f7fe7ce60f67b10ad100d91
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-12 08:14:59 +00:00
Marcus Tillmanns
a0c05cabcc Terminal: Refactor actions
Change actions to use ActionBuilder and
use ToggleAspects for tool buttons.

Change-Id: I0f4a58c3a98cb2804e3d387ea02cac043bd71ae7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-12 05:46:33 +00:00
hjk
daa85c3166 Core: Add a ActionBuilder::setOnToggled function
... and use it in the setup of some IOutputPane actions.

Change-Id: If4c79d4f8ae73ca320e8c35d5f1e2f30a8c7050f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-11 15:08:55 +00:00
Christian Kandeler
1365ee7cb2 CppEditor: Add assertions to CppRefactoringFile::{start,end}Of(AST *)
I've seen this crash once with a null pointer.

Change-Id: I162e36155f030712f697da0bbf39ea5fef849db3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-11 15:06:14 +00:00
Christian Kandeler
8594a7f114 QbsProjectManager: Make use of QbsProjectParser::m_parsing
This was apparently forgotten in
6913947986.

Change-Id: I237d21ecde898a2c9206aaeae74b2d05372cce2e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-11 15:01:27 +00:00
Christian Kandeler
c7f88ced89 ProjectExplorer: Fix FilePath construction for git paths
Change-Id: If29c0afcd41789ded5eccc6e098b3fadb390287d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 14:59:58 +00:00
Mahmoud Badri
2af5ce7fa9 EffectMaker: Generate unique effect name when saving
Change-Id: Ib602b778d810fe0d6c0d70879b1002c1749fe196
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-11 14:59:24 +00:00
Shrief Gabr
8f51c7a75d QmlDesigner: Modify model export functions
Task-number: QDS-11298
Change-Id: I919c8cd4ecac4bad7dab4d4fdf2d1cf3548cd95b
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-12-11 14:51:19 +00:00
Eike Ziller
d3c805630a CMake Debugging: Do not build/deploy
Fixes: QTCREATORBUG-30045
Change-Id: I478abaf29462d9413f3285527459a98b1cae899d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-11 14:50:17 +00:00
hjk
6c22a3ec8c Boot2Qt: Fix menu insertion of qdb flash to device action
Change-Id: I359b4ae398337ae3edb138cca1b3bdaf5cc86424
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-11 14:22:11 +00:00
Mahmoud Badri
fba2fda788 EffectMaker: improve save changes dialog
- move cancel button to the left
- rename don't save to discard changes
- update buttons sizes to match their content
- remove few useless parts and reorganize the layout

Change-Id: I08308a90082b0c73ff9a6bf34b255764e07f20df
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-11 14:09:20 +00:00
Christian Stenger
1633d76b76 SquishTests: Allow designer test to progress further
Explicitly chose a newer kit as the kit we would use by default
lacks some compiler features on Windows.
This patch here only fixes the test crash when trying to access
a disabled menu item due to cmake dropping out with error when
parsing the project with the active kit.
Drive by change: removed workaround for fixed bug.

Change-Id: I783626f30d27ab1852536ae0d1f936ec8323feb8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-12-11 14:03:13 +00:00
Jarek Kobus
a9721c5f34 ExtensionManagerWidget: Fix warning about unused arg
Amends f97fd83fc9

Change-Id: I540a3a8916bb7de363aacf309ca2474b221add78
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-12-11 13:35:07 +00:00
Eike Ziller
049ac852a6 Change log: Add some more items, convert bug numbers to links
Change-Id: Ic9b3d3f9a7441fd6bec0ffee4fee7082e91d5a95
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-11 12:37:33 +00:00
hjk
f97fd83fc9 Plugins: Add skeleton for new ExtensionManager plugin
This initial commit is merely a mockup of a ExtensionManager concept.

Change-Id: I19b2285667678a86097c043cc27a554545559eff
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 12:10:36 +00:00
Alessandro Portale
fb28890eb2 Utils: Introduce H5, H6 and "H6 Capital" Ui fonts
As defined by the new Qt Creator design system.

Change-Id: Ib67b35ea552cf88c4b89481b72e690e04a57bbb7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-12-11 12:03:44 +00:00
hjk
2becddf704 ActionBuilder: Rename private action member to contextAction
Closer to what it's called in the API.

Change-Id: I88e7ab3cff33b5e59262510abcb01a6b46a6aece
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-11 11:39:39 +00:00
David Schulz
f4bf7c5b00 Python: show warnings if pip or venv is missing
Change-Id: Ib38c1eb3b0f31d6988d3a5f084ac6eda08ec0619
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-11 11:39:11 +00:00
Eike Ziller
67b7835c25 Fix Find Next button and other actions
Plugins must always connect to their local action, not the command's
action.

Amends f98934ef73

Change-Id: I95394080e4446da0f11dc91bf759d032c64f3445
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 11:19:49 +00:00
Cristian Adam
6846579266 CMakePM: Allow usage of custom output parsers for CMake output
Fixes: QTCREATORBUG-29992
Change-Id: Ia84871cc963263c34054d17742556b38a1f1934e
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 10:58:21 +00:00
Alessandro Portale
d5b3366d55 Utils: Change UiElementCaptionStrong from Bold to DemiBold
The new font design suggests a slightly less caption font. This
has a visual impact on the mode bar labels.

Change-Id: I8d0714785b1e3f5b4c73493e0c9f45fcfc69b562
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-12-11 10:04:39 +00:00
Alessandro Portale
7a890f5e94 Utils: Add Qt Creator Color Tokens to QtC themes
The new design spec defines a generic palette of colors
which will first be used for the extension manager, then
the welcome Screen and eventually in all/most of QtC's
UI.

This change adds the new enum keys and the light and
dark variant as section to the respective creatorthemes.

Change-Id: Ifeb691cfe29914463b0e9f9af27b33341f316cdd
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-12-11 10:04:31 +00:00
Artem Sokolovskii
62ea85ee6a SyntaxHighlighter: Move SyntaxHighlighter to separate thread
This change involves the relocation of SyntaxHighlighter processing
to another thread. The core idea is to create a duplicate of the
original TextDocument using SyntaxHighlighterRunnerPrivate::cloneDocument.
A new SyntaxHighlighter is then instantiated by SyntaxHighLighterCreator
for the cloned document. The entire SyntaxHighLighterCreator class is
moved to a new thread, where it performs highlighting on the cloned
document. Upon completion of the highlighting process, the resultsReady
signal is emitted, and the updated highlighting data is applied to the
original document.

This shift of SyntaxHighlighter to another thread enhances the user
experience by preventing UI slowdowns during the highlighting process.

- Introduction of BaseSyntaxHighlighterRunner as an interface class for
future *SyntaxHighlighterRunner.
- Inclusion of DirectSyntaxHighlighterRunner class for performing
highlighting in the main thread, suitable for syntax highlighters
that cannot be moved to another thread.
- Introduction of ThreadedSyntaxHighlighterRunner class for highlighting
in a separate thread, preventing UI blocking during the process.
- Addition of Result data to the SyntaxHighlighter class to facilitate
data exchange between threads.

Task-number: QTCREATORBUG-28727
Change-Id: I4b6a38d15f5ec9b8828055d38d2a0c6f21a657b4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-11 09:55:02 +00:00
David Schulz
d5ddf391c1 Python: optimize loading projects
Loading .pyprojects file now doesnt add a target for the default kit but
results in showing the target setup page which is filtered for usable
kits.

Change-Id: I4c407960a90a27457314281b79dc8878510eca80
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-11 09:33:26 +00:00
Christian Stenger
7a6d99a9f6 CMakePM: Improve handling of adding translations
In case of having no translations setup with the wizard or
manually later on we just do nothing and fail with adding
the translation file.
This patch minimally changes the CMakeLists.txt so that the
files are not "lost".

Task-number: QTCREATORBUG-29775
Change-Id: I560c8b736ec2a0a8de6e1177317a9172921f4340
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-11 09:31:01 +00:00
Christian Stenger
1cdb702fa6 CMakePM: Improve support for adding translation files
There are more ways to add translation files to a cmake project,
so support the common ways.

Task-number: QTCREATORBUG-29775
Change-Id: I15f0d7a13303a1845760dbfc830c6f773f634ce0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-11 09:30:53 +00:00
Christian Stenger
960768302a QtSupport: Support adding translation file
..for the major build systems. CMake build system will get further
improvements. For now this only works for adding ts files to the
target after the project had been created with QC's wizard with
some translation already added.
Qbs and qmake just work.
The C++ sources obviously will not change automatically to
integrate translation support for the application.

Task-number: QTCREATORBUG-29775
Change-Id: I80e4c21156f4bb8d5ef0bd6edf805021a55770ee
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-11 09:30:45 +00:00
Eike Ziller
dd9f9c799b Support view/hide right side bar in Debug mode
Like it is now supported in Widget Designer, the view/hide action
toggles the corresponding dock widget area. We cannot do that for the
left dock widget area yet, because that action still needs to toggle the
navigation side bar.

To support this, we need to save not only the QMainWindow state for the
debugger perspectives, but the whole FancyMainWindow state including the
information about hidden dock widget areas. Unfortunately the
PerspectiveState was serialized to QVariant without versioning, so
keeping it that way is difficult. Switch saving&restoring of
PerspectiveState to Utils::Store (and keep some compatibility code).

Change-Id: I0035841930c6a574aeb31650a28be9989e2b5741
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-11 08:41:53 +00:00
The Qt Project
c6f4fa6b18 Merge "Merge remote-tracking branch 'origin/12.0'" 2023-12-11 08:30:05 +00:00
Eike Ziller
57d4ea4dcc Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/designer/formeditor.cpp
	src/plugins/git/gitplugin.cpp

Change-Id: I554a844fab4c55249a00f394f9ba174c7548dbbe
2023-12-11 09:28:21 +01:00
Jarek Kobus
88b9268315 TaskTree: Update Storage docs
After recent changes, the Storage object isn't derived from
GroupItem class anymore. Instead, there is a Group constructor
taking the Storage object. Make docs precise, that Storage
isn't a GroupItem, but we may have a GroupItem containing a
Storage.

Make it clear, that the running task tree doesn't instantiate
the storage itself, but it's data type.

Add more links.

Change-Id: I1569602cabae39215c48824b6897387e631b90a8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-11 08:19:49 +00:00
Eike Ziller
7ec55f89f1 FancyMainWindow: Use "Store" type for settings instead of custom QHash
Change-Id: Id0735af2ee9b138c9a53525a236fde2a0310c695
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-11 08:04:15 +00:00
Christian Stenger
32096547a7 Git: Fix qbs build
Amends ff9170b820.

Change-Id: I8170889beb7ea268f2f1654d020d121140a45fb3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-12-11 06:28:02 +00:00
Andre Hartmann
ff9170b820 Git: Move Instant Blame into own class
Change-Id: Ic7bdfb47d0de2a5499e40c9eeaead8bbf30a12e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-12-10 20:21:39 +00:00
Alessandro Portale
5745145f5a recolordocsicons.py: Remove misleading comment
The comment was a copy-paste remainder from export.py

Change-Id: I5209060e5edf8072940f1542c547baf54766f425
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-10 16:18:20 +00:00
Artem Sokolovskii
ee75c7276b ClangFormat: Fix utf8 symbol indentation
Fixes: QTCREATORBUG-29927
Change-Id: I5a5a326e13cbe3a874a66e275ded0c6dea9964d7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
v12.0.1
2023-12-08 17:48:39 +00:00