Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
f64232f77b Fix some random deprecation warning
if QT_DEPRECATED_SINCE(6, 0)
    QT_DEPRECATED_VERSION_X_6_0("Use position().toPoint()")
    inline QPoint pos() const { return position().toPoint(); }
    ...

Change-Id: If885b26c8e5f4d68ca1c5c7e4ffc495b0701b210
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-06 07:17:26 +00:00
hjk
a05b0a7829 LayoutBuilder: Potentially save a few cycles
... by not actually creating the unused instances of the Id types.

Change-Id: Id6123d359d8b8af41794e41a61fc00b05a2291ed
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 07:10:36 +00:00
hjk
25f8934b39 TextEditor: Inline SnippetSettings class
It's effectively just one string and wasn't aspectified.

Change-Id: Ifdfabddbd3d9e089487eefd1591db267685a582b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-06 07:10:24 +00:00
Eike Ziller
2b8d790b77 Merge remote-tracking branch 'origin/14.0'
Change-Id: I4260181d32ed514e1a912188dbf1040857a83f54
2024-06-06 09:02:20 +02:00
Eike Ziller
c935f69827 Merge remote-tracking branch 'origin/13.0' into 14.0
Change-Id: I7ca7fc0d963b30257fd735eca8b00aedef1443ae
2024-06-06 09:01:03 +02:00
Christian Stenger
15056578eb Shared: Add json file to qbs build as well
Amends 32322801f5.

Change-Id: I1078f532598e98ce4f12f28cad1ef512f27be52b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-06 06:14:14 +00:00
Eike Ziller
42eb44f622 ProjectExplorer: Workspace projects were missing from recent projects
When we checked for validity of recent projects, we used `isFile`, but
the path that is used for opening a workspace project is a directory.

Change-Id: Ie22c13c06c22d4584d1e198d5ab133025ea536c8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-06-06 05:53:08 +00:00
Eike Ziller
b0e1ea7da7 Fix recent projects menu directly after startup
We missed to initialize the recent projects menu when initializing.

Amends 77d7106b3a

Change-Id: Icd394d8500c5853a6195ab1868e20caed3f5f323
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-06-06 05:48:30 +00:00
Eike Ziller
7996c5afac Editors: Improve the highlight of the current view
Make the overlay widget as small as possible, paint it opaque, and paint
only on the editor tool bar.

Change-Id: If48f8f7c4dd221cb605548449f5bbb1a30c25a76
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-06 05:47:36 +00:00
hjk
355b8e4d1a Fix QIcon::pixmap() related deprecation warnings
QPixmap pixmap(const QSize &size, qreal devicePixelRatio, Mode mode = Normal, State state = Off) const;
    QT_DEPRECATED_VERSION_X_6_0("Use pixmap(size, devicePixelRatio) instead")
    QPixmap pixmap(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const;

Change-Id: I8b08bec86014809887c1915b72c2776bae4a87fb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 16:40:02 +00:00
Jarek Kobus
c40dceced7 Android: Introduce devicesCommandOutput() helper and reuse it
Change-Id: I098aa17328efcf66a3fb80416e65a2f82d190edc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:42:59 +00:00
Jarek Kobus
f450610a6f Android: Transform AndroidDeviceManager into namespace
Change-Id: I92f5ea325dfcb2a11b0fde14b797c5d40bf47d0b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:37 +00:00
Jarek Kobus
ccd6872608 Android: Hide AndroidDeviceManager methods in cpp
Change-Id: I871b1126d36367b3716ed988f581a8b5bca68693
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:28 +00:00
Jarek Kobus
5a12b3618f Android: Get rid of connectedDevices()
Change-Id: Ib803c2f7cfb6db71a9b35716aca1663a7ce0176a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:17 +00:00
Jarek Kobus
4ca1edc080 Android: Avoid using connectedDevices() in getRunningAvdsSerialNumber()
The connectedDevices() constructs the full list of
AndroidDeviceInfo with details not needed by
getRunningAvdsSerialNumber(). These details were generated by
using 2 excessive process runs. Get rid of them, and deliver
result as soon as the matching device if found.

Change-Id: Idc3d9d3321e471f8eaa0d69287f5e748813fc427
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 15:38:08 +00:00
hjk
05d942d488 Modeling: Fix some Qt 6.6 deprecation warnings
Change-Id: I850bff960601595d3273f3a8dedd3f7e6830e9ba
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 15:05:18 +00:00
hjk
5f0b9cd5ff QmlPuppet: Fix some deprecation warnings
Crc/tools/qml2puppet/instances/nodeinstanceclientproxy.cpp

Change-Id: I83342da2a9015ac1a8ba15d2fa10626ef00f5e0c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-06-05 14:31:10 +00:00
Alessandro Portale
74e4e1053a ExtensionManager: Update ExtensionManager list items design
This updates the list delegate for ExtensionManager items to match the
latest Figma design.

Change-Id: I769026caa1e08feea4f71d901d1bda01d74ab0a2
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:16 +00:00
Alessandro Portale
bbfb7542a7 ExtensionManager: Read more fields from service response
This adds reading of "download_count", "id" and "is_internal".

Change-Id: I45382d7c70bbc5f44f9391bf3a87ee354d1809e4
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:07 +00:00
Alessandro Portale
0650fe14e5 Utils: Update Figma text tokens
This adds UiElementLabelMedium and UiElementLabelSmall.

Change-Id: I592f2bdf7a4d0a98e38ea69c33cf1b27040f7eea
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:30:00 +00:00
Alessandro Portale
152307a758 Themes: Update Figma color tokens
This adds color tokens for gradients 01 and 02.

Change-Id: I05ae55ff4fd9f496ff1e465e6905398825078b52
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:29:53 +00:00
Christian Kandeler
5221d53a6d BareMetal: Use runnable() to get executable and arguments
... rather than accessing the aspects directly.

Task-number: QTCREATORBUG-30925
Change-Id: Id39b6226f6bbee75b93905747373513294deb29e
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:23:33 +00:00
Christian Kandeler
345ae8e4d4 ProjectExplorer: Merge CustomExecutableRunConfiguration::runnable()
... into parent class implementation.
This way, the executable expansion will be done for all sub-classes, the
remote custom run configurations being the most relevant ones.

Task-number: QTCREATORBUG-30925
Change-Id: Id7715d9f60338767c0623fa33749ef18338ae479
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 14:21:48 +00:00
Cristian Adam
0fa8047f12 CMakePM: Transform a few raw C strings into constant literals
This way you can have code completion for the constant literals and not
do any accidental typos.

Change-Id: I1f9dc36327052fcda9575dddec909db93c4b225c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 13:14:02 +00:00
Cristian Adam
e04c727043 CMakePM: Don't remove QML debugging flag with the preset value
If a CMake preset has the CMAKE_CXX_FLAGS_INIT parameter defined, it
would override the QML debugging flag set before.

This patchset makes sure that both are present.

Change-Id: I2012567af04c2fa0b0097331c05d96770dd86503
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 13:13:14 +00:00
Jarek Kobus
ffc3c9b7f3 Android: Avoid using connectedDevices() in findAvd()
The connectedDevices() constructs the full list of
AndroidDeviceInfo with details not needed by findAvd().
These details were generated by using 2 excessive
process runs. Get rid of them, and deliver result
as soon as the matching device if found.

Make getAvdName() public.

Change-Id: Ic58e2ee55f275e230c07631853225ca3fdefd730
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 12:38:40 +00:00
Jarek Kobus
2d1d4d9ba3 Android: Optimize isConnected()
Before, the implementation used connectedDevices() function
which constructs the detailed info about each device
found, including running 3 extra processes for each device
in a loop. For the purpose of isConnected() - the detailed
info isn't really necessary - it's enough to parse the output
of the {adbToolPath(), {"devices"}} command and detect if
the requested serialNumber appears there. We skip executing
3 additional processes for each device found.

Change-Id: I34f79fb56b4aa4d52a284bc2c67ae01a3467b505
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-05 12:33:53 +00:00
Christian Stenger
9a4cae42c0 Tests: Make environment test less verbose
Only print out additional information if the environment
does not match the expected one.

Change-Id: I9be1a90400a180a4cbd0381f54eea79409c007c7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-05 11:46:04 +00:00
Christian Stenger
7f08529a60 PE: Remove left-over connect
The item view was made read-only and this connect
only results in a warning on the command line when
double clicking an item.
Amends 8ef85e481a.

Change-Id: I32d6b9d38e2c554fb91f5cbd1f1f5fd1e6c1a394
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-05 11:45:57 +00:00
Christian Kandeler
c33decf1b0 Utils: Fix editing in environment widget
In the edge case that the name of one variable starts with the name of
another followed by an underscore, we mistakenly stopped at the former
when searching for the latter in the text widget.

Fixes: QTCREATORBUG-30855
Change-Id: I6decf7805a937d52d25e6c62899ae062f636a2a1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-05 11:12:07 +00:00
Christian Stenger
4a9b2deb3e Docs: Describe changes on Axivion plugin side
Change-Id: Iefdd4d33fbb5b29f8afec8899d8a4373cc0f2436
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-06-05 11:11:59 +00:00
Marcus Tillmanns
32322801f5 Shared: Add project.json schema for workspace projects
Change-Id: I16f2944316805ecbd3cd3dfc763c457e5ad6142f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-05 11:05:47 +00:00
David Schulz
f3e164af4f ProjectExplorer: prepare for parallelization of recursive file scan
Change-Id: Ia2db3ef0fe619907c1ed30b8f984de4de04cc477
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-06-05 10:59:59 +00:00
Christian Stenger
5b93e34c00 Utils: Allow comments in environment items
This patch allows commenting environment changes or adding
comments to the batch edit widget.
To mark a line as comment prefix it with '##'.

Modifying the environment by using the batch edit mode
allows using '#' to disable variables.
Mis-using this to disable statements of the environment
items widget is tempting and other tools explicitly allow
it this way. But when doing so, the environment may get
some unforeseen modifications.
So, explicitly provide a mechanism for comments and be
more clear about this inside the documentation.

Change-Id: I6a58d0d00e996a3f886ec30e826cade324321818
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-05 10:48:24 +00:00
Eike Ziller
6692462dcb Wizard: Fix size calculation of outline titles
On macOS we now (with Qt 6.7) get nice, high resolution pixmaps from
QIcon::fromTheme. That means that our wrong assumption that the pixmap
size == UI size leads to huge layout sizes for the indicator of the
current wizard page.

We need to take devicePixelRatio into account for determining the UI
size.

Fixes: QTCREATORBUG-31015
Change-Id: I6e9c77cf2f37fce60735e75c1fa694e4b4208b98
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-05 10:40:10 +00:00
Artem Sokolovskii
e8938acca9 ClangFormat: Fix indenting 'return' after key words
Change-Id: I9e11b4d299c13ffada897b009fb70c3447213500
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-06-05 10:22:50 +00:00
Artem Sokolovskii
9b2bd223dd AppStatisticMonitor: Use QCharts instead of self made
Change-Id: I4de07dd104dec9e1c68e5daf00a55ab7f8a3f72e
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 10:22:12 +00:00
Eike Ziller
1ad2c04e0e Update change log for 13.0.2
Change-Id: I542d2f53d957471660ae0c210c4825b5a9c42a57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v13.0.2
2024-06-05 07:03:39 +00:00
Cristian Adam
f17c0fe19c CMakePM: Fix Presets macro expanding of environment
Amends a25bbf23c6

The commit broke evironment variable usage in CMake presets. For example
"$env{HOME}" would have been expanded to "/home/user:/home/user" because
of code thinking it deals with paths.

Change-Id: I3ef34179e2ebaf55b25a42dcce87438c1a72b73e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-05 06:59:13 +00:00
Jarek Kobus
6621c68ca9 TaskTree: Qt-ify the code
Make it more conforming to the current Qt style:
1. Remove trailing semicolons after inlined functions.
2. Use Q_SIGNALS / Q_EMIT in headers.
3. Use QString::fromLatin1() where needed (as otherwise the string
   c'tor is deprecated).
4. Use module names in Qt includes.
5. Simplify local asserts in barrier.cpp.

Change-Id: I13cadee6ff61a24d792efcf3b613f7cf5563076b
Reviewed-by: hjk <hjk@qt.io>
2024-06-05 06:55:07 +00:00
Jarek Kobus
dfef293aa4 Android: Fix find process and user PID recipe
Before, the loop got finished after the very first
failure of the pid command. Fix it so that the loop
stops on the first successful execution of any child.
Make timeout task return error, so that the loop
continues executing after the timeout.

Simplify some commands' constructions.

Amends a7ece15f6e

Change-Id: I637002f0248ec69e61e058c7246471396aac1142
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-04 18:41:46 +00:00
Cristian Adam
831b93905b CMakePM: Set platform codegen and linker flags for GCC compilers
If a GCC compiler has platform codegen flags they will be set into
CMAKE_C_FLAGS_INIT or CMAKE_CXX_FLAGS_INIT initial CMake parameters.

The linker flags are set they will be set into
CMAKE_EXE_LINKER_FLAGS_INIT, CMAKE_MODULE_LINKER_FLAGS_INIT and
CMAKE_SHARED_LINKER_FLAGS_INIT initial CMake parameters.

If the kit has a Qt the CMAKE_CXX_FLAGS_INIT value will merge both GCC
C++ platform codegen flags and the QML Debugging flags.

Fixes: QTCREATORBUG-24420
Change-Id: I066d30b816ae8575f615654bb85bd82a394f9737
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-04 18:32:57 +00:00
Cristian Adam
a9995e23b1 CMakePM: Allow CMake custom build types
CMake can have custom build types. Qt Creator can rename existing build
types.

This changeset allows having a custom build type like for example:
  * CMAKE_BUILD_TYPE=MyRelease
  * CMAKE_CONFIGURATION_TYPES=MyDebug;MyRelease

Fixes: QTCREATORBUG-30014
Change-Id: I3d81d9ff867bfaab29aaf1741606f9c586da82e0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-04 15:30:37 +00:00
Christian Kandeler
ba017c03c2 RemoteLinux: Lower the timeout when retrieving the environment
Otherwise, a non-responsive device will freeze Qt Creator for ten
seconds (with no announcement, because the env call does not go through
the device shell).

Change-Id: I92ab847dd441494770dbe29cde1c726dd31f32fb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-04 14:53:49 +00:00
Marcus Tillmanns
00174e493f ProjectExplorer: Add WorkspaceProjectRunConfig
Change-Id: I66f25165f652f371130555279eddc0437b011887
Reviewed-by: hjk <hjk@qt.io>
2024-06-04 14:08:54 +00:00
Eike Ziller
87a7451c2a LayoutBuilder: Fix build with Apple Clang
It needs an explicit constructor, otherwise it complains that it cannot
find a match to the Arg2{p1, p2} call (requires 1 argument, but 2 were
provided) etc.

Amends 6231213aa3

Change-Id: Ibe3b27b334b8abff5028a77372cf208bfda9d8c1
Reviewed-by: hjk <hjk@qt.io>
2024-06-04 13:29:24 +00:00
Eike Ziller
ca3c4537d8 Merge remote-tracking branch 'origin/13.0' into 14.0
Conflicts:
	src/plugins/copilot/copilotsettings.cpp

Change-Id: I6d17cf8968d6efbafb883da8346c7950349f7d84
2024-06-04 14:43:35 +02:00
David Schulz
99ce8b522f Core: compress shortcut settings widget updates
reduces the number of calls to ShortcutSettingsWidget::initialize while
the shortcut settings widget is open and actions get registered. For
example when searching the preferences dialog the shortcut settings
widget is alive and some setting page widgets create a text editor,
which again registers some actions.

Change-Id: Ieb3c3d1c7ce317c3407a9c97514f6cc4a4ce76c4
Reviewed-by: hjk <hjk@qt.io>
2024-06-04 12:32:43 +00:00
Marcus Tillmanns
f512bbff89 Copilot: Adapt to agent.js => language-server.js rename
Copilot has changed the name of agent.js to language-server.js. This
patch adds the new name and changes the installation note without
changing the translation.

Change-Id: I585fe54c86029de32de806447ec3356999a99540
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-04 12:29:34 +00:00
Sivert Krøvel
0e80f63a1a McuSupport: Use arm-none-eabi-gdb as a backup debugger
We normally use arm-none-eabi-gdb-py, but this doesn't come
with the new arm gcc version which ships with Qt for MCUs 2.8.0
To make sure the kit works, use this as a fallback.

Task-number: QTCREATORBUG-30699
Change-Id: I85c6c3ea1f7aae504e0aa1afb8a344d9bc3067d5
Reviewed-by: Kwangsub Kim <kwangsub.kim@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-04 12:19:25 +00:00