Commit Graph

80147 Commits

Author SHA1 Message Date
Thomas Hartmann
49955964f7 QmlJSCheck: Add missing comma
Change-Id: I5f26cbe50ecb47c088bab8b9cdea49d0103352eb
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-20 10:12:20 +00:00
Alessandro Portale
d92be80610 UpdateInfo: Tr::tr
Change-Id: I7167f675bf58793cb38e11bfd58902bb7537c4b9
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:37:01 +00:00
Jarek Kobus
3244819d3a GitClient: Replace DynamicSetup with dynamic task setup
Change-Id: I1a56e34274c5d7ace8fb8866c128c8dee03d2ad8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 09:35:40 +00:00
Jarek Kobus
d96fbb3e54 SubversionClient: Replace DynamicSetup with dynamic task setup
Change-Id: I7f96ee1300c6d53afc85a4c22bc18bcfe744ebd3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 09:35:27 +00:00
Amr Essam
0174e3495f QmlDesigner: Fix effects folder is not created when creating effect from new effect dialog
Task-number: QDS-8166
Change-Id: Ifa5569beae70423f3e936e639b001cf4f3dcc9fe
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-20 09:26:20 +00:00
Jarek Kobus
9dfd72017c TaskTree: Add more tests for recently added fixes
Change-Id: Ia71fa174380b484cbe07a23f8b641755c5edcc65
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:20:14 +00:00
Jarek Kobus
6269c2cec8 TaskTree: Unwind execution properly on synchronous done
When task or group setup handler finishes synchronously
we may end up with mismatched execution order or may
grow call stack considerably. The fix is to detect
synchronous finishes and leave handling to the synchronous
caller.

Change-Id: Id72cf8cc98e2f53ff601a5e5226cd203a8470aaf
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:20:03 +00:00
Jarek Kobus
e6ca18e194 TaskTree: Implement dynamic setup for tasks
Before it was possible to dynamically setup groups only.
This functionalily is probably good enough to replace
Group's DynamicSetup, as it seems much more convenient.

Change-Id: I56080f0ffa844847ca955cf52ccb07f3b4e4c731
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:19:49 +00:00
David Schulz
42d7304d2b ClangCodeModel: Allow cancelling the background index
Restarts the client with temporarily disabled indexing. The block is
reset after starting clangd, so any subsequent changes to the
configuration or the project will start the client again with indexing
enabled.

Change-Id: I16c975b6ef0b56f27ce5b2ced01f534f8ae0b4d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-20 08:44:57 +00:00
hjk
77054c2fa3 LanguageClient: Tr::tr
Change-Id: Idbd7c5cdadba4f269b2033df91db0e05bb5281d5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-20 07:56:04 +00:00
Alessandro Portale
6780a6ca50 ClangTools: Tr::tr
Change-Id: I61e2d961225e9699bffcee8e54bc201eeb9a70d9
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 07:09:54 +00:00
Alessandro Portale
5a5a91f7d2 GenericProjectManager: Tr::tr
Change-Id: I7ed1fac9dd6b4517cbc90a8c03a1c67d1e5404ae
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 07:09:48 +00:00
David Schulz
5516188290 Docker: validate clangd version
Do not automatically setup a clangd that is too old and mark them as
invalid if they are manually selected.

Change-Id: Ie9662a8821df8fc678eabc4b8a08375723b4d1c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 05:36:32 +00:00
hjk
2e98acfdfd Incredibuild: Tr::tr and code cosmetics
Change-Id: Id2facedde38dd09311069711b9e621a95439d433
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-19 17:25:28 +00:00
Alessandro Portale
0fff2aa172 QmlProjectManager: Tr::tr
Change-Id: I219111bab487ad5f2d7d1cd7ae6f3e3e8a2a8d3f
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:53:58 +00:00
Alessandro Portale
16ec720537 DiffEditor: Tr::tr
Change-Id: I71b9908ea332256044120b42ff6af2fc57a89a5e
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:32:29 +00:00
Marcus Tillmanns
eeea7e8b6c ADS: Cleanup dockmanager
Change-Id: I752e98df60fd7265e51ba32795edb536c2055675
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:08:18 +00:00
Tim Jenssen
2e87ee5865 qmlpuppet: better error when Qt is too old
Change-Id: I219f2f8ce551e36d2f749d60a6984c3ccc903e5c
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-01-19 13:56:11 +00:00
hjk
89591b7d3d ProjectExplorer: Make Node::pathOrDirectory work for remote files
Change-Id: I643456c0ba691ed4a89d4c6020dea148f6a47f1a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-19 13:49:37 +00:00
Tim Jenssen
b826acd53e utils: reduce default logging level of filesystemwatcher
Change-Id: I10d55e3f07eb461351b8c13cac01a9b0d5bd8b84
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-01-19 13:34:04 +00:00
hjk
cdc88b2571 RemoteLinux: Handle already remote local files
This is a bit hackish to support "true" remote builds.

Conceptually, that's more similar to a "local" (a.k.a.
"Desktop" configurations when it comes to (non-)deployment,
but the Desktop runconfigs are currently a bit too tied
to the host system, and we'd like to have the X11 forwarding
that's already available here.

Change-Id: I750b2cfe6b94ec8f60a0e879f3fe44ddaf86072e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-19 12:55:11 +00:00
Christian Stenger
13cf1ee948 Wizards: Re-enable using qt quick wizard for qbs
Change-Id: Ic1a3dfbb72096470b4cec2d7af967eba111c743f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-19 12:54:00 +00:00
hjk
117b6f1921 ClangCodeModel: Tr::tr
Change-Id: I60aeadd38471cc65de250f66f0f09ba2931b3da2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-19 12:18:42 +00:00
hjk
0454e939e1 Utils: Make all labels created by the LayoutBuilder
... selectable with the mouse.

Change-Id: Ied2677a517239ca55a15daeae088bc09998d2b3b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-19 12:03:32 +00:00
Burak Hancerli
e6d34ed3eb QmlDesigner: DS crashes on exit
Invalid pointer access.

Task-number: QDS-8751
Change-Id: I983ae84c1b746768d10a06ab6a28eb080fdc48a0
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-19 11:03:13 +00:00
Thomas Hartmann
47c4fff724 QmlDesigner: Fix Select All in code editor
Because of the shortcut overrides we used the "shortcuts"
from QPlainTextEditor which leads to different behavior then
the rest of Qt Creator and a bug.

Without the override we use QActions defined in Qt Creator.

Task-number: QDS-8847
Change-Id: I90e2b86ad9b5c93302652dd7cdfbf2b51e3a3771
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2023-01-19 11:01:09 +00:00
Thomas Hartmann
1a2de8b40b QmlDesigner: Add logging for urlSpecifics
Change-Id: I556b534e92a9fb9729f6aa610153a4f89122e51c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-19 10:57:03 +00:00
Tim Jenssen
8e69490dad Utils: improve filewatcher
Avoid internal calls of QFileSystemEngine::fillMetaData
which are expensive and especially on Windows trow
GetFileAttributesEx can hang for seconds.
(network drive or one drive which locks files)

Task-number: QDS-8820
Change-Id: I3269ade03d1c1ed65417eebf956080414c5d087b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-19 10:55:19 +00:00
Tim Jenssen
db7c1c6770 Utils: add Q_LOGGING_CATEGORY(fileSystemWatcher)
Change-Id: I554c50a47197a6a9a84427b62a528d87b9db5f19
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-01-19 10:53:36 +00:00
Jarek Kobus
bc7de78c84 Utils: Fix clazy "Mixing iterators with const_iterators" warnings
Cherry-picked from 7bc86a8b8d

Change-Id: I719272e0c094df424c08524e8e32a567d557bb3d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-01-19 10:51:10 +00:00
David Schulz
ca2979ca52 LanguageClient: Do not untrack documents before restarting a client
shutdownClient removed the association between the document and the
client, but this is one of the information we would like to keep when
restarting a client. Also we never want to delete the client when
calling restart.

Change-Id: I0558c27ba4b9171c7933edaf2e17847d4e6f62b6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-19 10:10:42 +00:00
Jarek Kobus
9ff307253d ProgressIndicator: Remove fwd decl of non-existing class
Change-Id: I175c7811afdb44ed0e61ccc1f16424a1baed34b3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-19 09:55:40 +00:00
Christian Kandeler
7b5c5b774f LanguageClient: Fix renaming with pre-set replacement symbol
If a caller passes in a fixed new symbol name, it must not be overwritten
with one derived from the old symbol name.
The problem can be verified with the "convert to camel case" quickfix.

Change-Id: I3d3aca692cb8e73535e1ef657608fd13d18ee5df
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-19 09:04:51 +00:00
Eike Ziller
e9320a8122 Fix tab order in "file deleted" dialog on Windows/Linux
For some reason it doesn't like it if the order of adding the buttons
is different, though that works on macOS.

Fixes: QTCREATORBUG-28676
Change-Id: Iea7c595216140dd242cac0aa528699866c4bb1c7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-19 07:20:01 +00:00
Christian Stenger
534e1f34b2 AutoTest: Only write values that are not default to user files
Change-Id: I0e36cdbc850c148e5fa7c865f3f1136a4dc8a11f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-19 07:19:47 +00:00
Christian Stenger
435fe5e4db Adapt to upstream change
Change-Id: I0f0de2823eb338cbd327846347f3b3c8e2b61c89
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-19 07:19:08 +00:00
David Schulz
41294e70b4 TextEditor: prevent crash on updating the completion model
Prevent updating the model with something other than a generic proposal
model.

Change-Id: I3880c1ce4ae7cf0aa4fb72d59b75a40db3f53482
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-19 06:28:41 +00:00
Christian Stenger
d9de9db6f8 Utils: Adapt to change in FilePath
Change-Id: Ibd3c53c49390cbf77d8b0563bab7ddff216394c7
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 05:34:48 +00:00
Mahmoud Badri
be15c0b82e QmlDesigner: Enable keyboard navigation in the material browser
Fixes: QDS-8764
Change-Id: I2f0de80a3bbffdb0dafa15315cfe6692d77db2ed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-18 17:45:52 +00:00
hjk
1db9135d6d RemoteLinux: Merge tooling runworker related files
... and move definition of supported runconfig to worker factories

This might not be final, but is closer to the other device setups.

Change-Id: If68d4e9d1bfb281879ff8cd46ed6ed6356da8d57
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-18 16:15:33 +00:00
hjk
fa7dd2fd3b VcsBase: Convert to Tr::tr
To reduce the amount of duplicated strings for translators to handle.
The problem is not very prominent in vcsbase, but that's where we
are moving everywhere else.

Change-Id: Icb11fad3bccfea8a1408420e729566a75adccb66
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-18 15:33:59 +00:00
Pranta Dastider
de8c64ab95 QmlDesigner: Update Tooltips for Advanced Section
This patch update tooltip text for Advanced Section fields
in Property editor.

Fixes: QDS-8805
Change-Id: If97f0d42bc53c855fbf6bb1916011d4cbadb95cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-18 14:27:39 +00:00
Pranta Dastider
5e81f4105a QmlDesigner: Update Tooltips for Padding Section
This patch update tooltip text for Padding Section fields
in Property editor.

Fixes: QDS-8808
Change-Id: I04143d8b822d1978f57aa01598c6df0b483da94c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-18 14:27:36 +00:00
Pranta Dastider
8607436ee6 QmlDesigner: Update Tooltips for Control Section
This patch update tooltip text for Control Section fields
in Property editor.

Fixes: QDS-8809
Change-Id: I1a5d830c9541a7ee25d483eee77d6391e194e743
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-18 14:27:29 +00:00
Jarek Kobus
7e815270f1 TestRunner: Get rid of unneeded Utils:: prefix
We are using Utils namespace in this file already.

Change-Id: Ib4b36782b3272eb4974d8dada4518b0d4eec2f21
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-18 14:01:57 +00:00
Jarek Kobus
39940a7200 TestRunner: Use QList instead of QQueue
There is not a big benefit when using QQueue - QQueue::dequeue()
has its counterpart in QList::takeFirst(). Using list makes
it possible to assign another list into m_selectedTests.
Make use of QList API consistent in this file (use isEmpty(), first()).

Change-Id: I4a320469f5b44c61f8c51196c104a6ca0d0534e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-18 14:01:32 +00:00
Ali Kianian
d0c2ccac8b QmlDesigner: Fix the bug for using QMap::asKeyValueRange
This feature is available for QT_VERSION >= 6.4.0. So a compiler
condition is considered to switch the code for different versions.
Also, an old unused function has been removed.

Change-Id: I470812213cfb00c28fcf062d214895cfcba68d69
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-18 13:52:33 +00:00
Jarek Kobus
fdebf0343d TestRunner: Merge 2 public methods into one
Merge setSelectedTests() and prepareToRunTests() into runTests().

Change-Id: I908c41483f05eeaec186f362391941a797d66e6a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-18 13:50:37 +00:00
Jarek Kobus
c9f5098c07 AutoTest: Rename outputReader() into createOutputReader()
Make it clear it's a factory method that creates new instances
of objects, not a simple getter.

Change-Id: I0b44506a27a0353bc524831c305f947510f59e98
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-18 13:50:20 +00:00
Jarek Kobus
bad66c1fc2 CMakeBuildSystem: Run ctest process asynchronously in main thread
Instead of running it in other thread using blocking interface.

Amends 675a72e296

Change-Id: Ia4c7701fa4cd9efea4aeccd979dfb8cde28a889e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-18 13:33:25 +00:00