Commit Graph

89152 Commits

Author SHA1 Message Date
Cristian Adam
dd1f76d85b CMakePM: Do not use "edit-copy" icon for source folders
This "edit-copy" icon used for source folders is very confusing. The
linked bug report has screenshots comparing Qt Creator and Xcode. Xcode
just uses consistently a folder icon for all nodes that are actually
folders.

This change will make Qt Creator also display a folder icon for the
source folders.

Task-number: QTCREATORBUG-30012
Change-Id: Ibfcc4f55e779ed368edd30bfbc711bd81a4aa499
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-08 11:39:13 +00:00
Marcus Tillmanns
431c598a34 Docker: Use gocmdbridge instead of DeviceShell
Change-Id: Ic5ba7e203d7c5210dc2c3fe21c2c92039877e9bd
Reviewed-by: hjk <hjk@qt.io>
2024-07-08 11:38:01 +00:00
Christian Stenger
1ae0757f5d Wizards: Fix json file
Fixes building the target ts_untranslated.
Amends 391e7ae34a.

Change-Id: Id8e75e18638b5408df527c5c3bbb6aedad1638bb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-08 11:36:10 +00:00
Eike Ziller
6d53819ea7 German translation: CppEditor
Change-Id: Ieed4960f08f911dfa499b05357dcba69bcf2f5e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-08 11:14:17 +00:00
Eike Ziller
964f2f709e German translation: C*
Clang*, CMake, Copilot, Core

Change-Id: I4c0d0e6b28c076003d1fbbe08e7bf0d3fb6dee39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-08 09:59:23 +00:00
Eike Ziller
e3feec0978 German translation: Debugger, iOS, LanguageClient
Change-Id: I47b3a0d865a57af45180d4559ea8085dc0ce6df4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-08 09:59:15 +00:00
Eike Ziller
62d11c46a2 Wizards: Add comment on closing app for Qt console application
Add a comment on how to quit a Qt console application.

Fixes: QTCREATORBUG-31212
Change-Id: Id5dc5b6c4eba807e41fc589d16f44d133c94c6b3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-08 09:32:34 +00:00
Eike Ziller
496b47cadc Parametrize year in copyright template
No need to bump this all the time, just use the current year

Change-Id: I3f2abf6a0a54185b7b47e68aacb3cee2f27aa675
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-08 08:38:08 +00:00
Eike Ziller
8d99cd800b Merge remote-tracking branch 'origin/14.0'
Change-Id: Ic3c53630e16712b6493873d21485b726f0d06574
2024-07-08 10:31:06 +02:00
Eike Ziller
6f8396b7bb Terminal: Add version entries for 3rdparty code
Change-Id: I895d173bf4831b50862315cbecc9dcaed811c2cb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-08 06:57:31 +00:00
Alessandro Portale
1bf641795f Utils: Fix FileUtils::copyRecursively with user interaction
CopyAskingForOverwrite got passed around as value, thus it got copied.
The messagebox results were stored into the fields of such copies, and
therefore had not the expected values across the recursion.

This change wraps the copy helper function into a lambda and the lambda
is passed around instead of the object. It may still be a bit much
decoupling architecture for a single use-case, but it works now (for
me).

Fixes: QTCREATORBUG-31174
Change-Id: I5444d18d7bf4ef59ab879e31e5233eadf1c935e4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-08 06:34:53 +00:00
Lukasz Papierkowski
fb5bb3ff4f Initial AI Assistant Lua plugin
Change-Id: Ia600a6b7103300f4db875d9a1c63d159c70d21f6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-08 06:17:15 +00:00
Eike Ziller
29bfece543 Update change log
Change-Id: I8f1fc606f89617092c97b1d1a543495bbfd23e57
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-08 06:07:43 +00:00
hjk
9e413cb458 Utils: Make Aspect::addToLayout() const
It's conceptionally const, and would be useful to use as such, but
the current implementations often modifie mutable state.

To ease the transition pain, rename the previous non-const version to
addToLayoutImpl() and call it after const_cast'ing.

Change-Id: Ic8ca38e40f5df69c3d11121f96ea37648cf4feb7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-08 05:53:24 +00:00
hjk
d34d716c37 Utils: Merge fsengine_impl.{h,cpp} into fsenginehandler.cpp
Sprinkle in a few 'final'.

Change-Id: Icba260aaa612e12f5c2895924273281e326ccd7c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-08 05:37:36 +00:00
Jarek Kobus
3dd0b21f78 TaskTree: Document nullItem, successItem, and errorItem
Change-Id: I1836451ddae2265a26a3cccf8afd8b4a965c128d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-05 15:03:23 +00:00
hjk
d37ca65d4f Welcome/PE: Use new IContext::attach() function
Change-Id: I793dfc5b4d9143a71fb388335d33816620c04477
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 13:17:29 +00:00
Christian Kandeler
97822d1ab6 Update qbs submodule to HEAD of 2.4 branch
Change-Id: I86934e132a32147b0b82f1aa9b0f9ee773b5f509
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-05 10:55:56 +00:00
Eike Ziller
a41e20a5de Do not show empty items in editor history menus
The menus that are available from the back and forward buttons in the
editor toolbar could show empty items, because some editors are not
backed by files. When they are closed, they are no longer available. For
example: open a file, trigger a git diff (regardless of whether that is
empty), switch a fill times between file and diff to fill up some history,
close the diff.

Just do not show history items with empty display names.

Change-Id: If7e966e55ada407ed03069027b352d12f053751f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-05 10:53:18 +00:00
Christian Kandeler
f0d125f35a Core: Prefer to split text chunks in OutputWindow at line breaks
We want to minimize backtracking in OutputFormatter.

Change-Id: I114472d761ddbf0a2c3e6b42c87a531206fb1473
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-05 10:08:50 +00:00
Christian Kandeler
1fd7056840 ClangCodeModel: Allow empty project info list
... when generating compilation database.
This can happen in session mode.

Fixes: QTCREATORBUG-31186
Change-Id: Ieb081932ac2c562bacae995c7d05a3e0e96c9153
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-05 10:07:46 +00:00
hjk
3fb37b1210 Core: Correct declaration of Context debug output function
Amends 104ea4acc.

Hidden friends don't work when declared in the wrong class.
This here happened to go unnoticed as it was nowhere used.

Change-Id: Ie26d5c777c85e143a6b7189ccbd87aedd2502df0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 09:34:05 +00:00
hjk
1642a6b2f6 Core: Remove StatusBarContext
It was apparently not adding functionality.

Change-Id: Ia6277a3df5ff65d4b797a5ca34909cf1dc4d48bc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 09:34:00 +00:00
Cristian Adam
412eeefafa CMakePM: Detect CMAKE_PREFIX_PATH from qmake's path when empty
If qmake -query fails for some reason then %{Qt:QT_INSTALL_PREFIX} would
evaluate to an empty string and CMAKE_PREFIX_PATH will not help CMake
find Qt packages.

By using the path to qmake itself we can safely determine a valid
CMAKE_PREFIX_PATH and CMAKE_FIND_ROOT_PATH.

Fixes: QTCREATORBUG-31194
Change-Id: Ib649dd57bfe3a97ef93a42603d83331922f99612
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-05 09:01:23 +00:00
Alessandro Portale
f6ed7edd0a ExtensionManager: Display extension status
Fixes: QTCREATORBUG-31180
Change-Id: I28c56f2e312670183b21e919ef578135c0384d92
Reviewed-by: hjk <hjk@qt.io>
2024-07-05 08:57:24 +00:00
Christian Kandeler
8da67b75c5 RemoteLinux: Use reaper timeout setting also in signal operation
Fixes: QTCREATORBUG-31200
Change-Id: I5093f761c58551702cbc82ad16e4034ef30efb38
Reviewed-by: hjk <hjk@qt.io>
2024-07-05 08:53:01 +00:00
Eike Ziller
1a7bf9c95d German translation: lupdate for 14.0
Check out with submodules (`git submodule update --init --recursive`).

Configure Qt Creator:

    cmake "-DCMAKE_PREFIX_PATH=<qt_path>;<llvm_path>"
          -DCMAKE_BUILD_TYPE=Debug -G Ninja <src>

Generate ts file:

    cmake --build . --target ts_de_cleaned

Change-Id: I9ef6916df48bfe1323f2d328f9c377f315d393f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-05 08:50:45 +00:00
Alessandro Portale
242ee59885 Changelog: Enclose complex URL in angle brackets
Qt (or its MarkDown parser) cuts off the link before the ..
Enclosing the URL in angle brackets helps with that and is also valid
practice in MarkDown.

Change-Id: I06e33ec9edb42f80cd020b9b65a7bc2a32345e75
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 08:49:21 +00:00
Semih Yavuz
a8a3d79592 Disable qmlls for the document when settingsChanged
Qmlls client was still alive eventhough it was turned off via the
settings page. This was causing both qmlls highlighter and the embedded
highlighter do the job at the same time. Disable qmlls client
appropriately.

Fixes: QTCREATORBUG-31148
Change-Id: I9577a78f9c861cf2fe718ffe58f3d7f77a916b9a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-05 08:12:48 +00:00
Eike Ziller
eaa40953af Fix framework path for developer documentation build on macOS
At some point the LOCATION target property of Qt::Core must have changed
from
    <fw_path>/QtCore.framework/QtCore
to
    <fw_path>/QtCore.framework/Versions/A/QtCore
which broke the code that tried to infer the `fw_path` from it.
Instead of constructing a relative path from the LOCATION, just
cut off the `/QtCore.framework/` and anything after it.

Change-Id: Ieed8ade6318c602d9cb4ff9685a084e4f8194086
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-05 07:36:50 +00:00
Eike Ziller
14ef6da101 Fix developer documentation build with Qt >= 6.8 on macOS
Before Qt 6.8, the versionnumber-less targets of Qt were interface
libraries that linked to the actual versioned Qt target. Since then,
they are actual targets in their own right, so the code that determined
the header location for Qt on macOS failed.

Change-Id: Icb2d2fcb075b9b4c2808d7edc0a7ec3fb7be49f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-05 07:36:42 +00:00
Leena Miettinen
dc2af02fa0 Doc: Describe suppressing and filtering Clang-Tidy diagnostics
Task-number: QTCREATORBUG-30604
Change-Id: I259f5484c86b96e31c0cdb4f796d11c2a6afec2a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-05 07:10:44 +00:00
Leena Miettinen
9d65a003d7 Doc: Update screenshots
Task-number: QTCREATORBUG-30604
Change-Id: I08396fd50abf4a7961c91fd36381007716343b33
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-05 07:10:27 +00:00
Christian Stenger
c43508417d Lua: Fix translation context
Change-Id: Id824eaa3c64d31e693828d90d4c0abbe7ce8dda9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 07:03:39 +00:00
hjk
dee951cf3e Android: Don't override IContext::widget() unnecessarily
Gets in the way of simplifying IContext handling.

Change-Id: I30961202164062743d9b9ddad34f95b25360f395
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-05 06:50:56 +00:00
Tim Jenssen
d3227dbba8 QmlDesigner: fix missing include
Change-Id: I7499a67e4202b6a4ffbf019b1b32966b4d619875
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-04 16:24:10 +00:00
Alessandro Portale
d6092e41ce Mode icons: Decrease the size of the "Cancel build" square
It is now 8px big and has a corner rounding of 1px.

Task-number: QTCREATORBUG-31080
Change-Id: I7b50707f021160b9de76185aad357000398bf5d2
Reviewed-by: hjk <hjk@qt.io>
2024-07-04 15:12:29 +00:00
Christian Kandeler
04744d61b2 ProjectExplorer: handle compile output in chunks again
Task-number: QTCREATORBUG-30135
Change-Id: I8cc44544ee09475efe5bfb9c44e9495c1b33653f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-04 14:44:57 +00:00
Leena Miettinen
b19837f8cb Doc: Use different icons for installation and app development
Task-number: QTCREATORBUG-30592
Change-Id: If914928f3c9ab9c4798ea1a2044e951de3098cbb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-04 13:28:45 +00:00
hjk
f92cb1ad7d Utils: Separate non-widget related base code from layoutbuilder
Change-Id: Ie7e7d413ed8cd4af8cdfc88c35fbdd9944d5e8b4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-04 12:56:52 +00:00
Leena Miettinen
bcd3491fd9 Doc: Update front page and getting started page
Apply new design and images from the UX team.

Task-number: QTCREATORBUG-30248
Change-Id: I202288f0dccedc65e47cd8bdfa49915d47cd79cd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-04 10:48:11 +00:00
hjk
2c40765e86 Core: Add a static IContext::attach() function
... to simplify the user code.

Some, but not all, potential beneficiaries are adapted.

Change-Id: Ia7d514a0114a4f99f8ee745523435f5b990bd095
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-04 10:09:53 +00:00
hjk
d58780213d TextEditor: Remove BaseTextEditor::setContextHelp()
This is never called, neither directly nor indirectly via the
IEditor/IContext base classes.

Change-Id: Ie68595598c36dbbc6d0e3eb84aea756ed0e66029
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-04 09:58:23 +00:00
Alessandro Portale
9f528acc48 ExtensionManager: Display the compatibility version extensions
Fixes: QTCREATORBUG-31198
Change-Id: I0a715bd4d5a8981fba294bb4556fc31fccf6150b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-04 09:52:16 +00:00
Alessandro Portale
d34ca7d2d7 ExtensionManager: Use description text for searching
The current code silently failed to add the description text to the
search role. This change fixes it.

Change-Id: I33e5554ac1ff2b11f9610843b566698551a6e0a1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-04 09:51:48 +00:00
Leena Miettinen
2ba0ad4030 Doc: Describe Android AVD options
- List the available device definitions
- Add information about the other fields

Task-number: QTCREATORBUG-30604
Change-Id: If22f8bfae916bafed7f1153fec7fd5962e406d5f
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-07-04 09:23:00 +00:00
Christian Stenger
46f245c222 Tests: Fix building manual tests
Change-Id: Idd4f0bf1577d3ffa3b4b162c2f1ed0ae7047e35a
Reviewed-by: hjk <hjk@qt.io>
2024-07-04 09:15:36 +00:00
Leena Miettinen
e8ad591ae1 Doc: Describe Extensions mode
Task-number: QTCREATORBUG-30604
Change-Id: I5a3b9eadfccfbf759097d48e8cc506d697f53864
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-04 08:24:40 +00:00
hjk
62ce36b235 QmlProjectManager: Remove DesignModeContext
This sets no context, i.e. effectively does not do anything.

Change-Id: I5f2e30f61fd5547f71cd69a43667c21ea4d06c77
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-04 07:53:21 +00:00
hjk
756e4dbb24 QmlDesigner: Remove ineffective code
IContext::context() returns a copy by value. Adding to that does not
change IContext's internal m_context, i.e. these lines are effectively
no-ops.

Assuming that it currently "works", the setup probably happens
elsewhere, and this code is superfluous.

Change-Id: Idf33c769eed98bfa34a6def7649c8280f1551716
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-04 07:50:09 +00:00