Commit Graph

88653 Commits

Author SHA1 Message Date
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
hjk
fddbb0e2d9 ClangFormat: Move ClangFormatStyleFactory creation closer to its code
Change-Id: I2378846e1dd9076b62e5d68cb75b7e0d9e4d65b0
Reviewed-by: hjk <hjk@qt.io>
2024-01-19 15:10:04 +00:00
Miikka Heikkinen
48229586fb QmlDesigner: Initialize m_hasEffect properly
If left uninitialized, this randomly hides items in 2D view,
when parent is incorrectly detected as effect.

Fixes: QDS-11367
Change-Id: Ie504fce80dcebd7da943a3107b760c80218e9f91
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-01-19 15:05:57 +00:00
Miikka Heikkinen
57863751f7 QmlDesigner: Fix issues with reparenting effect nodes
No longer set position for reparented effect nodes.
Don't allow reparenting effect node if the new parent already has an
effect node.

Fixes: QDS-11686
Change-Id: I8428311d31e3f243f595938dc44c11e4b1fd04bc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-01-19 15:04:09 +00:00
Henning Gruendl
d59b056820 QmlDesigner: Fix Connections syntax
Fix the Connections syntax to avoid warning:

QML Connections: Implicitly defined onFoo properties in Connections are
deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }

Change-Id: I8ff33445443b0d5b36a7ce40f7d5a0b6b99abdcb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-19 15:02:15 +00:00
Mahmoud Badri
a311055f8f EffectMaker: enable effect maker plugin
Change-Id: I6d7ecedf026bfd0ccd8a594b002f7a90e1e8b234
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-01-19 14:57:33 +00:00
hjk
5193ab0d37 ClangFormat: Code cosmeticcs in indenter base
Change-Id: Ibbc65d1d42de1d501adfcf31825ee95ef55328b2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 14:56:27 +00:00
hjk
fc706838ef ClangFormat: Hide plugin class definition in .cpp
Change-Id: I37017641a55287b5049d99064a2ca77c6a7dc201
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 14:49:12 +00:00
hjk
3f4dc07aea ExtensionSystem: Collect test objects centrally
Change-Id: I60cd128f0514116ef85c3f7fb040cf13ea82be66
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-19 13:39:00 +00:00
hjk
7ff6e555e3 ResourceEditor: Use ActionBuilder
Change-Id: Ibc6c114555d7b31f0a87a9727543313f50ab91d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-19 13:38:51 +00:00
hjk
f2fb88df2e ClangFormat: Move test creation out-of-sight
Change-Id: I6403f5e0ab4783075ff6e87299317dc1988140db
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 13:38:30 +00:00
hjk
5f9b36b45a ClangFormat: Pimpl ClangFormatBaseIndenter
This avoids the large-scale exposure of #include <clang/Format/Format.h>
which otherwise confuses moc.

Change-Id: I1d48174bd5f940e03986b58a7efa5e537cc99781
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-19 13:38:26 +00:00
Mahmoud Badri
ab65b86c90 EffectMaker: Scroll to bottom when adding an effect node
Fixes: QDS-11434
Change-Id: Ia1010f83468e3243eff4f3f0fbecb4ef733b523b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-19 12:58:17 +00:00
Leena Miettinen
62c0e5024e Doc: Split "Modeling" into several topics
Task-number: QTCREATORBUG-29361
Change-Id: Iaffaf6d148d05738d92d9ccd8fe634c4b2be063d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-19 12:50:41 +00:00
David Schulz
15a1fd6afc TextEditor: reduce complexity of bookmark requests
Since the book mark support is nowadays part of the text editor plugin
we can directly access the bookmark manager from within the editor
without the indirection over the TextEditorPluginPrivate.

Change-Id: I5c04679d6583c06d615d489d3891431adcb64834
Reviewed-by: hjk <hjk@qt.io>
2024-01-19 12:45:16 +00:00