Commit Graph

76686 Commits

Author SHA1 Message Date
Marcus Tillmanns
bcadbe666b Docker: Fix mount arguments
Previously when trying to mount paths that contained spaces or colons
docker create would fail as the -v/--volume syntax does not support
these.

Switching to "--mount" and using the "type=bind" syntax allows to
escape the necessary characters.

Change-Id: If969173505dbf1b36a67dc8b398c58b78941519a
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 12:24:29 +00:00
Leena Miettinen
4b42f05439 Doc: Update Help mode screenshots to show help in dark mode
Use \image alt text more consistently.

Task-number: QTCREATORBUG-27876
Change-Id: Icc655eb5d05cfdcb16f9eedc836de710ee1ad59d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 11:58:36 +00:00
Christian Stenger
f1fe30ee16 Help: Restore some more object names
Change-Id: I4742d855bc69be3622f823a3d3efe256ad027dc5
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 11:55:49 +00:00
Orgad Shaneh
b81e295f58 Toolchain: Support also concatenated syntax for MSVC included file
For example: /FIC:/Projects/test/config.h

Change-Id: I18dcda6593effa58ece019ce40bca7860cebfc8c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-11 11:32:46 +00:00
Cristian Adam
c1667f9bea CMakePM: Allow default build configurations for presets
Restrict the build types only if CMAKE_BUILD_TYPE or
CMAKE_CONFIGURATION_TYPES cache variables are set.

Change-Id: Ib88dcd5d4a0fca86f86e95815edff1116f896324
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-11 11:21:46 +00:00
Cristian Adam
f84bdee045 CMakePM: Allow presets without buildDirectory
CMakePresets v3 relax the requirement of having the buildDirectory
specified.

This way Qt Creator should use its own mechanism of specifying the build
directory.

Change-Id: I6ba69e6a03cdc058e7b8fa540a6fc564356aba63
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-11 11:21:41 +00:00
Leena Miettinen
0e2409b0d6 Doc: Describe image viewer Set as Default option
Task-number: QTCREATORBUG-27876
Change-Id: Ibe2b7f39c23b60df13debab7de21d7e999f51448
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 11:00:30 +00:00
Tasuku Suzuki
52672b5f6c SessionDialog: rename Switch To to Open and reorder buttons
To be consistent with the SessionNameInputDialog that has the button
"... and Open" to switch to a session.
Buttons should be ordered by like a typical file menu
- new
- open(ex- switch to)
- save(rename/clone)
- close(delete)

Change-Id: I875446352100500eaae4b0ecef4faa6442aef539
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 10:53:29 +00:00
Christian Stenger
5bb928c95f Core: Restore some more object names
Change-Id: I318eda7cfabf840e2fde3d11e77b489a99c43f62
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 10:51:22 +00:00
Orgad Shaneh
7c623f99d8 Git: Fix pattern for commit hash matching
* Avoid matching mid-word.
* Avoid matching after "mode ".
* Change to raw string literals.

Fixes: QTCREATORBUG-24768
Fixes: QTCREATORBUG-28268
Change-Id: I68abbf3de7928c60e0fe2d944adedaa6db94b1a4
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2022-10-11 10:00:53 +00:00
Marcus Tillmanns
ae58d373b0 Add FSEngine FilePath Cache
To speed up file dialogs we introduce a 1 minute cache for
the FilePathInfo.

A new version of "IDevice::iterateDirectories" allows implementations to
provide the FilePathInfo directly.

DockerDevice implements fetching the filePathInfo during
iterateDirectories which greatly improves the speed again.

Change-Id: I24ac16adb2478cbf16a22012e72fcb8910dcdac5
Reviewed-by: hjk <hjk@qt.io>
2022-10-11 08:53:02 +00:00
Miikka Heikkinen
007a9a46a5 QmlDesigner: Reset item library drag on model detach
Fixes: QDS-7823
Change-Id: If0b758f79dd4a55356d2cd5aefe65fa3e6e321be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-10-11 08:40:40 +00:00
Eike Ziller
e5e90ad931 More change log
Change-Id: I0fc654e83ededc5b82e4ca5a8b4805f9e80d946c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v9.0.0-beta1
2022-10-11 08:21:02 +00:00
Jarek Kobus
ecd9053587 tst_qtcprocess: Remove 30 seconds timeout overload
The default is 60.

Change-Id: I22585a62648376c771f6f3e4165dc4a1bef25892
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:34:39 +00:00
Jarek Kobus
f5f3bbcc59 Use more Utils::isMainThread()
Change-Id: Ia3c6f6dca53c5d7487b0813de16f06c52af47aa5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:34:12 +00:00
hjk
862a3923f4 Add to changes-9.0.0.md
Change-Id: Iebf7add3fcae2524530abc6ab46b7a243943e168
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-11 07:31:01 +00:00
Jarek Kobus
df2038421e MesonProcess: Remove unused methods, signals and fields
Change-Id: Ic1a25e3800b6938fc3cea23a02f582f1e73c058f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-11 07:26:05 +00:00
Marcus Tillmanns
b7c1e70738 Fix: QtConcurrent build fix
Change-Id: I17df4132e6c0aaee35d9d92e5dc8651f553a58b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-11 06:31:03 +00:00
Ari Parkkila
f50260837c Fix Boot2Qt Device dark theme on Windows
Fixes: QTCREATORBUG-28254
Change-Id: Ie146579d2e52b3336d326c69f864a3beecadee69
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-11 05:55:59 +00:00
hjk
19f2a95e1c Nim: Convert to Tr::tr
Change-Id: Iad4641479d566347ef9acdfb0a04f37907ac4a2d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-11 05:48:46 +00:00
hjk
7eac686f29 BareMetal: Remove unused baremetalgdbcommandsdeploystep.{h,cpp}
Change-Id: I57cc268714844cf5f342f4ea169a1c0c32e8b9f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-11 05:47:47 +00:00
hjk
c4957f9fdb BareMetal: Convert to Tr::tr
Change-Id: I7ac423c13d95b33cad332d2ce9fafb4f658980bc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-11 05:47:24 +00:00
hjk
a43619386b Nim: Inline nimcodestylepreferenceswidget.ui
Change-Id: I4590e6666bd37b428c443ef78731202100040a58
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 16:34:59 +00:00
hjk
2e38cb6848 Utils: Add an offset parameter to the content writing FilePath function
Use QFile::seek to implement locally and a dd seek based poor man's
implementation on RL and docker.

Change-Id: I241d1c34c00e991845d132ad8edefa1377ba1311
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-10 16:08:28 +00:00
Leena Miettinen
0c2a86b63f Doc: Describe new preferences for refactoring actions
Task-number: QTCREATORBUG-27876
Change-Id: I37513cc641db034eaf1737eee4f25c5ba6b7fd82
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-10-10 15:41:27 +00:00
Cristian Adam
05acf3e6f4 CMakePM: Do not display duplicated build paths for presets
If we configure a project with presets, build all the configurations,
then delete the CMakeLists.txt.user file to re-configure the presets, we
shouldn't get two entries in the initial configuration dialog.

Change-Id: I9bb234aa54fcce193dbd07dd3aa77e91f639b179
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 14:48:28 +00:00
Jarek Kobus
e54fb7ab64 Replace missing qAsConst with std::as_const()
Patch missing leftovers after recent batch patch.

Amends 8eb4d52342

Change-Id: I5469b8c10e6844cd1911f719ce3dddbb42697f95
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 14:14:02 +00:00
Cristian Adam
213c879882 CMakePM: Skip default build types for CMakePresets
If a preset has a build directory set, that build directory and build
type should be displayed in the initial configuration dialog.

Change-Id: I884471cb4d482c92ab091a4043d642828318b4d2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 14:09:04 +00:00
Miikka Heikkinen
b8f4cd97d1 Fix copying dynamic properties on materials
Fixes: QDS-7803
Change-Id: I24c8cd269965552a62fbbbc521efbff00811fa43
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-10-10 13:53:03 +00:00
Mahmoud Badri
b0fa747565 QmlDesigner: Add "imported" icon to the icons font
Change-Id: I100a382a549b1945d7c7e83de0a3ffa609b5148c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-10-10 13:46:32 +00:00
Christian Kandeler
a0f356aed6 qbs build: Do not build QmlDesigner & friends
Too much maintenance effort for not enough gain.

Change-Id: Ica385bcc93da0dbc7af8e15c07fdd33580de29a7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-10-10 13:43:53 +00:00
Samuel Ghinet
7319eac283 Refactor Assets Library
Extracted the dialogs, the context menu, and the assets view into
separate qml files. Also, reordered some functions in the assets
library model

Task-number: QDS-7344
Change-Id: Ida21b60d30f34723c07b2659a138e14b95598421
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-10-10 12:00:23 +00:00
Marcus Tillmanns
ab9fd18af8 QtSupport: Parallelize qt info fetching
Change-Id: Idd3748f4a3a85b46db10ac0eb4f15567fcf4e896
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 11:46:43 +00:00
Mahmoud Badri
fcc7edc135 QmlDesigner: Fix applying a bundle material to a multi-selection
Fixes: QDS-7830
Change-Id: Ic939b1e3b86e6931c369b1b06887284d0b23fa79
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-10-10 11:27:11 +00:00
Sivert Krøvel
4ce9ea64c0 McuSupport: Fix wrong toolchain file path
There was a typo in the package creation for the arm-greenhills
toolchain file. The correct filename, as found in the QUL install
directory tree, should be ghs-arm.cmake

Task-number: QTCREATORBUG-28184
Change-Id: Id2db26f06f996cc24b99f412370ebfeef0f67a10
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 11:17:08 +00:00
Alessandro Portale
c6244ac8df Meson: Fix .ts context names
Change-Id: If69784dcacfdb5974adc9b457e360c9b4b584102
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 10:53:16 +00:00
Christian Stenger
c09351e101 Squish: Provide error message for license issues
Change-Id: I1b3ca3aba19df2fbc2accd9ecf9e4ec2d862c6d8
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-10 10:48:09 +00:00
Henning Gruendl
a7ceb64895 QmlDesigner: Add arrow to MenuItem for sub menus
Task-number: QDS-7867
Change-Id: Ia2c9dcf4534a5ccc2525f36720acb2d7f971abe4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-10-10 10:35:55 +00:00
hjk
9e2ec17f36 Meson: Convert to Tr::tr
Change-Id: I37e8a8c559464f7d55e17a5ca08e8d8d9760a4d6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 10:19:19 +00:00
hjk
63faccdb7c Utils: Implement ls-based subdir iteration
Needed when 'find' does not work as expected.

Change-Id: Ifbe762590ad2a6339152ed728e4d72820b4eae91
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 10:06:24 +00:00
Jarek Kobus
77a140c581 QtcProcess: Introduce TextChannelMode and textOnChannel signals
This is alternative to setStd[Out/Err](Line)Callback()
methods. In this way there may be many clients connected
to textOnStandard[Output/Error]() signals. This should
also simplify handling the lifetime of user callback.

Change-Id: If82baa1f3f9c432ed431926619b9bbf11d770a84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 09:47:06 +00:00
Eike Ziller
4bbbee1e63 Merge remote-tracking branch 'origin/8.0' into 9.0
Change-Id: Ib2e350805a3043f7b84da960978f09674dc70694
2022-10-10 11:35:05 +02:00
Christian Stenger
1462258939 AutoTest: Avoid crash
Do not emit sizeHintChanged() on a QModelIndex that is no more
part of the model.

Fixes: QTCREATORBUG-28269
Change-Id: I1fa1733961eff8b427a9510243d304565cefe380
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-10 08:59:17 +00:00
hjk
5dde520a43 Utils: Return a bit more data from DeviceShell::runInShell
Pass on stderr data and exit code to the caller, it's typically
in a better condition to handle errors.

Use it to notify the user about non-available 'find' arguments
and fix the fallback to ls-based operation.

Change-Id: I535535de2ffa09cad1dd6e9b07eb69f807dbae2f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-10-10 08:39:55 +00:00
David Schulz
bf5a8835ee Editor: improve visual indent depth for empty blocks
Use the indenter based visual indent only for the cpp qt style indenter
since it gives accurate results. In all other casess Look for the next
and previous not empty lines and use the minimum indent depth of those
lines as the visual indent depth for empty lines.

Task-number: QTCREATORBUG-28179
Change-Id: Ic456fba5adfb2a12f20e2bd4fc663010c752b65c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-10 08:36:07 +00:00
Christian Kandeler
f513820be0 Core: Fix qbs build
Change-Id: Id68a1db888a0540c520cbbc2bc7ece979c4fa3a6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-10-10 08:21:26 +00:00
David Schulz
cddaacc6c6 Core: show shortcuts in LocatorFiltersFilter
Change-Id: I700128ac2366ff78310dc5be6dbcc8953c2c2a5b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-10-10 07:24:24 +00:00
Eike Ziller
ce9da99528 FilePath: Fix isRelativePath for QRC paths
Implicitly fixing methods like absoluteFilePath too.

Fixes e.g. JSON wizards that are registered from a plugin QRC file, like
McuSupport wizards (run with McuSupport plugin enabled and create a
"Application (Qt for MCU)" application).

Change-Id: I296ba1c5eb63c9eb27f9a55e65019125faf546ea
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-10-10 06:14:44 +00:00
hjk
5e786d444d Meson: Flatten directory hierarchy
Keep tests/ and icons/ but put the rest into the toplevel.

The previous setup was so different from the rest of the bunch that
it regularly stuck out in maintenance tasks.

Change-Id: I69821be6268f69682353a388f6bb1fa343215303
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-10-10 06:08:57 +00:00
Jarek Kobus
7c0c57fef9 VcsCommand: Remove outdated comments
Amends 93dfa93b7d

Change-Id: Iad2f4002aaa4579aa90209daf7a7a960607e3c36
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-10-09 06:53:40 +00:00