Commit Graph

80509 Commits

Author SHA1 Message Date
David Schulz
2c39db8eb7 Debugger: modify dumper for std::variant
Directly display the containing value without the need to expand the
variant. Additionally fix the dumper for Windows and add tests.

Change-Id: Iaae49470750fa3659339331e1518e13020df7938
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 08:23:18 +00:00
David Schulz
3a2b49aafa Debugger: test std::optional dumpers
Change-Id: Iae177dd3448a861e93935d02388ea6af187bd9f3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-15 08:23:13 +00:00
Marcus Tillmanns
fc73324c50 Utils: Remove old Qt 5.4 workaround
see QTBUG-40449.

Change-Id: I0c347e81f8791f042c28200844d9102d84151b3c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-15 08:07:07 +00:00
hjk
d49d00bd87 CppEditor: Use new plugin test setup
Change-Id: I1f79050edb185cbb20bf30b9d412c2450d316a29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-15 07:49:11 +00:00
The Qt Project
6d05d98dca Merge "Merge remote-tracking branch 'origin/9.0' into 10.0" into 10.0 v10.0.0-beta1 2023-02-14 16:01:46 +00:00
Jarek Kobus
0f23dd99b9 TaskTree: Add more docs
Change-Id: Ie87ff78220d35266cc6e23ade7a1b4df4f483218
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-14 16:00:41 +00:00
Eike Ziller
ec0b5ef92a Add change log for 10.0
Change-Id: I9b214b513426d73290679b28428c98dbfa7ff89a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-14 15:59:35 +00:00
Orgad Shaneh
d20f543619 Git: Reduce sync processes
Change-Id: I5d83636d4a018464ba6f248aa818fb8f840df9fc
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-14 15:33:59 +00:00
Sivert Krøvel
53a72f0ba3 McuSupport: Discard un-applied changes to Qul SDK package
The path to the Qul SDK entered in the settings path persisted in
the UI when re-opening the settings page, even if it was not
applied. Kits and the settings file are not affected unless
pressing apply so this did not affect functionality. Un-applied
changes are discarded by re-reading the path from the settings
file in the constructor for the settings page.

Task-number: QTCREATORBUG-28568
Change-Id: Id03be22fba429e4764493cd3bedf45faa6908637
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-14 15:33:14 +00:00
Christian Kandeler
0f0e9baff6 CPlusPlus: Fix warning in ast2png tool
Change-Id: Ie278f24b95cd19c49f24ac22999bd293df47c540
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-14 15:13:46 +00:00
Eike Ziller
364013b9ac Merge remote-tracking branch 'origin/9.0' into 10.0
Change-Id: Ib01e191652168b2c38e80678f2f804bb95143cc5
2023-02-14 16:05:31 +01:00
Eike Ziller
5c98eaf592 Fix opening Terminal on macOS 13
When Qt Creator is notarized.

Using "open" results in a privacy error. A workaround is to use
osascript. Unfortunately then the terminal window does not close
automatically anymore.

Fixes: QTCREATORBUG-28683
Change-Id: I9861d7bd5100fd28b46b774fa465c970758a3a3f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 15:04:02 +00:00
hjk
ce6e5acea7 ExtensionSystem: Deprecate IPlugin::createTestObjects
The recommended replacement is to use addTest().

Change-Id: Id655cb8a55a581925c2437a5b8f74484532392ad
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-14 14:29:02 +00:00
Marcus Tillmanns
47cdeb779a RemoteLinux: Fix terminal opening
Enforce setting a shell to start based on whether environment variables
might be set.

Fixes: QTCREATORBUG-28738
Change-Id: Ic43f0057bc89410e3146bafa2b109f472e01aa3b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-14 14:16:53 +00:00
Artem Sokolovskii
b7fde29cdf Android: Extract sdkmanageroutputparser to separate file
- Needed for testing and for improving readability

Change-Id: Ie7a716b204ae0a216d72fa0191d4d05b7708c16c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-14 14:11:30 +00:00
Orgad Shaneh
6a0a4ac5e4 Merge remote-tracking branch 'origin/10.0'
Change-Id: Iff4973fc4116122bcaa7aa9434294dba875ef56a
2023-02-14 15:52:41 +02:00
hjk
b4f665f8ac Debugger: Use new plugin test object setup
Change-Id: Ic97dfd9aa22c4c8e41f81478983fb79760a76807
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-14 13:29:30 +00:00
hjk
f3b58359fd Valgrind: De-cruft plugin setup
Change-Id: I4a41ae56f9368c65c1584752ba41e035f9184a1e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 13:24:31 +00:00
David Schulz
ab9b5357f9 Cdbext: fix expanding lamba captures
Change-Id: I2c1c64e3258cec503f83dbf561a734b4694592c4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 13:21:45 +00:00
David Schulz
e47dae643a Cdbext: lazy type lookup
Postpone the lookup until we need the type id. This potentially skips
the lookup for unresolvable types that are just to parse template
parameters. Also cache types we already checked to prevent looking up
types multiple times. Additionally traverse all modules in order to find
unresolvable types.

This combination reduces the time the debugger needs to execute all
dumper tests from ~7:30 to ~3:30 on my machine.

Task-number: QTCREATORBUG-18287
Change-Id: Ie1e9771f124096c2a9ad24ac26c9b51fcded4fed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 13:21:38 +00:00
Cristian Adam
72de50df83 GitHub Actions: Some cleanup
- use the release tag for the artifact name instead of github.run_id
- add releases notes to the github release page
- enable macos universal builds
- add architecture in the artifact name

Change-Id: I478d2fb677b60fb2e59c154d538af94d1fddfac5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-14 11:43:48 +00:00
Jarek Kobus
288b43424a Remove unneeded includes of task.h and taskhub.h
And some other includes spotted by the way.

Change-Id: Icd5eadf16617506fe48fae52ff0639d247002d75
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-14 10:35:08 +00:00
hjk
3685ef0f37 McuSupport: Use new plugin test setup
And some code cosmetics.

Change-Id: Ia2831256a9a662d79a3736aefd7cc75760712f4c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 10:24:38 +00:00
hjk
c0cce829b5 AutoTest: Use new test object setup
Change-Id: Icf750f084d8c2b5c34e62dfedd62bc785406d590
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-14 10:24:30 +00:00
Eike Ziller
a069ed838e Let Debian packages install to /opt/qt-creator
instead of /opt directly. Seems to be more conventional

Change-Id: I6d3b0b973684b6f72c096eeb4f2b572012f30351
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-14 10:22:02 +00:00
Christian Stenger
6383146b0e AutoTest: Avoid crash
Do not queue signals of parse results. In case of a shutdown
these signals could be received too late and the item cache
of the treemodel might have been destroyed already.

Fixes: QTCREATORBUG-28797
Change-Id: I6daa2b2464dbfb123af3b1e708794b2dbf897bff
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-14 10:15:30 +00:00
Brook Cronin
f93f7f62d9 QmlDesigner: Fix blocked state for top toolbar buttons
Change-Id: I764398749e58c9a5395ecd9521ed94d0ad89ed89
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-14 10:13:41 +00:00
David Schulz
4838dead1a DumperTest: print total time in debugger
Change-Id: I1397bd3d8034cb334bdc3b84bdbcc060aa0cd9f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-14 09:47:52 +00:00
Orgad Shaneh
8cd11e93e0 Git: Filter out tags on command execution
For a repo with ~50K tags, this reduces the time of for-each-ref from
~1s to ~270ms.

Change-Id: I00f735bba62307cc9419619ebe5aa71a800368ea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-14 08:45:54 +00:00
Orgad Shaneh
cd8ea1f45b Git: Call updateUpstreamStatus for all branches in a single place
* Calling it for each parsed line mixes unrelated logic.
* I consider adding a cache later, but that will require data for
  all the remotes before this call.

Change-Id: Ic3ee975fc6172f2a8848bc8d0a6620d4ccbf9cd2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-14 08:08:28 +00:00
Christian Stenger
885c6c1f0e Pdb: Change shutdown handling behavior
Directly finish the debugger when program ends if the
debugger is in running state as this feels more natural.
Only get into post-mortem handling when stepping.

Change-Id: I6ac6600a7cb8f58a003a6e4783174864ed5e89d8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-14 06:44:07 +00:00
Christian Stenger
0ffb85b4d8 AutoTest: Improve test output handling
Instead of just providing the hidden search, provide a more
obvious present filter functionality for the text output
similar to what is done in other output windows.
This still has the find functionality present as well.

Task-number: QTCREATORBUG-28706
Change-Id: I8f8b1494d86c90cbb9ea6bfad3f0e74caf3de2c9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-14 06:41:22 +00:00
Christian Stenger
a8d493d352 TextEditor: Fix typo
Change-Id: I3dcf98827789882ea9cd7a5c4072173a2f33b97a
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-14 06:40:28 +00:00
Robert Löhning
b7f235edb6 SquishTests: Avoid known bug with CMake-based Widgets projects
...and start testing it again as soon as the report is closed.

Task-number: QTCREATORBUG-28787
Change-Id: Ib33efb6ef2851726a183576bfde5db0a1a5d8c38
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-13 21:34:56 +00:00
Orgad Shaneh
adfb5062f4 Git: Do *not* use ctrlc stub for rev-list
It's a very short command, so the time penalty for spawning another
process doesn't worth the additional termination protection.

Amends commit 371e674967.

Change-Id: I151f0bc1838cd9ddbdf822cbe5cf8923da6a9499
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-13 18:44:25 +00:00
hjk
7faad7b4e8 Android: Move a global regexp variable into a function
Change-Id: I888e11b2e16553cd14e4e07335ef90b8094b6cbf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-13 18:36:07 +00:00
Orgad Shaneh
c2cfe596b9 Git: Reduce PATH searches for executable
This reduces executions in BranchModel::updateUpstreamStatus (which is
called for each local branch with a tracking branch) from 3s to ~700ms
on Windows.

Change-Id: I92651ba8f37987bef49a80b46963964ae8cacb3c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-13 18:31:54 +00:00
Orgad Shaneh
728e73ea9d C++: Fix return type in preprocessor comparator
Change-Id: I6d85a78892291db7ae0b1de8a7e3b74d0401874a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-13 17:49:03 +00:00
Leena Miettinen
1e6933f48d Doc: Reorganize the Debugger topic
Divide the long topics into shorter ones and reorganize the
information.

The next step will be to improve the current topics: check that
the information is complete, add screenshots for all views, add
links between related topics, and so on.

Task-number: QTCREATORBUG-28778
Change-Id: I3549289a2be512bb09f45c91f85b12f89cedbe97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-13 14:37:39 +00:00
Pranta Dastider
6b6ff2aeeb QmlDesigner: Update Tooltips for FLOW Section
This patch update tooltip text for FLOW fields
in Property editor.

Fixes: QDS-9066
Change-Id: I097263e66a83673fbc0d6c95515ee5517b6bdf0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:57:03 +00:00
Pranta Dastider
ec625a3750 QmlDesigner: Update Tooltips for GRID VIEW Section
This patch update tooltip text for GRID VIEW fields
in Property editor.

Fixes: QDS-9062
Change-Id: I27d42af166a44480a44c0db0c28d51a64a625e12
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:56:59 +00:00
Pranta Dastider
8947404074 QmlDesigner: Update Tooltips for GRID Section
This patch update tooltip text for GRID section fields
in Property editor.

Fixes: QDS-9067
Change-Id: I0e41d4c668cc141aceeb8565665be012edb9c984
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:56:57 +00:00
Christian Kandeler
70506ff136 Update qbs submodule to HEAD of 2.0 branch
Change-Id: Id69e8571ae1ac276ebfcab1eb0994012376cf4c4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-13 13:56:37 +00:00
Brook Cronin
9e3490c1ba QmlDesigner: Add toolbar to Asset Library
* Align delegate thumbnail properly
* Make selection rectangle completely visible
* Remove tree view indentation rectangle
* Use predefined font sizes
* Code cleanup

Change-Id: Id2ffd0d4a70a3922c3ddcdddd1e88352ce90dba6
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:26:34 +00:00
Brook Cronin
28bb9d7d72 QmlDesigner: Add toolbar to content library
Change-Id: I28045fdd0346ad08d9636c25c3942a3facaf00fe
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-13 10:50:18 +00:00
Brook Cronin
ae521b5394 QmlDesigner: fix blocked color for toolbar icons
Change-Id: I44a3f66f57b92cefbe14c8014dd7e85a1af707f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-13 09:36:37 +00:00
Alessandro Portale
9f2f2f3390 Translations: Change translation context prefix from "::" to "QtC::"
lupdate would be confused by translation contexts starting with ::

Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:55 +00:00
Alessandro Portale
226799858c Translations: Replace QCoreApplication::translate() with Tr::tr()
Calling <Module>::Tr::tr() is preferred over
QCoreApplication::translate("::<Module>", "..."). This changes
occurrences in .cpp files.

Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:37 +00:00
Alessandro Portale
14280acfd9 Translations: Merge orphaned contexts
Following orphaned contexts are merged into ::Debugger

  QtDumperHelper
  Analyzer

Following orphaned contexts are merged into ::Git

  Gerrit::Internal::GerritDialog
  Gerrit::Internal::GerritPushDialog

Following orphaned contexts are merged into ::QmlJSTools

  QmlJSTools::QmlJSToolsSettings

Following orphaned contexts are merged into ::Android

  QWidget

Change-Id: I5263104b96520e2b7701366962d6f63b9b595f68
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:27:26 +00:00
Alessandro Portale
64aaf66c3b Proliferate Tr::tr in various places
This changes several tr() calls which were either missed during Tr::tr-
ization or were added later.

Found with regular expression: (?<!(Tr::)|([\w]))tr\(

Change-Id: I1c0c03589e941614a7a8449ecfebc7d2cad396c3
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:19 +00:00