Commit Graph

72385 Commits

Author SHA1 Message Date
Thomas Hartmann
46e2683f0d QmlDesigner: Collect usage statistics for contex help
Change-Id: Ie1a1250abc6e55c13d71d8545a50d539f4360392
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-09 07:12:54 +00:00
Thomas Hartmann
9e1c2232a4 QmlDesigner: Remove Studio3D item from metainfo
Change-Id: I682e655e4369bb4d59a8a7b2c74be2427dbf14a0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 18:11:43 +00:00
hjk
2962da2255 CMake: Prevent crash if kit has no toolchain
Amends beb167a963.

(cherry picked from commit b3375cfd56)
Fixes: QTCREATORBUG-26777
Change-Id: I65feee771a21bdfbb2a102419a0d778af97a22eb
Reviewed-by: Christiaan Janssen <christiaan.janssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-08 18:01:19 +00:00
Knud Dollereder
b9d59edeb1 Cleanup ConnectionManager
- Do not block starting the puppet processes while waiting for the reply
- Remove unnessecary connection.clear() from ConnectionManager::shutDown
  since this was already done in closeSocketsAndKillProcesses
- Remove Timers from ConnectionManager::closeSocketsAndKillProcesses
  since they leak memory and termination of the processes is done in
  QProcessUniquePointerDeleter
- Remove second deleteLater from QProcessUniquePointerDeleter since this
  is handled by the connection to the finished signal

Change-Id: If845ea44f483c5d3c646595ff9298bcdd3dfd59a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 17:52:37 +00:00
Knud Dollereder
8e3496a6ce Do not call endResetModel twice
Moved beginResetModel/endResetModel calls out of
ItemLibrary::updateVisibility into the calling functions.
This way endResetModel is not called twice in ItemLibraryModel::update.

Change-Id: I9588ba97aeb9da7c5a629612c9b3dc6315859501
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 17:52:21 +00:00
Mahmoud Badri
9c5e6e2d8c QmlDesigner: Split components and assets libraries
Fixes: QDS-6151
Change-Id: Id6f79a2d1fcff5fb55d3ba3f1b1394f1f55ca36b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 17:09:40 +00:00
Cristian Adam
93f4659533 CMakePM: Add "Close" button for Kit Configuration dialog
This looks more in sync with other dialogs that we display.

Change-Id: I445da900982b7bdcc12d810e69170b0a7695b30c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-08 15:47:29 +00:00
Thomas Hartmann
93a9345fdd QmlDesigner: Improve finding node for cursor position
Using nodeLength(node) is very slow, while searching for the next closing
bracket is nearly always sufficient.

Task-number: QDS-6110
Change-Id: I22f710f4cf90302192285a8cadd6ea6fc698b2a6
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-02-08 15:32:12 +00:00
Leena Miettinen
67e4e4f5a7 Doc: Describe new option in Qt Quick Autotest project wizard
The "Generate setup code" check box executes C++ code before
any of the QML tests are run.

Task-number: QTCREATORBUG-26741
Task-number: QTCREATORBUG-26610
Change-Id: Ica4d0391e3624196b3327267f5a3082ca57b58cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-08 14:58:33 +00:00
Christian Stenger
d8bd4e8e05 Tests: Fix pluginspec test on Windows
Change-Id: Ie72131f2e85b999ef8aaefd773407b2c5ce23019
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-08 13:41:06 +00:00
Christian Stenger
ade68514ff PE: Tweak clang detection
Helps to detect clang on docker devices.

Change-Id: I9340900e205e767d8b058f6e69c61abf41c25726
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-08 13:40:56 +00:00
Leena Miettinen
68592ad59e Doc: Update info on clangd, which is now used by default
Update the text and screenshot.

Task-number: QTCREATORBUG-26610
Change-Id: Ie35f3b6885df49029ac0dbc54677e9e6f472d2c4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-08 13:21:41 +00:00
Leena Miettinen
3926e708a9 Doc: Update info on Android settings
Fixes: QTCREATORBUG-26672
Change-Id: Ifaf9f28b485f965302bca9aa2ec2a308b96d4b34
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-02-08 12:39:57 +00:00
Thomas Hartmann
5c9e64a2a4 QmlDesigner: Increase delay for text editor
This increases the delay from 400ms to 800ms until
the model and GUI is synced with the QML code.
This means the user has to stop typing for 800ms
until the form editor and property editor are updated.

Change-Id: Ia250dec39cd8051d25619310024b718ad1cf9815
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 12:08:50 +00:00
hjk
a89e43d502 ScreenshotCropper: Compile with namespaces
Change-Id: I5c3516071327a2f70bbbac84cc94e9acdecd2673
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-08 12:03:40 +00:00
Alessandro Portale
8c7eee4ff7 Core: Fix "reactiveness" of FindToolBar
The recently added "Select All" button needs to be included in the
width calculation.
If the find buttons switch to icon mode, "Select All" gets hidden.

Also, if the replace buttons are visible, they define whether all
buttons are shwon in full text or get hidden. No icon mode at all in
that case.

Change-Id: Ie85a68c7f7c3f1a6ca51ed3f91d64124eeb7aa1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-08 11:29:33 +00:00
Knud Dollereder
381bfd623c Remove ToolBarWidgetFactoryInterface from WidgetInfo
Since it is sometimes created with new but never used,
it leaked memory.

Change-Id: I5adfb71f9c773be37c1cefc619236bad9f34aad1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-08 10:05:49 +00:00
Eike Ziller
210334218b Add change log for Qt Creator 7
Change-Id: I7e624e6dc6d6a8e0bd8974511724d9c2d24ce738
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-08 09:25:06 +00:00
hjk
a8092c9708 Doc: Add a hint on what to do when stuck with older CMake versions
Change-Id: Ia68b0ae94f69eca8fd674d7537f35af1b0f685bb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-08 08:58:17 +00:00
hjk
57afbae543 CMakeProjectManager: Move some markup out of translated strings
Eases the pain of translators.

Change-Id: I7327958ee0628698ab326b3c8d6518d3330b83dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-08 08:57:59 +00:00
hjk
f308bb3cae Debugger: Fix value assignment in locals and expressions
For booleans and numbers.

Change-Id: I5ff1660faee1bf0ed21211d5fe98462f660fb417
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-08 08:44:57 +00:00
Xiaofeng Wang
0d17063e82 macOS: use string array to be compatible with both bash and zsh
By default, zsh does not split words in string by spaces.
See https://zsh.sourceforge.io/FAQ/zshfaq03.html

Change-Id: I167bae2af628be5b2fc9429a090628b6049f7ce4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-08 08:04:18 +00:00
Leena Miettinen
80dee0fd32 Doc: Describe using system editor by default
...for files of a particular MIME type.

Task-number: QTCREATORBUG-13880
Task-number: QTCREATORBUG-26610
Change-Id: I6866849b861c124b7a4e028a4ee62b7ad47239aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-08 07:55:19 +00:00
Aaron Barany
03a0ed0786 Debugger: Use queued connection for menu actions
Pass the parent calling object to the addAction() functions and use a
queued connection. This prevents the following sequence of events:

1. The menu is dismissed when selecting a menu item.
2. The deletion gets queued via deleteLater().
2. The onTriggered action gets invoked and opens a dialog box.
3. The dialog box triggers the events to be processed.
4. The menu is deleted when processing the events, while still in the
   event function to handle the dismissal.

This only affected the watch menu since the others were leaked. Added
cleanup handlers for the other debugger menus to avoid leaking them.

Task-number: QTCREATORBUG-26989
Change-Id: Ifa2c52d7bea884c55d43fa545e3e2870301e4052
Reviewed-by: hjk <hjk@qt.io>
2022-02-07 20:20:58 +00:00
Aaron Barany
ccad4fa924 CMake: Better detect imported tool locations
On some systems IMPORTED_LOCATION isn't set, but configuration-specific
locations like IMPORTED_LOCATION_RELEASE are. In these cases, fall back to
the location of the release build if the default isn't found.

Fixes the build on Arch Linux.

Change-Id: Iff87a8356302a260b2ac5f959f835d1cdf8a5c65
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-07 20:20:38 +00:00
Alessandro Portale
f132b09c4b QmlDesigner: Use QmlProject::isQtDesignStudio()
Use QmlProject::isQtDesignStudio() instead of checking various settings
sources in order to determine which product is currently running.

Change-Id: I3f08eb147e7dbbde3e2984d63c39d48c12530aaa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 19:14:26 +00:00
Henning Gruendl
4f4d34bc5e QmlDesigner: Add missing color enum
Change-Id: Ie72912393ff2ffedea8c9ddb3a4a97023fad001a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-07 17:35:32 +00:00
hjk
347265a969 CMakePM: Use more direct access to SourceDirectoryAspect
Change-Id: Ifc91b13fcdc9c42ad4a9521656a2bf63e08aaf78
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-02-07 17:16:58 +00:00
hjk
c6643dad65 CMakeProjectManager: Some code cosmetics
Move non-exported classed to Internal namespace, move some functions
out-of-line.

Change-Id: I3a2135104d09c0c3f799c5b8d795c93059b1ae95
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-02-07 17:16:33 +00:00
hjk
363849a372 CMakePM: Also show type of options in configuration tooltips
Change-Id: Ie6b6b270c83d7c5df117c16d637f362e8c01eaad
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-07 15:40:24 +00:00
Eike Ziller
68fd73713b Merge remote-tracking branch 'origin/7.0'
Change-Id: I967615c66a11bb4823a6b403ca59e63dd1971032
2022-02-07 16:34:41 +01:00
Thomas Hartmann
454682ea3f Do not enter edit mode when opening a .qmlproject as QDS
If the user opens a .qmlproject in QDS mode we do not want to
enter the edit mode by default.
We check the startup project after opening and calling
openEditMode() will determine if we keep the default of opening
the edit mode or not.

Change-Id: Ic8a7fbefa007d487ec680099544c07fe007c0b29
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-07 15:17:54 +00:00
Christian Kandeler
9185875677 ClangCodeModel: Adapt tests to recent clangd regression
Change-Id: Ic48e1b9b85804f605edb5a2edab18f93dd7dec7d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-07 13:28:26 +00:00
Orgad Shaneh
be1f89c93c DiffEditor: Fix git diff parsing for rename + mode change
Sample output:
diff --git a/projects/cosign/build.sh b/projects/argo/build.sh
old mode 100755
new mode 100644
similarity index 88%
rename from projects/cosign/build.sh
rename to projects/argo/build.sh
index 87d865d2..14b8885c
--- a/projects/cosign/build.sh
+++ b/projects/argo/build.sh
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
 ################################################################################

+$SRC/cncf-fuzzing/projects/argo/build.sh
+

-compile_go_fuzzer github.com/sigstore/cosign/test FuzzGetPassword fuzz_getPassword gofuzz

Change-Id: Ifa66dfdb80b309d72f524f15c681823ab7e133ba
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-07 12:56:40 +00:00
David Schulz
9f7c822197 CodeAssist: reset flag before starting new processor
If a new processor is started while waiting for a result of a still
running procesor reset the flag whether content was received while
waiting.

Change-Id: I21a254681050d1db077deec88706f0010670e0ac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-07 11:50:04 +00:00
Henning Gruendl
557a3c9af7 QmlDesigner: Add new node hint
Add a new node hint called "bindParentToProperty" which enables the
metainfo file to specify an automatic binding of a nodes parent id to an
arbitrary property.

Change-Id: Ib16955df608cdca5732882afc1f5ba0891283ca5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 11:43:43 +00:00
Henning Gruendl
ff7a0e92e8 QmlDesigner: Add missing tr()
Change-Id: I06388a3b93eed154620252d13ff68481b766983a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 11:41:28 +00:00
Leena Miettinen
ea7b370fe9 Doc: Update CMake configuration info
- Initial variables are now listed in the Initial Configuration tab
  and current ones in the Current Configuration tab.
- CMake builds can be stopped.
- Variables are no longer grouped according to their prefix.
- Kit Configuration button enables setting CMake options for the
  current kit.

Fixes: QTCREATORBUG-26983
Change-Id: I0b8696adc9d442b4c33c6e3c34739e5583254cd9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-02-07 11:07:27 +00:00
Christian Stenger
e310ce43dc StudioWelcome: Fix linking on Win
Change-Id: I573ca5b3bd730f4519bae27e29e33f627e51aa81
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-07 11:06:56 +00:00
Christian Stenger
a9fbd675e2 Doc: Document logging viewer
Task-number: QTCREATORBUG-26929
Change-Id: I67e7ab32ab92e28c1d9b018801872d0e111e1971
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-07 09:42:47 +00:00
Orgad Shaneh
6612fd16a7 Git: Fix parsing in mergetool
Amends commit 50586c7bb8.

Fixes: QTCREATORBUG-26994
Change-Id: I799d05590b3433ec165d9d7f9143bea7d66b9711
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-07 09:26:25 +00:00
Henning Gruendl
73ae5bb1f6 QmlDesigner: Show error/warning for root reference
Show an error when an alias property references the root item directly.
Show a warning when an alias property references the root item in a
hierarchy.

Task-number: QDS-4380
Change-Id: I312fc0296e3bb2321a4d9e1113bd0cd4c1c0b8ed
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 09:25:05 +00:00
Henning Gruendl
ac7ed5bebe QmlDesigner: Add switch to StudioControls
* Add switch control
* Add additional color to all themes

Task-number: QDS-6146
Change-Id: I75c8aa2dc0dd75cf5b3ac1e025b05ad5110d5b9e
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 09:24:53 +00:00
Leena Miettinen
85e9a7a9c2 Doc: Describe filtering Git log by author and toggling colors
Task-number: QTCREATORBUG-26610
Change-Id: I72abb044d6ab54f83b76b72b34b500ed5ea8c47d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-02-07 07:55:13 +00:00
Janne Koskinen
53ed379314 Fix compilation after API change in QtDeclarative
Change-Id: Ibaeaa4b089a508b1cb44b5f90921675b49b3beb3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-07 06:26:47 +00:00
Orgad Shaneh
dd70101d7b Git: Block branch refresh for actions that open a new editor
Refresh is called twice - first time when the editor is just opened, on
this call the repository can be either empty, or the active project (even
if the current file is from another repository). After the editor is
initialized, setSource is called, and the state is recovered.

But between these 2 calls, m_repository is empty, and synchronous actions
are still executed (and fail).

Fixes: QTCREATORBUG-26952
Change-Id: I1767b35f0e9f24da2c447d0b565b410742c560d9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-02-06 06:20:28 +00:00
Aaron Barany
ba08864954 PerformanceAnalyzer: Fix tracepoints script
Fixed issues seen running the tracepoint script in Arch Linux:
* Use /lib/ rather than /lib for the call to find to work with cases
  where /lib is a symlink.
* When finding <name>_ret entries in match_tracepoints, search for
  <name>_ret__return if the initial check failed. Newer versions of perf
  seem to decorate the name with __return when the function name is
  followed by %return.
* Handle arrays output from the call to awk in match_tracepoints. This
  can happen when multiple functions are added with the tracepoint, and
  breaks when checking for "bad" probes when a loop isn't used to add
  individual checks for each entry.

Fixes: QTCREATORBUG-25651
Change-Id: Ie528b4d80f9ece8f23d27a84356c74577219ed45
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-02-04 22:14:16 +00:00
Cristian Adam
612529f2a7 CMakePM: Update generator label in Kit's CMake settings
Now only the parts of the generator that have a value are displayed.
Previously the label had "<none>" for the missing values.

Change-Id: I666bd04c94c47410ee71912dc0cebbcc6c6c79d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-04 19:37:45 +00:00
Cristian Adam
924862093e CMakePM: Apply Kit CMake configuration to Initial Configuration
When the user changes or adds new CMake Kit parameters, the changes
are reflected in the Initial Configuration.

Change-Id: Icca1c76749c772e946ff250f94b7965cf7cf9ee8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-04 19:37:20 +00:00
Cristian Adam
201f91b867 CMakePM: Mark as changed only the changed values in "Batch Edit..."
Previously all values coming from "Batch Edit..." would be considered
as user changed values and be displayed with bold font.

This means that if I had -DMY_VAR:BOOL=ON and do a Copy and paste
in "Batch Edit..." I would have it displayed as user changed and
it would be passed to CMake as changed value.

Also it should be possible to start with -DMY_VAR:BOOL=ON, click
the check box to make it OFF and then do a "Batch Edit..." with
-DMY_VAR:BOOL=ON to set the value back to original value.

Change-Id: I5f6cb915b32a3288c1339135dabfd182ca16feda
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-04 19:36:10 +00:00