Commit Graph

86167 Commits

Author SHA1 Message Date
Jarek Kobus
5cb40870b1 Tr: Fix some source texts
Change-Id: I06458b177af2691a362368faed2b6bea3883a2f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-19 11:10:23 +00:00
Miikka Heikkinen
3991561fd8 QmlDesigner: Split 3D edit view into four separate views
3D edit view can now be split into four separately controllable
views. Each view has its own edit camera. Only one split can
be 'active' at a time. Split is activated by mouse press or
wheel event when the cursor is above the split.
Transform gizmos are visible only in the active split.

Task-number: QDS-10921
Change-Id: I59772f64bab9bcbe469daee3a717c0e1a382f01b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-19 10:45:50 +00:00
Miikka Heikkinen
87695e368b QmlDesigner: Add toggle button for 3D split view
The button and puppet communication is added for split view toggle.

Task-number: QDS-10921
Change-Id: I4322dfff6772eec493a2f3ce1722cdefb69bc490
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-19 10:45:40 +00:00
Marcus Tillmanns
aee3d93237 Core: Use QDialog::open instead of exec
Task-number: QTBUG-117814
Change-Id: If92d627c2ae71721e61916cf50c26f5a41e35725
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-19 10:45:35 +00:00
Amr Essam
12aeed97b3 QmlDesigner: Add effect maker runtime nodes binding mechanism
Still some issues related to UI components because it's never tested
Also quick fix for generated paths on windows (not tested)

Task-number: QDS-10987
Change-Id: Ifed4b0f687e8da78206985e031692aa6c9faf947
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-19 10:20:35 +00:00
David Schulz
901e32a0ea Utils: remove Q_ASSERT in FileSystemWatcher
In the worst case scenarios we either track unregistered files or do
not track the files that had been registered. Both are less intrusive
than a crash.

Change-Id: I880d80dddc401fd996ac1f18e82414665510fd30
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-19 09:38:16 +00:00
Eike Ziller
479f955e94 GenericDeployStep: Add missing reference, avoid auto
Change-Id: Ib240bfefaea6c0637cbe66310cb4cc98db78c0d9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-19 08:39:13 +00:00
Alessandro Portale
3438b03af6 ScreenRecorder: Remember the crop area across recordings of same size
If multiple recordings were made in a row, the crop area was reset each
time and had to be reselected by users. This change implements the
retaining of the cropping area during the lifetime of the Recording
dialog, as long as the clip size does not change.

A potential trap is now, though, that the cropping area remains the same
even if the screen gets changed or the screen recording area was just
moved. But I believe that the new convenience outweighs this corner
case.

Change-Id: I0326dfcad6827b2d504a4e309891824b16b6a47c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-19 06:35:49 +00:00
Leena Miettinen
81898c675c Doc: Add a \preferences macro and use it everywhere
The macro can be used to show the path to Preferences
on Windows, Linux, and macOS. The current value expands to:
"Edit (or Qt Creator on macOS) > Preferences".
We can now change this in one place if we so wish.

Task-number: QTCREATORBUG-29734
Change-Id: I9afe4f7093dbcc8e62a2b18e1ae3f6f243bbb72b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-18 14:43:29 +00:00
Eike Ziller
e51b378ac9 Core/Tr: Fix menu bar action
It is "menu bar", and use placeholder for shortcut instead of
concatenation.

Change-Id: I60094a5fac3893663180f7ef573b6dece7670111
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-18 14:11:13 +00:00
Eike Ziller
4aefd9a74d Copilot: Fix some strings
- add missing colons
- rejecting unauthorized certificates is the secure option, turning it off is
  insecure

Change-Id: Ia09994ea75460fd5ebdd8354412d3122bd32eeed
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-18 13:55:36 +00:00
Christian Kandeler
f8beeb9edc CppEditor: Filter out another GCC-only flag
Qt applications are built with "-mno-direct-extern-access" these days,
which throws off clang-tidy.

Change-Id: Ifaaef84f6da37a0abb7b7a68296723fa41b572a7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-18 13:37:55 +00:00
Eike Ziller
ad7d559028 Tr: More small fixes
Change-Id: I5d9324d3f64eaa522fa1d435efa39fa43d84798a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-18 12:10:45 +00:00
Eike Ziller
b519ebf1c9 ProjectExplorer: Do not use Yes/No as buttons in dialogs
It is clearer to name the "accept" button after the action that is
performed when clicking it.

Change-Id: I1153169d48082e95722150a4cfcd92939ba92889
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-18 11:28:37 +00:00
Christian Stenger
9f7203b0d2 PE: Allow skipping of compress on specialized folder nodes
Fixes wrong handling of multiple qrc files when having just a
single prefix.

Change-Id: Id5ac357d4ab6a7f7556b36a9fc44da398ede093c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-18 11:24:39 +00:00
Eike Ziller
8f3e77a3ae Tr: Re-fix plurals
The number for the plural must be given as the 3rd argument
to the tr() call, not as an arg().

Amends 1359e9c84f

Change-Id: I45241a6acd82041c320bbe476cd2b4cc92247ef3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-18 11:22:11 +00:00
Eike Ziller
a253a2aa95 Tr: Fix lupdate issues
Add missing `Tr::` and use some fully qualified namespaces where lupdate
fails to resolve it correctly.

Change-Id: Ied4ac7bf0438a9080d0b76a9a1f5033dbc94a163
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-18 11:21:52 +00:00
Eike Ziller
15d31610ee Tr: Use more arg() and move tags out
Change-Id: I80e28de3add81d0569b87dbb1712229cda5fb42a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-18 11:21:10 +00:00
Eike Ziller
64550e1339 Tr: Small fixes like full stops, whitespace and typos
Change-Id: I4d1edba6d28661af3c2255add35141f1e73fc304
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-18 11:16:03 +00:00
Eike Ziller
cee8309998 Tr: Parametrize some application names
Change-Id: I5222455d895aecb94c9a96d0a0f4fd7c279a7388
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 11:14:39 +00:00
David Schulz
74cf082ee9 LanguageClient: properly deactivate documents for closing Clients
Deactivating the documents resets all client specific data and objects
in the document like the formatter or highlighting information.

Fixes an assert in the LanguageClientFormatter.

Change-Id: I7069abb273749ae335fed11010a5055eacaf58b2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 10:58:13 +00:00
David Schulz
18c00cd381 Python: reduce freezes in settings page with remote interpreter
Do not check the existence of remote interpreters when opening the
settingspage since we could run into device timeouts for unreachable
devices.

Change-Id: I5d0d1316961fc4ecbd2be55f6df70091ff65ecd5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 09:53:45 +00:00
David Schulz
df7353eaa7 ProjectExplorer: remove unused function from KitAspectFactory
Change-Id: I5278279dd654dfc81de894fa7df235048d340079
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-18 09:53:18 +00:00
hjk
499a786053 Utils: Be a bit more verbose in debug output
Change-Id: I0fd7bc92784efa184bac1cdbd5ae4c2d0158fb28
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 09:48:32 +00:00
hjk
2886b2b383 Debugger: Robustify gdb stack frame extraction
frame.older() might run into invalid debuginfo and throw.

Change-Id: Iba1d395f21719bf28184302427c7ab2435c6a663
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 09:48:23 +00:00
Eike Ziller
22c1d34e64 Copilot: Use normal checkboxes in settings
We usually do not use the "Label [ ]" style, at the very least it looks
different to other places in the settings. And without a ":"
("Label: [ ]") it also looks different to other lines in the same page.
Just use normal checkboxes like we do elsewhere.

Change-Id: I7f7d7aab399bef50dacb1efd83a5da460237e044
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-18 09:47:11 +00:00
Eike Ziller
e6ecfa0517 Tr: Move some line endings at beginning and end out of tr
Change-Id: Ibb0aba4d6e58bfe4684a818a894876c1f8f7df15
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-18 09:33:25 +00:00
Andreas Loth
ce5a7db2e1 Axivion: Extract fetch function
Change-Id: Ifcb67827e628eba0ad7c9e2371e64cbdebab9032
Reviewed-by: hjk <hjk@qt.io>
2023-10-18 08:53:05 +00:00
Andreas Loth
bdd3f8f8e2 Axivion: Use better names
Change-Id: I5b4d35ee7f842ad1389293fcc13507bc57c7067f
Reviewed-by: hjk <hjk@qt.io>
2023-10-18 08:42:27 +00:00
Andreas Loth
1f96b1b7ed Axivion: Analyze Dashboard server response for errors
Change-Id: Id66c3ad5d8a6c7d73e7ad781893c936b0829cfbf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-10-18 08:37:03 +00:00
Alessandro Portale
5336fd83a0 QmlPreview: Tell users how to preview single files
In order to preview a specific (QML) file, a QML Preview process has to
have been started, before. The "Preview File" context menu action was
therefore disabled until at least one QML Preview was running. This
precondition is neither documented nor evident to users.

This change removes the disabling/enabling of the context menu action
and shows an explanatory message box for the case that no running QML
Preview is available.

Fixes: QTCREATORBUG-29300
Change-Id: I643c57cab15ef4893a8efa6ac8839a3c00e956fb
Reviewed-by: hjk <hjk@qt.io>
2023-10-18 08:21:13 +00:00
hjk
0e77cdcc2e CMake: save a few cycles
Cheaper checks first.

Change-Id: I7487862abf409ef0a885d6ac9511066a6f814039
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-18 08:08:00 +00:00
Marcus Tillmanns
755eefcbb2 Core: Refactor logging viewer
* All log categories that were ever used are captured.
* Fixed various small issues.
* Allow disabling individual logging types.
* Add Splitter between messages and categories.
* No longer needs to interpret or change QT_LOGGING_RULES.

Change-Id: I33be4754d550064bc66274f655a59e7af67ae487
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-18 08:00:33 +00:00
Leena Miettinen
5d79b010bf Doc: Describe the Markdown editor toolbar buttons
Task-number: QTCREATORBUG-29392
Change-Id: I390e2c525f9c1c6cadf874cfc313b17429f1f52a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-18 07:35:36 +00:00
Leena Miettinen
865b6d5777 Doc: Add paths to options and links to docs to the change log
Change-Id: I1c9ae020a7af9a0a88c7204cb90569b2f37f2c67
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-18 07:35:21 +00:00
Cristian Adam
70e9c2685f vcpkg: Set VCPKG_ROOT environment variable for Qt Creator process
This way CMakeProjectManager's auto-setup.cmake would pick it up and
find vcpkg.exe

Change-Id: Iafa84f13e0f50321ce771fc687ecc9e2df148de7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 18:10:52 +00:00
Alessandro Portale
df9808562f Vcpkg: Fix a vcpkg detection regression
Amends: ec7abcf98c

Change-Id: If1e8c124208b2d8eeea22b1b88f80b325c4d2efb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-17 16:35:57 +00:00
hjk
53b3255256 CMake: De-noise fileapidataextractor.cpp a bit
Change-Id: I1ed8b18e394246cbfd14394c7f9b79fd90f680d2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-17 15:22:02 +00:00
hjk
b5dec80d6b ProjectExplorer: Don't create Replacement kits for Design Studio
It's not wanted in this use case

Fixes: QTCREATORBUG-29717
Change-Id: I04ccd4c9e8bfe15e76294a42f3f0bd9d879599e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 15:05:12 +00:00
hjk
8845a7f896 CMakeProjectManager: Use a few FilePath::path() instead of toString()
... when appropriate.

Change-Id: I2c23e4688ec69f78b0ce873e578139d5c4e89c35
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-17 15:04:57 +00:00
hjk
b38c7a452e CMakeProjectManager: Fix path construction of pch files
This triggered soft asserts in FileUtils::copyIfDifferent() when
opening top-level qt.

Amends 246f33c20d which introduced a unwanted extra .parentDir() call
which removed part of the path.

Change-Id: Id0475a74a589372d37b7ec65d33d3faf6194013c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-17 14:52:35 +00:00
hjk
058a931d27 ProjectExplorer: Manually check whether a runconfig has a creator
This is used in ProjectConfigurationModel::data()

Constructing the full list is comparatively expensive, and the extra
decoration is not needed.

Change-Id: I5b6c76376f806ea92444916a87d1f2e671e16d5f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-17 14:35:36 +00:00
Cristian Adam
879692381f CMakePM: Fix conan default profile auto-detection
CONAN_COMMAND was not available for `conan_profile_detect_default`
function.

Change-Id: I03df06aa88e6588101bb5ec54b3ce2cb64dee2c8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 13:54:17 +00:00
Marcus Tillmanns
fdeff13ca3 TextEditor: Don't export KSyntaxHighlighting
Change-Id: I84fa8c758af412d8847391a628deac60279b9448
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 13:25:50 +00:00
Yasser Grimes
a9a74992de McuSupport: Notify users to read QtMCUs on QDS documentation
Make the documentation for using QtMCUs design studio easier to locate
for new users by showing an InfoBar notification with the link to the
online documentation.

Task-number: QDS-10332
Change-Id: I9344216ef36369cdfb284ab18dba91cd0b5d4c92
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 13:02:14 +00:00
Christian Kandeler
a60b43f028 Designer: Use proper formatting and indentation
... when inserting member functions via "go to slot".

Fixes: QTCREATORBUG-11730
Change-Id: I5de6947069e2c376758d0a79f6d1d710882aee66
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-17 12:44:01 +00:00
Marco Bubke
a671014125 Nanotrace: Categories can be anabled and disabled at runtime
Change-Id: I41ddd311da96f54db5b1525c5b0126528bf67744
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-17 12:27:42 +00:00
Marco Bubke
629d246650 Nanotrace: Generalize arguments
You can now add array or dictonary arguments

NO_UNIQUE_ADDRESS ModelTracing::ObjectTraceToken traceToken =
ModelTracing::category().beginObject(
        "InternalProperty"_t,
        std::forward_as_tuple("name", m_name),
std::forward_as_tuple("values",
std::forward_as_tuple(NanotraceHR::isArray, 1, 2, 3)));

NO_UNIQUE_ADDRESS ModelTracing::ObjectTraceToken traceToken =
ModelTracing::category().beginObject(
        "InternalProperty"_t,
        std::forward_as_tuple("name", m_name),
        std::forward_as_tuple("values",
std::forward_as_tuple(NanotraceHR::isDictonary,
std::forward_as_tuple("x", "foo"),
std::forward_as_tuple("y", "bar"))));

Change-Id: I3c136827455194439980700155f4c43f4b2915ea
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 12:22:52 +00:00
Marco Bubke
df83309636 QmlDesigner: Trace thread creation and readyness
Thats is creating a token without a name but it can be used later wo
create a token with a name or to tick.

Change-Id: I772b819392e660c4d550aa59edc45579e6e00a02
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 12:16:20 +00:00
Marco Bubke
4aa7c89aad Nanotracer: Add copy for object token
Change-Id: I8d11284db1b38eeff6f271495f3095b49415f78c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-17 12:04:27 +00:00