Commit Graph

76686 Commits

Author SHA1 Message Date
Jarek Kobus
eec0679234 VcsBase: Move RunFlags into separate header
It is going to be used outside of VcsCommand, too.
Use RunFlags enum as an argument to several functions
instead of unsigned.

Change-Id: I355c80a845a9b5982108fbde3412754392dce702
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-06 12:00:35 +00:00
Eike Ziller
3811236903 macOS: Fix opening terminal
The scripts executable flag went missing

Amends a7956df3ca

Fixes: QTCREATORBUG-28251
Change-Id: I9773dee3967edc2ebb0eb49c539b37796a48cf5a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-06 11:44:24 +00:00
Christian Kandeler
7dc2c6b3b3 ClangCodeModel: Rename via LSP facilities
Contrary to our original expectation, clangd's textDocument/rename does
not necessarily yield the same locations as /references. Instead, it can
find fewer or more occurrences, depending on server-side logic about what
constitutes a reference vs what should be renamed. Therefore, we need to
use /rename for proper behavior.

Fixes: QTCREATORBUG-27978
Fixes: QTCREATORBUG-28109
Change-Id: I27d092e807a4aa59dc0674111429c77ca13010e9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-06 11:09:57 +00:00
Christian Stenger
96d60713bf Squish: Fix up wizard resource
Change-Id: Ie923744ef44d3588abb0930c241dbb26d7589de1
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-06 10:56:46 +00:00
hjk
5cdb936854 QmlDesigner: Inline openuiqmlfiledialog.ui
Also replace the grid by a suitable vbox.

Still leaves potential improvements, like getting button order right
used QDialogButtonBox.

Change-Id: Icd294350ad3b6ff137fcd3c7bec4d607a5a1c0c7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-06 10:42:01 +00:00
Christian Stenger
e489a947a8 PE: Delay initialization of wizards
Other plugins may provide additional wizard search paths,
so wait until they had a chance to register them.
Amends 1cf6b031cf.

Change-Id: I268a42ab22d9c4f48d03589986220781e3623f46
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-06 10:40:00 +00:00
hjk
74e260a40d Mercurial: Inline srcdestdialog.ui
Change-Id: I6866ffbe708600e47dd136e627a6c59207b50815
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-06 10:37:35 +00:00
Christian Kandeler
55a5216e25 LanguageClient: Inform document manager about renames
So that interested partied can react accordingly.

Change-Id: I0233413aa960b83965428671cebeb591d5ca12b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-06 10:00:47 +00:00
Pranta Dastider
c68a42925e QmlDesigner: Add new comment to document
Here the document is exclusive for the Enterprise Version of Qt Design
Studio. So, I have added a comment at the top, to keep it clear for
the users of other Qt Design Studio version.

Task-number: QDS-7814
Change-Id: I2fdf56ce6bb46e4b0103631747cc57c9d722a603
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-10-06 09:40:22 +00:00
Alessandro Portale
f8f94a0ce1 QmlJSTools: Convert to using Tr::tr
Change-Id: I40595e560fb2499226bd2c914a0b78ed68f830ab
Reviewed-by: hjk <hjk@qt.io>
2022-10-06 08:54:09 +00:00
David Schulz
faa38e5eb8 Locator: Show actions shortcuts in locator widget
Change-Id: Ib4d1e55e6335e691ee9ee85735e69a86b9276f15
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-06 08:16:58 +00:00
Robert Löhning
729805e7fd Git: Restore object names for dialog
Amends ffcf85958f

Change-Id: Ia48b114137d722df5f72add818d5729adff94110
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-06 07:48:45 +00:00
Leena Miettinen
49378ced3c Doc: Describe Squish plugin
Fixes: QTCREATORBUG-27890
Change-Id: Icc203a96f08c785f016130480c45c988d26ac371
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-06 07:07:56 +00:00
hjk
a5803ae555 Meson: Inline toolitemsettings.ui
Change-Id: Ib305c45354e63142587593401fda45d03d42d207
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-06 06:04:29 +00:00
hjk
bad664163f Mercurial: Inline revertdialog.ui
Change-Id: I1da46c20c1c504d482ef580520f239c789f05dcc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-06 06:04:21 +00:00
hjk
d843e96be8 Mercurial: Inline mercurialcommitpanel.ui
Also remove a few translated placeholder strings that were immediately
overwritten.

Change-Id: Ia2aecefcb798e191d1407e6a00bdb584430bbe3c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-06 06:03:02 +00:00
hjk
1f5eb9e62f Mercurial: Inline authenticationdialog.ui
Change-Id: I235c8aaf7d2dd8e49e8a22b81523a322b5f596bc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-06 06:02:17 +00:00
Marcus Tillmanns
8d80623a0f CMake: Delay restoration until devices load
If the devices have not loaded yet, trying to restore
a remote cmake will result in errors.

Change-Id: I08a802441d64b203388334e5cbb6b962d1f0d213
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-06 05:16:36 +00:00
Orgad Shaneh
1748c6e80b VcsManager: Fix detection of top level
Amends 42377c21e4.

Fixes: QTCREATORBUG-28253
Change-Id: Ia10b88790ad02e9be4ff3c84b67c36239c3adf7d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 21:10:09 +00:00
Jarek Kobus
42377c21e4 VcsManager: Use even more FilePath
Change-Id: Ia9dd3de67eb9dc8f5c0331ec9ffe44c993395c33
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 18:25:49 +00:00
Jarek Kobus
64db0009d5 VcsManager: Use more FilePath
Change-Id: I255372c47e6d3ea55e5f8060c3c2fdd9bd155c75
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 18:25:33 +00:00
Cristian Adam
ab7a472b94 CMakePM: update CMakePresets macro replacement function
Moved to a handcrafted function instead of using regex.

This way the Visual C++ Ninja only preset can be processed.

Change-Id: I9b303ee1765db05544d81db7d3b8d9e5223f5f42
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-05 17:54:35 +00:00
Jarek Kobus
6644927c4e ClearCasePlugin: Remove runCleartoolSync()
Replace it with runCleartoolProc().

Change-Id: I04172aa1506cbe20e9c8d870b697b899cfcca7bf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:21:57 +00:00
Jarek Kobus
0b7ee32202 ClearCasePlugin: Introduce runCleartoolProc
Don't use VcsCommand when the only passed flag is NoOutput
as in this case VcsCommand is the same as QtcProcess.
Add runCleartoolProc and implement it using QtcProcess.
Use it whenever NoOutput has been passed to runCommand.
Some codepath, like runCleartoolSync() or ccGetActiveVobs()
has been called from non-GUI thread - be on the safe side
and use QtcProcess in these cases.

Change-Id: I2d29947393bd43af193a53e3f8e89e1b6b4b86fa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:21:38 +00:00
Jarek Kobus
4bcdfa6b19 ClearCasePlugin: Replace timeout with timeout multiplier
Give it default value of 1. Move this arg as the last one
(only 2 non-default usages).

Change-Id: I8c0bee7988436b899c8ae5cb7b96b7fe534d265f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:14:33 +00:00
Jarek Kobus
7591b2f56d VcsCommand: Make runCommand() a static method
And rename it to runBlocking() in order to conform
a bit more to QtcProcess API.

In case of blocking run there is no need to instantiate
VcsCommand on user side. This nicely draw a line between
async usages (i.e. when start() is called and we need
an instance) and blocking ones (i.e. when runBlocking()
is called).

Change-Id: I1ba94ee36c92956d5044236cb9e2dd896bf3cfcf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:13:49 +00:00
Jarek Kobus
688ec935cd VcsCommand: Remove internal terminate() signal
This signal was emitted only from cancel() method and
used only when runCommand() was called. However, with
just 2 public usages of cancel() no-one was used
in conjunction with runCommand(). So, this signal is
no-op.

Change-Id: I2541c6498928d313faafc2fbe47ab609393486d1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:11:17 +00:00
Jarek Kobus
f4233a1c22 VcsCommand: Change the default logic for fully sync
Remove VcsCommand::FullySynchronous flag.
Rename VcsCommand::NoFullySync into UseEventLoop.
By default the command will run fully synchronous
(i.e. without nested event loop). Only when
UseEventLoop is specified, and the command runs in
main thread, the nested event loop will be used.

This change should preserve the current behavior
on all code paths.

Change-Id: Id4bbaf68402ceed5e3fcc6f294521e87eb0b8d4d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:10:04 +00:00
Jarek Kobus
3e69ea863f Subversion: Remove FullySynchronously flag from vcsMove()
This flag is no-op since NoFullySync isn't passed
and we are always running vcsMove() from UI thread,
so it will run fullySynchronous anyway.
See VcsCommandPrivate::isFullySynchronous() condition.

Change-Id: I257cd925c08e7b2406f32889e1086cc36a0473dc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:09:50 +00:00
Jarek Kobus
772d3d7c79 NickNameDialog: Use more FilePath
Change-Id: Id7677a636977343ab6cef72ad0267f27981c640a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-05 17:08:08 +00:00
hjk
26d9e6900e ProjectExplorer: Don't try to fix remote build paths
Change-Id: Ia8a980fcb5154cfbfb412b3d7c4b565e9d200b15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-05 15:14:36 +00:00
Jarek Kobus
c4e6493ff1 RemoteLinux: Replace foreach with ranged for loop
Change-Id: Iee251639c20131c8fc2fd2e182b131a9786411c7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-05 15:05:29 +00:00
Jarek Kobus
392585f76d FakeVim: Replace foreach with ranged for loop
Change-Id: I0de9620ebf837be25e153bfd282b6564d4d2b115
Reviewed-by: hjk <hjk@qt.io>
2022-10-05 13:50:35 +00:00
hjk
f0834e8725 Meson: Inline mesonbuildsettingswidget.ui
Change-Id: Ib927f8166f9c43f10c4dd0feae912e3cb4cb153f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-05 13:15:36 +00:00
Christian Kandeler
c46e5cef2d LanguageClient: Offer to rename matching files along with symbols
Like we already do in CppEditor and ClangCodeModel.

Change-Id: I9cd292950e40c499d99cc561fbf0ad99af477803
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 12:59:55 +00:00
Christian Stenger
378d813797 Core: Restore object name for dialog
And adapt usage inside tests.
Amends f5c725cf23.

Change-Id: I8f1e47ea206e34a242988373fa569d547d8d637d
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-10-05 12:59:18 +00:00
Leena Miettinen
3667b5ea18 Doc: Describe Text Editor > Font & Folors > Line spacing
Update screenshot.

Task-number: QTCREATORBUG-27876
Change-Id: If5eef7243e94492551480f790286d0538d552cd7
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 11:59:58 +00:00
Jarek Kobus
ebcc51ecbf Help plugin: Replace foreach with ranged for loop
Change-Id: Idf7a7182e88aba35dff57ef92e1c873b33cb42a1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-05 11:33:38 +00:00
Leena Miettinen
9accbdac02 Doc: Update info about Clang and clangd preferences
And the Show Preprocessed Source action in the code editor
context menu.

Task-number: QTCREATORBUG-27876
Change-Id: I43ca26d6ee7bb5e0441a37aeb1f7eecbb4ba8fde
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-05 11:22:47 +00:00
Leena Miettinen
94ab264d45 Doc: Describe create cursors at the ends of selected lines
...by pressing Alt+Shift+I

Task-number: QTCREATORBUG-27876
Change-Id: Ibdf25f97ec4c705b62e0c0f78239c9004cc45fce
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 10:06:52 +00:00
Christian Stenger
e70bb187dc Squish: Save modified files before running a test
Change-Id: Iaf15c05ea057e871d0facb60cbb036a1497dd038
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 09:16:28 +00:00
Christian Stenger
6a4b3e67e0 Squish: Expect file changes when recording
Expect the object map to change in general and the test script file
to change on successful recording to avoid unneeded confirmation by
the user.

Change-Id: I72fe4534fdc7b6b7064222f7c9b0e0989cc17976
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 09:16:19 +00:00
Christian Kandeler
718086dea8 LanguageClient: Allow to pre-set the new symbol name
... when renaming.
There are contexts which provide the new name in advance.

Change-Id: I4bda689405060c343c0654d0aca274f10ee22752
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-05 09:03:11 +00:00
Christian Stenger
6a720c5bba Squish: Fix script generation
Change-Id: If9c9ef2c3f8e6da14da282554becd075de761d6e
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 04:33:00 +00:00
Christian Stenger
b11490142e Squish: Remove unused capture
Change-Id: I3e54eabc7829d7e69471406235a0065b4e0aec6c
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-05 04:32:28 +00:00
hjk
7dfe423205 Perforce: Remove apparently unused promptdialog.ui
Change-Id: I1f2e9d13948956397c35d2cdc6ae0e81f88bf74c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-04 15:50:56 +00:00
Tim Jenssen
7e248d9a08 fix warning
Change-Id: I6a27ea45c064f3f09b669a74bd36155067c7b005
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-10-04 14:10:57 +00:00
Jarek Kobus
3d70de9382 VcsInfo: Remove unneeded c'tor and operator==
Change-Id: I6b2a797290854bd34abc6680d5377749678ef687
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-04 14:06:16 +00:00
Jarek Kobus
cd582faa7e CppEditor: Limit the usage of qMakePair and std::make_pair
Change-Id: I4c85edbaccb553320b5488d3dd2c2595fc2bd825
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-04 14:06:00 +00:00
Jarek Kobus
afd1742f9f CPlusPlus: Limit the usage of qMakePair
Change-Id: Ica59c320fb700369e968bb03a93deff34eb7ffb7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-04 14:05:43 +00:00