Commit Graph

80529 Commits

Author SHA1 Message Date
Eike Ziller
c3c99174e4 Use common tool tip for "Configure..." kind of buttons
We have a function that centralizes the text for that.

Change-Id: I9d9fbed6e111038e7512030e199b8d8d03fbbafa
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-16 09:07:12 +00:00
Marcus Tillmanns
cab8eee85c Utils: Fix fileInfoFlagsfromStatMode
Previously the checks for the mode bits were incorrectly
using AND checks. As a fix the contents of "stat.h" was
copied and converted so it can be used directly and on
platforms that do not contain stat.h

Change-Id: If735dcffb8ffc490d297dae7f8c43ae01e79f460
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-16 08:20:11 +00:00
Leena Miettinen
14297b97e4 Doc: Describe Clang Format as the default way to set code style
The plugin is now enabled by default. Clang Format can be disabled
either globally or at project level without disabling the plugin.

Task-number: QTCREATORBUG-28721
Change-Id: Ifbc0418400ed8a7942d0dbceaa95b078ac897c49
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 15:20:49 +00:00
hjk
b30a74130f Clang*: Use new plugin test setup scheme
Change-Id: I636b93d74b4f9ab9ade28c46c6e84b461ccf34be
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-15 14:47:37 +00:00
hjk
19a975735d ProjectExplorer: Remove unused constants
Change-Id: I4e014a8bfd96a1799de803938d9850d482192bf6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 14:36:33 +00:00
Christian Stenger
beac91ac81 Dumper: Fix std::variant on Linux
Amends 2c39db8eb7.

Change-Id: I22e9e2d25d5353cf2e818b7e2fa9f52557dbdda5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-15 14:24:49 +00:00
Christian Stenger
ca13deb70f QmlPreview: Fix initial zoom factor
Got unintentionally changed while doing refactorings.

Change-Id: Ib8e63112e0b5e6eef526cddae9412bcd8003e4d0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-15 13:39:18 +00:00
Christian Stenger
518a513888 CDBPM: Adapt to change in FilePath
Silences a soft assert.

Change-Id: I976ba259533ab33b23f8b530b277638bf727af59
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 13:39:05 +00:00
hjk
53cbf82fe7 QmlProfiler: Use new plugin test object setup
Change-Id: Id1aa7ac2151682b2ee8d4fc7dcf94ce0b97acd47
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 13:23:59 +00:00
Alessandro Portale
95a88ef732 ADS: Tr::tr()
Following contexts are merged into QtC::ADS

  ADS::DockAreaTitleBar
  ADS::DockManager
  ADS::DockWidgetTab
  ADS::WorkspaceDialog
  ADS::WorkspaceModel
  ADS::WorkspaceNameInputDialog
  ADS::WorkspaceView

Change-Id: Ieb3c8240531ca94f43ec1237c27647a51f59e4f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-15 12:51:54 +00:00
Alessandro Portale
e9365d399f Haskell: Tr::tr()
Change-Id: Ia63322cb5644ab7e63805c0e123eebe5170dd1ad
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-15 12:51:47 +00:00
hjk
54f104a567 ProjectExplorer: Move Device settings page further up
Now second after "Kits", matching its importance better.

Change-Id: Ie6c369ef0fe78307d825385beaa2be1738f345ee
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 12:51:21 +00:00
Eike Ziller
379bf65e96 Some fixes in translated strings
- doesn't make sense to translate "%1"
- showPreprocessedFile: "reason" contains full stop, put at the end
- add missing closing >
- remove whitespace at the end of translated string
- added missing quotes and full stops
- Remove some control text from tr

Change-Id: I5537c3d12d038e25e2209af1198129fbf959b43c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-15 12:45:48 +00:00
hjk
b2815c39b1 CompilationDatabase: Use new plugin test setup
Change-Id: Ic45c59a2adb3287e2cd92b70836bc309f5e1a8e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 12:32:21 +00:00
Christian Kandeler
8257369b73 ClangCodeModel: Remove unneeded code
This was liblclang-specific.

Change-Id: I3fe8a8d2d49b1c7b92a54a90864e4ead7152e4ae
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-15 12:07:32 +00:00
Cristian Adam
e8802d92e3 CMakePM: Add support for "external" arch and toolset
Fixes: QTCREATORBUG-28693
Change-Id: Id36f334c27f26a1f2ce65351de77e18d93b1a064
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-15 11:32:38 +00:00
Alessandro Portale
aa72b039da WebAssembly: Reorganize plugin tests
Change-Id: I1e2be15877ef4d1adc8355b820c1b8fc333d6409
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-15 11:00:49 +00:00
Henning Gruendl
9f4eae6536 QmlDesigner: Make application output the default
Make the application output pane the default when the output dock widget
is opened.

Change-Id: I60079242078033310676df3c3c450ef83b8d67d1
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-15 10:59:12 +00:00
Henning Gruendl
fbb79bb4e4 QmlDesigner: Fix SearchBox related QML toolbars
Change-Id: I88962fe48acd4345c29233cb00f72ec2ac6b6ca9
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-15 10:59:03 +00:00
hjk
3ac0822854 QmlPreview: Use new plugin test object setup
Change-Id: I6e8bf68bfaf98f5dd44cfe74bbe42c560ded63c4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 08:44:08 +00:00
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