Commit Graph

76686 Commits

Author SHA1 Message Date
Eike Ziller
2456f8f568 Convert file search API to FilePath
Fixes: QTCREATORBUG-28135
Change-Id: Iec8fcbae40adcccbe775de5719a657f5aa30a941
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-12 12:24:48 +00:00
Eike Ziller
c9e0d08571 COIN/GitHub: Use Qt 6.3.2
Change-Id: If49d111eec5cd4b4a229c3f21ff282733dd3fbb2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-12 11:59:17 +00:00
Eike Ziller
2c51e4bc17 FilePath: Return optional bytearray for file contents
For differentiating between "error" and "empty file".

Change-Id: I2c019ceac625e7be3180afa4d47ae3a24df91c1d
Reviewed-by: hjk <hjk@qt.io>
2022-09-12 11:57:04 +00:00
Jarek Kobus
1df6806e0b GenericDirectUploadService: Check exitCode when handling failure
Task-number: QTCREATORBUG-28151
Change-Id: Ib61959ce792208edb1acb5cf1131e34c248cd795
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-12 11:51:44 +00:00
Christian Stenger
28349c1b08 McuSupport: Fix tests
Change-Id: If8d8f00bef3ebf163f59036661e6b99be9b3e2ec
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-12 10:30:38 +00:00
David Schulz
57f80dc813 Downgrade Source Code Pro font
The old version looks crisper. Downgrade to
Roman fonts version 2.030 and Italic fonts version 1.050

Fixes: QTCREATORBUG-28106
Fixes: QTCREATORBUG-28139
Change-Id: Iec077fddf2ddba71b8b2cd7de92f397e12b6dc65
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-12 10:17:09 +00:00
Robert Löhning
11ea9fde23 Remove outdated version checks
Change-Id: I972a7fe0842a0310ba5df1233a4f417627dad87c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-12 08:44:49 +00:00
Knud Dollereder
b3359f28a6 Use Mouse wheel and ctrl to zoom the curve editor
Change-Id: I85001a2173e69887f72c2e0b366861e0753dd8a3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-12 08:24:25 +00:00
Marcus Tillmanns
ffe71ddba6 Utils: Make assert output standard conformant
Most IDEs support the "filename:linenumber" format to create shortcuts
to locations in code. This changes QTC_ASSERT() to output this format,
to make it easier to understand the reported issues.

Change-Id: I74f3f121c04ba262628ab73c457fa3e5fa760a04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-12 08:21:24 +00:00
Thomas Hartmann
0192cef3bb QmlDesigner: Make DynamicPropertyRow::commitValue state aware
Change-Id: I2f6d93be6fe1f92637902138ac9f073f18f1af22
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-12 06:51:38 +00:00
Thomas Hartmann
af0728e530 QmlDesigner: Add early return for invalid row
Also avoiding reflection by locking during the write to the model.

Change-Id: I290ae8fa38aae510454d3fa1af020d579881ff9c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-12 06:51:23 +00:00
Alessandro Portale
f2e51011d4 scripts: Fix line number output in scrubts.py
Change-Id: I9e67ba1fe81264d6f0fde42021489c696574065f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-09 21:54:47 +00:00
Alessandro Portale
c21b150aa8 scripts: Improve scrubts.py
Output statistics on removed duplicate messages and merged contexts.
List remaining duplicate messages with identical source but different
translation.

Change-Id: If06f5cfc898c6261863cc53a3c464efead1d9890
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-09 21:44:26 +00:00
Mahmoud Badri
f5b3b5c88e QmlDesigner: Remove empty model from 3D Editor's create sub-menu
Change-Id: Icd6fc773d3f45459e9169406c376a5c47cf41e06
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-09 17:49:45 +00:00
Miikka Heikkinen
ed89cc730d QmlDesigner: Fix material preview env and model aux handling
Converted old auxiliary properties usage in material preview to
the new API. Since most properties need to be both persisted to the
document and used by puppet, those properties had to be duplicated.

Fixes: QTCREATORBUG-28085
Fixes: QDS-7624
Change-Id: Idf51c773a2d49d44413bfaf69d4a683692ea8a0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-09 14:22:57 +00:00
Thomas Hartmann
5f3ef5f991 QmlDesigner: Fix QmlObjectNode::generateTranslatableText
This fixes the case for qsTranslate. A context has to be provided.

Change-Id: I96004f13c84e2269b4226d6c184c7874d74955b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-09-09 14:15:41 +00:00
Thomas Hartmann
d24a09a6be QmlDesigner: Add static helper function for translations
Adds:

  stripedTranslatableTextFunction()
  convertToCorrectTranslatableFunction()

Change-Id: I9f8b50924c4c99cda43d32c03080bab83cfaff44
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-09-09 14:15:31 +00:00
Thomas Hartmann
9aa5a4cc6c QmlDesigner: Convert translation functions
This converts the translation functions when dragging in items
from the library.

Task-number: QDS-7598
Change-Id: Iaed0f6683c2083e1d103ddfc07fe7ba2a2e9224c
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-09-09 14:15:19 +00:00
Christian Stenger
c1556392eb Squish: Avoid crash
Due to high frequency of re-usage of the processes we may clash
with the destruction of a formerly running process using the same
QtcProcess object. Explicitly closing it before (re)starting
cleanly destructs the former process.

Change-Id: Id26e55ac3aaf5c24178d168c6391ae0c51139684
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-09 12:57:23 +00:00
Mats Honkamaa
e9bea54139 Doc: Add info about 3D view background color actions
Document the new options in the toolbar.

Task-number: QDS-7498
Change-Id: I7a6ec6d0a56453240e51fd4149ecc2712e7980b6
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-09-09 12:20:04 +00:00
Jarek Kobus
c94382aea5 QtcProcess: Add an assert about restarting from signal handler
Change-Id: I66ede2c8d726929ceb31a456eb8692e051c1b09e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-09 11:57:57 +00:00
Jarek Kobus
fa9008c7f8 VcsOutputWindow: Don't append \n when line ends with \r
Amends a2797ec80e

Fixes: QTCREATORBUG-27615
Change-Id: I5b2d2bc442696a1560a2af3dfe14e70a9c42cc88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-09 11:29:49 +00:00
Thomas Hartmann
181f9f276c QmlDesigner: Propose Item as property type
Change-Id: Ib0a0cfd0594993e3050b7af38d6ef549b1780b44
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-09 09:23:39 +00:00
Thomas Hartmann
45fb37abe7 QmlDesigner: Use null instead of 0 for Item
Change-Id: Ifd6f06642308a981f7c50604ac1f1db56eabc261
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-09 09:23:26 +00:00
Jarek Kobus
9245c5ddbc Add configure option to x command in locator
Fixes: QTCREATORBUG-26533
Change-Id: Ib6c197646c233b524b5ec0e096b1dcf1ab7df4a9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-09 09:07:21 +00:00
Jarek Kobus
05eec13ade StudioWelcome: Avoid using sender()
Change-Id: I3d075867c9114f52ead920b3120904fc79bba775
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-08 16:22:24 +00:00
Jarek Kobus
bf99841eb9 VcsCommand: Fix progress reporting during execute()
In case of calling execute() the fully or not fully
synchronous setting is no-op now, as we execute
always in the caller thread and don't use blocking
API of QtcProcess and don't create nested event loop.
Behave the same regardless of these flags and always
setup std callbacks if needed.

Rename setupSynchronous() into installStdCallbacks()
to better reflect the current intention.

Change-Id: I93642c61d98a26c16298725f0d910d0dd80414b1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-08 15:41:41 +00:00
Christian Stenger
f7424725df Squish: Update some icons used inside the navigation tree
Turn helper function to return QPixmap instead of QIcon and
scale existing resources to the desired size and take the
device pixel ratio into account.

Change-Id: I1cf73b3dd91ce1c62da8bdd8e81e04a7b0854f1d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-08 14:13:05 +00:00
Thomas Hartmann
744c983578 QmlDesigner: Add images from asset_imports to project
This is required for the cmakefiles.txt generation.

Change-Id: Ic180b06cd2817e32625d7330edb171e223065fae
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-08 12:56:25 +00:00
Tasuku Suzuki
093739485e Fix 1px vertical scroll by wheel on the debugger toolbar
The toolbar is wrapped around QScrollArea.
Because the height of toolbar (=25px) is 1px bigger than the height of
the scroll area (=24px), widgets on the toolbar move up/down 1px by
mouse wheel.

Fixes: QTCREATORBUG-28107
Change-Id: I83dc9c6d7b0916f31d5f0f15f310be3b0d149bec
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-08 12:27:36 +00:00
hjk
e197acd97b Utils: Make tst_fileutils::fromString() independent of host os
Also, add checks for the resulting root() bits

Change-Id: I3f82b5be95ab89c65d904fc941d537582bd54876
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-09-08 11:49:47 +00:00
Marcus Tillmanns
d956ddee71 CMake: Use correct CTest binary if cmake is remote
Change-Id: Ic0ad52a754ccd39bca2e406a324f9e27ec9bc9bd
Reviewed-by: hjk <hjk@qt.io>
2022-09-08 11:48:37 +00:00
Miikka Heikkinen
14fa322019 QmlDesigner: Add bundle importer
Bundle importer can be used for importing QML components from a
bundle that contains various components.

Task-number: QDS-7499
Change-Id: Ic8a122215a52912c993fba62a3bbc7cc068619db
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-08 11:45:04 +00:00
Thomas Hartmann
3478fe12e7 QmlDesigner: Bump version number in wizard
Change-Id: Icfe74081a22b81568dbbbbe210a7fc78df0ccf00
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-09-08 10:43:18 +00:00
Tim Jenssen
e8e30d6afd use initializer lists
Change-Id: I13fdce33c26e975a2a97edf10d4619c753f3229e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-09-08 10:42:37 +00:00
Miikka Heikkinen
3485d97755 QmlDesigner: Add support any pickable node with 3d view context menu
Previously only 3D models could be picked for context menu target.
Now any node that can be resolved from a point at 3D edit view can be
picked.

Fixes: QDS-7518
Change-Id: Id4a30d96744c42907d45688493776bdff35b934e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-08 10:36:11 +00:00
hjk
9434567cdb RemoteLinux: Propagate FilePath a bit further in KillAppStep
Change-Id: I566ab0a10dea4ad31909ee10810a982b4a216d67
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-08 10:21:43 +00:00
hjk
2006d41680 Debugger: Store tdata as member in Type
Change-Id: I2e784be9a16914a30b08bdfbedb789d8a1d3f910
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-08 10:20:33 +00:00
Alessandro Portale
88a0ab7c91 ProjectExplorer: Improve title spacing for build/runsettings
This move the subWidget title a bit closer to its content in order to
render their relation more visible.

Change-Id: I8cb8e7967db05021a20007dc4165f132b2213326
Reviewed-by: hjk <hjk@qt.io>
2022-09-08 09:17:52 +00:00
Tim Jenssen
1882197fd6 crashpad: use new FilePath API
Change-Id: Ib00a1a92d0457f9327842851a2a12eafb500ce3e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-09-08 09:16:30 +00:00
hjk
49e01f3074 QmlJS: Avoid an occurrence of FilePath::toFileInfo()
Change-Id: I1c7573caf07e6259115b2d748301d20ec389e6bd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-08 08:44:59 +00:00
Cristian Adam
91c88c7390 Clang: Update to LLVM/Clang 15.0.0
Change-Id: I31599c3f7e869be7553c21d889df8fa870b1b93f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-08 08:31:24 +00:00
Miikka Heikkinen
a9576256b8 QmlDesigner: Fix crashes if selected node is invalidated
Change-Id: Ie85e9b023bca0dccd9c032e0d32e1462d0e77857
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-08 07:51:27 +00:00
Miikka Heikkinen
c714e5ba81 QmlDesigner: Make SHOW_DEBUG_SETTINGS setting actually work
The current value from the .ini file for this setting was never read.

Change-Id: I5b86fa04c117eb38cd5a7ef282861718c328c34e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-08 07:50:55 +00:00
Eike Ziller
98878872df Android: Use QPushButton for Add/Remove buttons
Make it consistent with the rest of the UI

Task-number: QTCREATORBUG-27801
Change-Id: Ie2930047dde6b18bfd61cb01a17f14de2c6aa7d8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-08 07:28:57 +00:00
Eike Ziller
aac822de87 HistoryCompleter: Make popup behave like default QCompleter
The default popup of QCompleter turns off scroll bars, and it looks like
turning on scroll bars leads to the wrong size at first show if
horizontal scrollbars are needed. Turn scroll bars off and also
otherwise set the same flags on the list view as QCompleter does.

Fixes: QTCREATORBUG-11811
Change-Id: I0f013bb7c0c49d399968572cc67b939410ce7f3b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-09-08 06:10:58 +00:00
Marcus Tillmanns
0cb3459c71 Terminal: Improve error message for start errors
Also fixes an issue where "Open Shell In Container" would fail if
the container has not been started yet.

Previously only "An Error occurred" was displayed to the user if
starting the terminal failed.

With this fix it gives more info about what went wrong, and a
specific error message is created if the openTerminal.py script
is not executable.

Change-Id: I49ae0d9b2aa7d5a27a9b100830b4fdefa5a279b8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-08 05:39:48 +00:00
David Schulz
aeb5f90d71 LanguageClient: postpone outline update until documents are opened
Skip the outline update in the initialize callback since no documents
are opened at that point in time and
LanguageClientOutlineWidgetFactory::supportsEditor will always return
false. The update will be triggered in
Client::activateDocument instead.

Change-Id: Ib26115c2344f7a424c31ce09b751a1d711a93aae
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-09-08 04:56:32 +00:00
David Schulz
662528675c Docker: add dockerfile for pyside image
Change-Id: Ibfb61f78d7a91e22d6f76747b19eeaf092468ae6
Reviewed-by: hjk <hjk@qt.io>
2022-09-08 04:55:44 +00:00
Sivert Krøvel
0a17b29cfb McuSupport: Check FreeRTOS path for required files
It is easy to pick the wrong directory for FreeRTOS sources when
configuring an MCU device. This commit adds a check that the
supplied path contains tasks.c, which probably means the given
directory is correct.

Task-number: QTCREATORBUG-27180
Change-Id: Iff1242e8970e59bf334d50829dd1d5bdd8164d47
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-09-07 15:11:41 +00:00