Commit Graph

86167 Commits

Author SHA1 Message Date
David Schulz
b7abde11a0 LanguageClient: Make sure to untrack deleted documents
This is a safety net for manually opened documents (not opened via the
EditorManager) so that all pending pointers to those documents are
removed.

Change-Id: I2527db1a5bab387b9f49255ebcde9232afd5a93c
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-22 09:47:50 +00:00
David Schulz
a8b5b1d606 LanguageClient: fix reassigning documents to restarted server
Make sure a client is still responsible for all assigned documents after
it gets restarted because of setting changes.

Change-Id: I3c7d8635e6699c137427864c1bf4eb183bfcf2f8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-22 09:47:41 +00:00
Christian Kandeler
6015344669 Update qbs submodule to HEAD of 2.2 branch
Change-Id: I07074033bbed864d9986d1615f9d0352c47a85da
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-22 09:40:28 +00:00
Xavier BESSON
6515f935d6 Display length of QByteArray's in debugger pane
Task-number: QTCREATORBUG-30065
Change-Id: I155fe83d6d2956552aa0127caae3971c70a49551
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-22 09:19:29 +00:00
Aleksei German
ef2f76b2d8 QmlDesigner: Equate type var to type variant
Task-number: QDS-11395
Change-Id: Id81ad38f0fa07ce783c93ece70a856ab65cfcbbf
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-01-22 09:19:28 +00:00
Jarek Kobus
2fe5b61aab Process: Read QTC_USE_QPROCESS just once
And store it in static variable.

Change-Id: I983ba4d23563ab412ba8db5e4ea4cc1b7a75dba7
Reviewed-by: hjk <hjk@qt.io>
2024-01-22 09:16:42 +00:00
Jarek Kobus
60eaa2c826 Process: Read QTC_MEASURE_PROCESS just once
And store it in static variable.

Change-Id: Ia630f63125088bff32a4d6df9de4c8279c8d8b34
Reviewed-by: hjk <hjk@qt.io>
2024-01-22 09:16:37 +00:00
Ali Kianian
8238764dcd QmlDesigner: Remove the collection name from CollectionDetailsView
* The collection name is removed
* Icon sizes follow the style
* The new toolbar has a background color
* Margins are modified
* An alignment bug is fixed
* HelperWidgets.AbstractButton is used instead of
HelperWidgets.IconButton

Task-number: QDS-11647
Change-Id: I9f8c9ddb3da07a90fcf9523533f9e71f4fcc881b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-22 07:52:24 +00:00
Jarek Kobus
77e395f926 MsvcToolChain: Use standarized Process::exitMessage()
Instead of the own exit message construction.

Change-Id: Id1760f7341c59cff807a48757e0f82d22fb43dd3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-22 07:40:44 +00:00
Jarek Kobus
b02e708b6d PythonUtils: Remove code repetition
Introduce isUsableHelper() and use it from venvIsUsable()
and pipIsUsable().

Change-Id: I29c869f544e28d0962bc0e357399db66f48ba3d1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-22 07:40:28 +00:00
Ali Kianian
875053cbaa QmlDesigner: Support color, url, and image types for CollectionEditor
Fixes: QDS-11644
Change-Id: I13f70a45ae380c710888869f9cb9d3b65137fe30
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-22 07:38:49 +00:00
Andre Hartmann
c3d7b4de3e Git: InstantBlame: Lower logging category for non-error
`TextEditorWidget::fromEditor(editor)` fails in the
DiffEditor, so this message is no warning but rather
an info.

Change-Id: I1635b77910e609bda470d2f657916bbc98860af4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-22 07:00:51 +00:00
Jarek Kobus
1c79724519 Perforce: Get rid of the message field from PerforceResponse struct
It's not used anymore.

Change-Id: Icfdefd38942fba1a64052339aa373c0a9254f826
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 21:08:25 +00:00
Jarek Kobus
b92b0d4100 Perforce: Move logging the error directly into the synchronousProcess()
Change-Id: I9d090f2da36d3868e9b4ca2a7f297be62e36e65a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 21:08:20 +00:00
Jarek Kobus
a4177fb238 Perforce: Merge fullySynchronousProcess() with synchronousProcess()
Change-Id: I3b37fca5f66da521540a5dcd4e4a19ff592fa7ef
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 20:56:13 +00:00
Jarek Kobus
ee13281a27 Perforce: Use exitMessage() in synchronousProcess()
This is a standarized equivalent.

Change-Id: I609db7072e9eb645ca391c1eaca9a83dad40e460
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 20:45:20 +00:00
Jarek Kobus
c1e8688eea Perforce: Inline msgWhereFailed() helper
Change-Id: I41da19c488e3a4a72abfb5c7912fdcbc190cc603
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 20:45:13 +00:00
Jarek Kobus
3769c40cbb Perforce: Simplify fileNameFromPerforceName()
Drop errorMessage arg. There are 2 callers of this method
1. PerforcePluginPrivate::printOpenedFileList() was ignoring this arg.
2. PerforceEditorWidget::findDiffFile() was just printing qWarning().
   In this case, instead of printing a warning, append a relevant
   error message to the VcsOutputWindow. Note, that this is done
   in case the passed quiet is false. Once, it's done implicitly
   by the call to runP4Cmd() and passing ErrorToWindow flag.
   The second possible message is explicitly sent to VcsOutputWindow
   in case of !quiet.

Change-Id: I257d474b958b09965ffabdd09ff2e0fb253a0bf8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 20:45:07 +00:00
Jarek Kobus
f200fe99a1 Process: Get rid of timeoutS()
The setter setTimeoutS() is going to be removed soon.
It's going to be replaced by the extra arg to runBlocking().

Change-Id: I60b8c952ba5e27e36183f8652aaa92059e08746e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 18:37:04 +00:00
Jarek Kobus
290121bc21 Process: Use more rawStd{Out,Err} const methods instead of mutable ones
Avoid using readAllStandard{Output,Error} mutable methods if possible.
Use non-mutable methods when we are not connected to
readyReadStandard{Output,Error} signals.

Change-Id: I2e830e571b9eab2177fd856bbe06dfc5137d9c01
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 17:21:25 +00:00
Jarek Kobus
6ed9552be2 Process: Introduce rawStdErr()
Complementary to rawStdOut().

Change-Id: I621b5b9858f775139a2c900f06812d9dd249d034
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 17:20:15 +00:00
Jarek Kobus
7fc991ac8e Process: Remove no-op calls to setTimeoutS()
The timeout is only used with runBlocking(), otherwise it's no-op.

Change-Id: I7d81e4a73c7182bd19c435c112a2d64c3f40ba2e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 10:14:07 +00:00
Jarek Kobus
ce6087a591 VcsCommand: Don't use Process::timeoutS()
Use Job's timeoutS field instead.
The Process::timeoutS() is going to be removed, soon.

Change-Id: I2f2fc7ed99e51242d364a423234321e00ae52b75
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 10:14:00 +00:00
Jarek Kobus
cccfa9b55c VcsCommand: Get rid of unused private timeoutS()
Change-Id: I9a105e7454a2407ed855d10a715195ed6638aaf3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 10:13:53 +00:00
Jarek Kobus
04b80f092a ProcessProgress: Add setExpectedDuration() method
This is not the same as process timeout, so make these two
settings orthogonal.

Change-Id: I3fc774c183282fe770feb49258d77d0ce3637b38
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-21 10:13:46 +00:00
Orgad Shaneh
04d7858250 Debugger: Fix compilation without tests
Amends 3f224291e6.

Change-Id: I0cacfa8be8fa507d8db98dbed506331d007cfb8d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-21 09:01:02 +00:00
Jarek Kobus
6fa2e00425 Process: Get rid of internal event loop field
It was only needed for runBlocking() in event loop mode.
Handle it locally from the runBlocking() function.

Change-Id: I6eb0830b223977bbf0fc73f0cdf4f3b4cab962b5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 20:10:18 +00:00
Jarek Kobus
c86a19a56e Process: Fix stopping the process while message box is visible
When process finished while the message box querying for
a process to be stopped after a timeout was visible,
don't try to stop it and don't report a hang.

Change-Id: I74a819244a96d9e0209cabc6d58c0a1c4fe1ac31
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 20:10:12 +00:00
Jarek Kobus
767e11aa5d Process: Simplify timeout related internals
Get rid of two internal fields: m_hangTimerCount and m_waitingForUser.
Rename m_maxHangTimerCount into more meaningful m_timeoutInSeconds.
Fire single shot timers instead of a timer with interval.

Change-Id: I10890101273719f55a591eaecf818067aa5c503c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 20:10:06 +00:00
Jarek Kobus
9aa37ee9d9 CMake: Omit a call to setTimeOutMessageBoxEnabled(false)
The false is a default value.

Change-Id: I94eb7c58ed591171de677f1dfc0d80a0c751d36d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-20 19:04:48 +00:00
Andre Hartmann
95aa370b69 Git: Remove now outdated function comment
Amends 98c0e9764a

Change-Id: I9f7bf520bb5ead83d883a554c97400d183f6fcee
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 17:41:50 +00:00
Andre Hartmann
6f665c26a5 Git: InstantBlame: Init m_cursorPositionChangedTimer in ctor
Needs to be done only once, and fixes a dangling
pointer if setup() was called twice.

Change-Id: I02722daf5dffdfb2d4bb70de77436eb8d930806d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 17:32:38 +00:00
Andre Hartmann
7493b3a630 Git: InstantBlame: Fix multiple blame after file save
* Move document changed to slot and make sure it is a
  unique connection to prevent multiple slot calls
* Still we get two changed signals after save, which
  caused two blame calls, avoid this with a marker

Change-Id: I8f09ebc8c3cf9f9832fe2725c69acbea9a6b8c28
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 17:32:28 +00:00
Andre Hartmann
e071a2d0ed Git: InstantBlame: Add categorized logging
Change-Id: Ic0e6e30a969fa4908d280e3dbb5c2395972d962d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 17:32:21 +00:00
Jarek Kobus
a475d89b5a Process: Get rid of debug enums
They are either not used or not usable.

Change-Id: Ib0e75624a3bd0d1fa98e45ffe1f5e15ef4db1217
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 17:31:36 +00:00
Jarek Kobus
cbec5438b4 GitClient: Change synchronousStashList() signature
Get rid of unused errorMessage arg.
Return the stash list directly.

Change-Id: I9bf156c5ecda476a5def3c3490d6cb13d011a3cd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 16:40:40 +00:00
Jarek Kobus
ee09a28e83 GitClient: Make stashNameFromMessage() a static local function
Get rid of unused errorMessage arg.
Return the stash name directly.

Change-Id: I11e7b0ef4dcaa38293cbf5d20b7213cc06850257
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 16:40:34 +00:00
Jarek Kobus
2d54995622 GitUtils: Get rid of unused Stash::clear() method
Make parseStashLine() a local static method returning optional Stash.

Change-Id: If702a4485ce87336ab829b522258e62a930589bf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 16:40:28 +00:00
Jarek Kobus
98c0e9764a Git: Use QVersionNumber for git version
Parse the version string with base 10 now.

Amends abee98b44817d1aee63b5cd9b673d0c3aa1733ba

Change-Id: I2f0b47380a9714b3f3de475ddabe78875db3b608
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-20 16:30:51 +00:00
hjk
cd4f62ebf8 Valgrind: Move test object creation closer to tested code
Change-Id: I896c7f7c1d99a62bc869f3511c036123a78afc29
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 17:00:02 +00:00
hjk
eea8f42ea4 VcsBase: Move listening to closing submit editors into plugins
Change-Id: Iaab385621f84bcb6e1f6e79cffc198fbd0554c30
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 16:59:47 +00:00
hjk
dbac3e9225 Vcpkg: Move test creation closer to tested code
Change-Id: Id135a9225bcc8806d89c7589d68f9c21200d9374
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 16:57:35 +00:00
hjk
6e595d63a0 QmlPreview: Move test creation closer to test code
Change-Id: I7d44c332cd1fedf28854953d7bd649fbd6176fbf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 16:20:08 +00:00
hjk
e845a551a4 PerfProfiler: Move resource counter test creation closer to test code
Change-Id: Ie4fb52d171eabfa4440ed937ea57003a152f7338
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 16:19:21 +00:00
Dominik Holland
295e4373fe AppMan: Allow the user to change the deploy steps
Change-Id: I972967c5b6f00712c687cc687f89f277be9d97da
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-19 16:18:42 +00:00
Jarek Kobus
52305ae1ae QnxDevice: Set SourceProfile to true by default
Task-number: QTCREATORBUG-30193
Change-Id: Ia55ad575bc4e62f7ff9e71263c467c089eb092ed
Reviewed-by: hjk <hjk@qt.io>
2024-01-19 16:16:04 +00:00
Mahmoud Badri
891346995f EffectMaker: Fix slight gap issue when quickly drag-n-drop nodes
Fixes: QDS-11369
Change-Id: I318d48570f35f70ea7a68da160a9a54df381e468
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-19 15:50:28 +00:00
Miikka Heikkinen
b904583902 EffectMaker: Fix preview of effects with default samplers with no path
Qml string for preview component is not regenerated every time
uniform values change, so we must always create the Image element
for sampler uniforms.

Fixes: QDS-11709
Change-Id: Idf82a7c69a5a79389f755c45119c97ba54f4581f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-19 15:49:29 +00:00
Shrief Gabr
dd5820981c QmlDesigner: Set focus to column name when adding a new column
Task-number: QDS-11694
Change-Id: I72335989588381a3235dbe4693ba5f169f0ab860
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-19 15:34:59 +00:00
hjk
225762dbe5 ClangFormat: Move ClangFormatGlobalConfigWidget definition to .cpp
Not needed outside anymore.

Change-Id: If5dc3e8b3eddaea59d2633f480abeadda140f564
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-19 15:10:13 +00:00