Commit Graph

86804 Commits

Author SHA1 Message Date
Leena Miettinen
d0e240fd52 Doc: Turn "Pasting and Fetching Code Snippets" into a how-to
Task-number: QTCREATORBUG-29361
Change-Id: I0b2fe3cd2b3d3e3ec2c589ebcbd196832765c4ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2024-03-14 08:56:18 +00:00
hjk
fc4067a118 Debugger: Annotate internal debug output with engine type
Makes it easier to reason in mixed setups.

Change-Id: I4f7aa43847dab51d4041fb1b9850ed9860a6dafc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-14 08:31:36 +00:00
hjk
5ebd4c833e QtSupport: Restrict QtVersionManagerImpl lifetime to plugin lifetime
This occasionally triggered crashes on static destruction when
hard-killing Qt Creator.

Giving QtVersionManagerImpl the plugin as QObject parent effectively
re-instates the lifetime behavior from before we moved to delayed
initialization. We keep the delayed initialization, at the (acceptable)
prize of a somewhat quirky setup.

Change-Id: I1b4be284a1b573325ed5cc441778eeb48b94c24b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-14 08:30:55 +00:00
Leena Miettinen
75b9b31c62 Doc: Turn "Using GitHub Copilot" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: Ie682ebd399b0f478d106dba9876f4fea9834d340
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-14 08:07:01 +00:00
Eike Ziller
cdad61d08a QmlDesigner: Add optional dependency on LicenseChecker
It is important that the LicenseChecker's initialization (if that is
available) happens before QmlDesigner's, so add an optional dependency
to reflect that.

Add a PLUGIN_MANUAL_DEPENDS option to add_qtc_plugin, which explicitly
specifies the name, version and type. The existing PLUGIN_RECOMMENDS
requires the plugin target to exist to extract the plugin's version.

Change-Id: Ie2cf84e75964ce91ed8bbcdbeee9fa9770bed641
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-13 17:19:07 +00:00
Alessandro Portale
e604f285e8 Android: Provide direct JDK download link to required version
This changes the JDK download link to the JDK 17 packages on
adoptium.net, which is the latest source for JDK binaries for all three
host OSses.

Fixes: QTCREATORBUG-30335
Change-Id: I54322c82b7854d948fe15462f198f8eac1f58981
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 14:51:58 +00:00
Christian Stenger
e97791ea6a Axivion: Make columns movable again
This got lost when replaced the default header implementation
with a customized one.

Change-Id: I5824b0e35a39746eb7056fbc95ea085505129f4e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-13 14:48:32 +00:00
Christian Stenger
4a17bbbfd1 Axivion: Left-align the header columns
Change-Id: Ie1384cf10bc30e12cac3c8b1d120edb030738a22
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-03-13 14:48:27 +00:00
Eike Ziller
988832ae76 Do not use original ID when creating kit for vanished target
If we use the same ID for the new kit as for the original, we get into
problems if the original kit re-appears.

This can happen when uninstalling a Qt version with the online
installer, and later re-installing it. Or when changing the install
settings path to a different online installation and back again via the
command line or the "Link with Qt" functionality.

Change-Id: Id99a3560ebed6264ad13dab5ff48945b30a8229f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-13 14:14:02 +00:00
hjk
1c64f2bd4e AppMan: Fix crash when creating AppManagerInstallPackageStep
... in a situation where no device is present. This happened to me
when trying to restore a "vanished" kit.

Change-Id: I7019385af115a5cd653b9a79e4420f1f8df4797d
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-13 14:06:03 +00:00
Eike Ziller
d70450d849 Examples: Ignore remote Qt versions
While showing examples from remote Qt versions would probably be
possible, it is not a great idea performance-wise.

Task-number: QTCREATORBUG-30512
Change-Id: I2d00640bc8cbb3b19a89af1b17108e28604ef5a8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 13:59:26 +00:00
Jarek Kobus
d738d3ab95 Axivion: Ensure the username matches on unauthenticated access
Disallow the unauthenticated access when the username doesn't
match the dashboard's username.

Change-Id: If4a38091b0bba42d89da911be45f823c248cc25f
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-13 13:54:18 +00:00
Jarek Kobus
5211a9457a Axivion: Break the authorization process on error
Break the authorization process on any error coming from
unauthorized access trial except the UnauthenticatedException.

Call onUnauthorizedGroupDone only after successful execution
of dashboard's dtoRecipe(). Rename it to onUnauthorizedDashboard.

Change-Id: Ia7ce0f326c91722d0e68d5228cb46b94b47a7892
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 13:54:03 +00:00
hjk
b33fee0ded Debugger: Be a bit more explicit about states while quitting
... and make sure to use notifyInferiorIll only in states
where the inferior might still be alive.

Change-Id: Ie002cd8b70cc610b15bab00554c027494a0ad2e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-13 13:29:35 +00:00
hjk
a2ee1043c7 RemoteLinux: Fix crash on running test of an already configured device
I got a crash when clicking "Test" in the configuration of an
already existing ("Local Remote") device that was intentionally
not yet set up with working authorized keys after dismissing the
qtc-askpass dialog. The full reason is unclear, but this here
fixes it for me.

Change-Id: Ie07b89b85576beb59583370191e337fd1219db51
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-13 12:47:09 +00:00
Cristian Adam
52c39d007f CMakePM: Do not crash with CMake presets and no CMake tool
If no CMake is found, show an error message (reusing an existing
translated string).

Fixes: QTCREATORBUG-30505
Change-Id: I6e3037ee97dfba21791191483fffab769a451125
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-13 12:32:54 +00:00
Alessandro Portale
90f66d63fa Welcome: Enable hover effect on Welcome screen buttons
Some styles (e.g. macOS, KDE) disable the hover effect on
QAbstractButton. Setting the Qt::WA_Hover on our own button enforces the
hover effect.

Change-Id: I9f2f22c7e7c869a70ebb0e9032d162bd29e94166
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 12:23:06 +00:00
Alessandro Portale
f6727adc10 Use Qt::TextShowMnemonic for text metrics and drawing
Qt installations on KDE systems may insert shortcut ampersands into
widgets texts. For self-painted widgets, we need therefore consider
Qt::TextShowMnemonic when retrieving metrics of a text and when drawing
it.

This change addresses the issue for Utils::DetailsButton and
Core::Button. Most likely, there are more places where this needs to be
fixed.

Task-number: QTCREATORBUG-30534
Change-Id: I98ef9bf8c8502d92d3a3884d1588be190934f5bd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 12:18:34 +00:00
Jarek Kobus
a8d339271e Axivion: Disconnect from Job's finished signal
Just to be sure we don't re-emit task's done signal.

Change-Id: Ibcd0076c2c14044355e838be2e6ba47d1019b9d1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-13 12:01:50 +00:00
Christian Stenger
8a8f26d39a Axivion: Avoid sort indicator overlapping column text
If the column is too narrow we may overlap the text of the
column header. Explicitly clear the area before painting the
icon.

Change-Id: If73c1e2cc66c21dd9ffa41710873faa654bf235e
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 11:32:51 +00:00
Marcus Tillmanns
3cdc4f5a96 Docker: Allow starting Container from all threads
Limiting starting the container only from main thread is worse than the
potential for data access races. DockerDevice needs a rewrite here.

Change-Id: I485f5253d1f0ba0e7fb40ca7e1ddb37dd615212c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 09:43:02 +00:00
Leena Miettinen
6760e2d64b Doc: Fix typo "a installable" > "an installable"
Change-Id: Iea7ac4825de671ac892a8cbb228fb462a1f5be15
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-13 08:57:14 +00:00
Jarek Kobus
0b656452dd GenericLinuxDeviceTester: Fix warning about QFutureWatcher connect
Fix the warning:
QFutureWatcher::connect: connecting after calling setFuture()
is likely to produce race.

Amends e8ad29d3af

Change-Id: I834f41bd3b7c51520fb36945d4c09a8eafd2affc
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 08:07:44 +00:00
Jarek Kobus
5399eff2a9 BaseQtVersion: Get rid of MacroExpanderWrapper
Apparently the reasoning for having it, i.e. make
std::unique_ptr<Utils::MacroExpander> "copyable" is not
valid anymore.

This change also fixes the leak of a MacroExpander
returned by QtVersion::createMacroExpander().

Change-Id: I811ecf2eca8e5ce3a1da267da8290ba89df66db6
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 08:07:36 +00:00
Jarek Kobus
3529f3115d ToolChainOptionsWidget: Don't leak QActions
Change-Id: I2018c10a708c4b4bfa2402620874735da5860fde
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 08:07:09 +00:00
Jarek Kobus
c1015dde15 DeviceSettingsWidget: Don't leak QActions
Amends 662aabd29f

Change-Id: I353a93b3b3752d639f9fc5d45467c843bed6a604
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 08:06:59 +00:00
hjk
7a769c59e7 Debugger: Add missing state transition
DebuggerProcessFinished in EngineSetupRequested means EngineSetupFailed.

Could be triggered with LLDB "Run as Root" plus <Cancel> in the dialog.

Change-Id: Idbfcaebfc302c7646f9b85275d1d57be17cd0922
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 07:54:57 +00:00
hjk
3322186b0d BaseQtVersion: Drop cache related paramenter QtVersion::fromMap
Not used anymore.

Change-Id: I992bde278af360d9d67fd86fd79bb035cafd2bec
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-13 07:54:50 +00:00
Marcus Tillmanns
3f8bc98109 Debugger: Add "Run as root" support for lldb
Fixes: QTCREATORBUG-30516
Change-Id: I2f1e7522dd95847ad548a2390795a91a90c63a17
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-13 07:50:31 +00:00
Marcus Tillmanns
41f1bc141d Process: Preserve environment when "runAsRoot" is enabled
Change-Id: I2078925b48d8fc3053e2be9632248e3fff9ea608
Reviewed-by: hjk <hjk@qt.io>
2024-03-13 07:50:16 +00:00
Jarek Kobus
16decfec67 LanguageClientSettingsPageWidget: Don't leak QMenu
Change-Id: Ia1bfc4aa66e6ed2e2b0e87ae89cf92b1bd5fa97a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-13 07:47:24 +00:00
Jarek Kobus
84166b4eaf PyLSConfigureWidget: Don't leak the editor
Change-Id: Idc283b2cfabfcd1120520c5bbb4258b085c410a0
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-13 07:47:17 +00:00
Christian Stenger
0aff252264 Utils: Fix qbs build
Amends 4e8bdd610b.

Change-Id: I6a187c8cd28320836a12cfc4a778d507193c52a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-13 07:44:08 +00:00
Christian Stenger
fe5f959925 QmlPreview: Fix enabled state of editor action
Kind of amends 42c1b15874.

Change-Id: Ifd340d0f9bb206c48fd82cecf4e735cca0d70a7d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-13 07:00:12 +00:00
Alessandro Portale
0817f7ae5e Utils: Replace imageFileWithResolution with qt_findAtNxFile
qt_findAtNxFile does a better job at returing a suited @Nx-image for
"exotic" device pixel ratios. This change fixes for example the active
mode icon when running Qt Creator at 250% ui scaling.

Task-number: QTCREATORBUG-30464
Change-Id: Ia90ba3573fcd4af7941322d7dbc8905fe140192b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-13 06:49:55 +00:00
Alessandro Portale
c6ed1d42c3 Welcome: Fix application icon size for > 200% ui scaling
Use the actual image dpr for arithmetics rather than the application
dpr.

Fixes: QTCREATORBUG-30464
Change-Id: I52083bcca067282a677a9d0e1b7c62e9c7270c64
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
v13.0.0-rc1
2024-03-12 21:50:58 +00:00
Cristian Adam
8713919f31 CMakePM: Fix dll path addition for MinGW
Amends 0d8a542b4f

Fixes: QTCREATORBUG-30529
Change-Id: Ic786f1e7075ef68cf9d590d27ef90b9d1e8631b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-12 21:37:48 +00:00
Leena Miettinen
1cf925bc17 Doc: Describe the application manager plugin
Task-number: QTCREATORBUG-30209
Change-Id: Icd40d6da99e7fa53f667745a4de32b03b1157c99
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-12 15:43:42 +00:00
Leena Miettinen
6a74c829df Doc: Extend "Using CMake with Conan" to vcpkg
The automatic setup also works with vcpkg.

Change-Id: I755e59ef0a88105da195e9abe30adca5e3011fae
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-12 15:43:23 +00:00
Thiago Macieira
1ac1095d4d QmlDesigner: fix build with Qt 6.8 w/ the spaceship operator changes
There are new operator== overloads that are causing this to now be
ambiguous.

qlist.h: In instantiation of ‘qsizetype QtPrivate::indexOf(const QList<T>&, const U&, qsizetype) [with V = QByteArray; U = Utils::SmallStringView; qsizetype = long long int]’:
qlist.h:935:20: error: ambiguous overload for ‘operator==’ (operand types are ‘const QByteArray’ and ‘const Utils::SmallStringView’)
qbytearray.h:520:5: note: candidate: ‘bool operator==(const QByteArray&, const QByteArrayView&)’
smallstringview.h:117:16: note: candidate: ‘constexpr bool Utils::operator==(SmallStringView, SmallStringView)’

Change-Id: I6818d78a57394e37857bfffd17b9ffb5101cdc5c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 15:06:29 +00:00
Marcus Tillmanns
4e8bdd610b Utils: Remove PresistentStoreCache
It turns out caching the information is unreliable due to a variety of reasons.
We remove the cache for now as its less dangerous than trying to fix each
use case.

Change-Id: I8238166486a2fb29c101f700af1c8d7e4ad7a172
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 14:24:05 +00:00
Marcus Tillmanns
07399dfb0c Utils: Fix compile on windows
Change-Id: I296e4a75984689a4cdbcea69519c4a27d5d5e90a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 14:15:33 +00:00
Leena Miettinen
5e2140a01f Doc: Create links between Callgrind and Performance Analyzer
Change-Id: Ia7073a8cef72f141253810558b30ba9c28083b7e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-03-12 13:59:51 +00:00
Jarek Kobus
6956771e0d ProjectExplorerSettingsWidget: Don't leak QButtonGroup
Change-Id: I64896287dda3df96078f7fabec4cd4437396f3f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 13:40:46 +00:00
Eike Ziller
dd43b59ede MCU: Fix translated string
It tried to use an existing string, but missed the full stop

Amends 124c62a5a0

Change-Id: Idf66621b714da86be700d4ac18c6df2c7a83a468
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-12 13:34:39 +00:00
Leena Miettinen
e6eed39985 Doc: Turn "Using Text Editing Macros" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: I0d62d48036e08528c025eac8653e58ff0039e5a2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 12:20:38 +00:00
Leena Miettinen
8c0bb53c76 Doc: Turn "Comparing Files" into a how-to topic
Hide it from the QDS Manual.

Task-number: QTCREATORBUG-29361
Change-Id: I7c44aaed42e374b8e07d093279c8078ada18c250
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-12 12:20:25 +00:00
Alessandro Portale
7c6c08a8ba Welcome: Draw stroke for hovered items
As specified by design.

Change-Id: Ia766ca16e3ce233aa73ac75d48d70b1379c39c37
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-12 11:27:21 +00:00
Jarek Kobus
79573f2c76 CppEditor: Don't leak CppCodeStylePreferences
Change-Id: I4414c69cebaeb429c5b6dfea6e6fa97b118e353e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 11:15:00 +00:00
Jarek Kobus
31e97d5069 ClangFormat: Don't leak editor
Amends e1f7469afb

Change-Id: I862bca5a57d818e8b813d557fa7c3a4e3690dcd2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-12 10:27:56 +00:00