Make passed widget a parent of the context.
Fixes: QTCREATORBUG-27570
Change-Id: Ifbc9db8d5b3fb95566e2c6b83df9c10d02f7c0e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
On macOS calling clang sometimes produces some output to stderr.
This would be captured by "runGcc" when detecting the triplet, which
would then show up in the preferences and had negative effects
on abi detection later on. To work around this, we only capture
the first line of output.
On macOS the auto detection code incorrectly assumed that if the
architecture is different it would not be able to run on the host.
This is not true if the Host is Arm, and the target is x86.
Change-Id: I3cd151dc6ad83142fb9643ba7b03a155e754c6d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Linux distributions can get creative with the location of the clang
headers. So if we find a clang executable alongside clangd, ask it for
the base directory and try the hardcoded paths only as a fallback.
Fixes: QTCREATORBUG-27760
Change-Id: I9480b170df05598255c01be44be4b0312d0929f8
Reviewed-by: David Schulz <david.schulz@qt.io>
Icons generated for components can change if the component is edited,
so don't cache them locally at Image level.
Also increased the compression timeout for component library updates as
200ms can sometimes be too short during project load.
Fixes: QDS-7068
Change-Id: I98a0920c4237a1147e9fb5da834e1dc235ae28f5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Brought back checkboxes: format while typing, format on save.
Brought back format while typing feature.
Global checkboxes will be hidden in project settings,
and visible for global.
Change-Id: I193cf9e13b10de22091edb5fe04aef957dd74586
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
The QmlDesigner predates Qt Creator and is using longer line limit. To
prevent strange formatting this .clang-format file is relaxing the
limits a little bit. It's is still 100 letters but it can be longer if
otherwise "strange" line breaks are introduced.
Change-Id: I26bfdf4e7a62ed2daf09b5673dac30be7b3cec5c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Add icon section to all property editor specifics related to
AbstractButton
* Add icon as a banned property for MCU
* Fix disable state in FilterComboBox
* Add QQuickIcon as a special type in node meta info
Change-Id: I77595337a049952ab030210d90bc1a11327cf79c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This is unneeded when followed by waitForFinished().
Change-Id: Iec035eb6c433fc354c83123f2d7f2c3517bd6bbe
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Connect to started() signal instead. Delete the process
later when process failed to start.
Change-Id: I9901a52c90b018af06348892e2bd97cf967418af
Reviewed-by: hjk <hjk@qt.io>
This basically inlines the current rawPath() implementation
on the user code side, keeping behavior the same.
Baby steps towards the originally intended swap of rawPath()
and rawFilePath() implementations.
Change-Id: Ib61887bfdc4485a17856c0dbc7c7c5dba7c3e0e3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
The mouse cursor is hidden unconditionally in Qt, so do not give the
impression that this can be disabled. Also we have a bunch of bug
reports that claim that the cursor does not come back if the mouse is
moved after typing. This might be caused by the double hide of Qt
Creator, Qt and the moon phase.
Fixes: QTCREATORBUG-27572
Change-Id: I11b39cac6cd8eb0717fca00d1812a4e052223f21
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This is unneeded when followed by waitForFinished().
Change-Id: I9191cc40d98f496f12537fdd12634cfb09dffdbb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This is unneeded when followed by waitForFinished().
Change-Id: Ibeaeca8019ff3da98bedba75c96171b2a4ccc651
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This is unneeded when followed by waitForFinished().
Change-Id: Ifc63feb2abbbc38bf4b119489ceb07320c383499
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This is unneeded when followed by waitForFinished().
Change-Id: Ief0e786290d590ed749dc2373bf53936e320b841
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
When importing a CMake build, the CMake version that's used in the build
could be registered as "CMake 0.0.0". This is obviously wrong.
Fixes: QTCREATORBUG-26999
Change-Id: I1401106806c4356516e8235a3767d9615e4d428d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
We can easily delay this, and if git acts up for some reason, we don't
have to block startup.
Task-number: QTCREATORBUG-27765
Change-Id: I25aa6f8d04d1fd4b9d87f8ccf7ffd591f7bbe519
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Adds a new option for creating qmlproject-based MCU projects
in the "New Project" wizard. The generated qmlproject file
contains all the supported properties and nodes, prefilled
with their default values, for easy tweaking by users without
requiring to dive into the documentation.
No extra fonts, translations or images are generated, but
empty placeholder nodes for them are found in the qmlproject file,
for the user to fill in.
One custom module with a simple Text item is generated, in
order to demonstrate how to use the modules feature.
The required QmlProjectExporter version for building the project
is the one packaged with Qt for MCUs 2.3.0.
Task-number: QTCREATORBUG-26042
Change-Id: I4569306f2f6e7b9370dfa65cacd0b65c2e4fcb06
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: Erik Verbruggen <erik.verbruggen@me.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
And add a menu entry Help > Change Log... (macOS: Qt Creator > Change
Log...) for looking at them.
Change-Id: If444b3ff2465290b9beb4ccbb8d0ddf32a636db4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This reverts commit 323ba720db.
Reason for revert: The feature is needed
Change-Id: Iaf09ef91c49ff0c85c1b5906a1c1464bd8e4cae6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Currently if no CMake has been registered and a CMake project has been
openend the user will get the error:
"CMake version is unsupported. Update to version 3.14 (with file-api)
or later."
With this patch the user will get the error:
"The kit needs to define a CMake tool to parse this project."
Change-Id: I555884fff1eac321052998d1ef7970a49b2f44af
Reviewed-by: hjk <hjk@qt.io>
It currently can't work for any remote setup, not just for docker.
Change-Id: I597dc9a0d51f0dafb6c45c635bef0cd047a4ab2c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Macros are used like identifiers; there is no reason why they should need
to have the same highlighting as a preprocessor directive.
Fixes: QTCREATORBUG-23548
Change-Id: I186befc06ccb36a00451fd707c41e3687a84af14
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
For AndroidDeployQtStep::gatherFilesToPull to pull the right
app_process, the first attempt at getting the ABI is a peek inside the
APK.
If that APK does not exist yet (due to clean 1-st time build), it falls
back to get the "AndroidAbis" from the project node. That fails in the
case of CMake because AndroidAbis is only set by qmake, and never by
cmake.
Thich change adds another fallback to query "AndroidAbi" instead.
Fixes: QTCREATORBUG-27737
Change-Id: I2e944d6d30a61047b4c66ed73211296c87d57b51
Reviewed-by: hjk <hjk@qt.io>
When outputting a commands stdout / stderr / exitcode,
the shell was free to interlace different outputs.
This could trip the parsing of the output, leading
to the shell missing the exit code of a command.
When that happened, the caller might wait indefinitely
for a result that would never come.
To workaround, the shell script now writes each command output
to a temporary file first, which is then written to stdout
by a single subshell, that way guaranteeing that the output
of multiple commands will not interleave
Change-Id: I9d8e7e788f5922c612ff533e5ba063f61a22aa8c
Reviewed-by: hjk <hjk@qt.io>
This reverts commit 7d4d57165c.
The change signal should be send from the editor widget, so no need to
call it again from the function hint widget, since it also cancels the
automatic proposal timeout that triggers the automatic completion
request.
Fixes: QTCREATORBUG-27305
Fixes: QTCREATORBUG-26959
Change-Id: I37810e0a6083396bd0375b4ae28aa07389a5079c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
The order we get from the server might not be in the order of appearance
in the document.
Fixes: QTCREATORBUG-4346
Change-Id: I0badba7fd40619b2aa20a81b6a86b43dc9e6a1b1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Connect to done() signal in order to detect the start
failure and try to start a gitk from different path.
All trials of starting gitk are done sequentially
and non-blocking.
Give process a parent in order to avoid process leak
on shutdown.
Change-Id: I1d74bfeaca23d38643f3d2f262428732314aefe4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>