Commit Graph

84268 Commits

Author SHA1 Message Date
Alessandro Portale
bc250d9cf0 QtSupport: Don't show semi laid out examples while updating
This hides the examples SectionedGridView while the examples.xml files
are loaded. When shown, they are directly in the full size.

An additional benefit lies in the initial loading of less thumbnail
images because with QTCREATORBUG-29811, many more thumbnails were
visible in the initial view than now.

Fixes: QTCREATORBUG-29811
Change-Id: I42f362497859b0b98dc48ef0f1b6399d91c0db28
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-31 11:39:03 +00:00
Leena Miettinen
8762af4912 Doc: Describe the "Stage for installation" option
...in Projects > Build & Run > Build Settings.

Updated screenshots.

Task-number: QTCREATORBUG-29392
Change-Id: Ieb44b593452e4999c9603ae51148075cb23b6e86
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-31 11:05:51 +00:00
Leena Miettinen
52a6d2ab6b Doc: Describe the Preferences > "Sort categories" option
Task-number: QTCREATORBUG-29392
Change-Id: Icfe9caa387fdf809be136b813de6b9ffe4a05718
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-31 10:37:49 +00:00
Thomas Hartmann
857b4a67bb QmlDesigner: Add missing qualifier
Most of the time the QML runtime seems to ignore this, but
there is race condition and it can fail.

Change-Id: I6330b5b70bb15a9886349020c976213d66c8e481
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-31 10:05:03 +00:00
Eike Ziller
7c64f1d4dc Examples: Avoid warning about scaling null image
Change-Id: I16f75c2c6d05017b99596ca0855e0d86f4a74a6f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-31 07:23:44 +00:00
Cristian Adam
3581d1c5dd CMakePM: Fix C/C++ code model preparation
Only set the compiler flags for the active language.
Select source and header files accordingly to the active language.

Fixes: QTCREATORBUG-29707
Change-Id: Ieeaa56f85ccc937f31253ac047538fa19ae4166f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-30 12:26:17 +00:00
Leena Miettinen
dc4703e5c0 Doc: Describe Preferences > Testing > General > Scan threads
Task-number: QTCREATORBUG-29392
Change-Id: I71f253b0ffd6df615525da0c4c31e72245970bec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 12:02:26 +00:00
Alessandro Portale
7fce843949 ScreenRecorder: Make recording options dialog non-resizable
Ther resizing behavior is quite odd.

One planned feature for the plugin is a zoomable crop view. Once that is
in place (in QtC 13 or later), like suggested in the report, the dialog
can be scalable and the crop view can grow using the available space.

Fixes: QTCREATORBUG-29810
Change-Id: Ic77f81f704546d2730599b00664606aada3280d8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-10-30 11:42:22 +00:00
Leena Miettinen
472b4cb358 Doc: Describe changes in Git Instant Blame
"Instant Blame" is now a check box. The
"Add instant blame annotations to editor"
check box was removed and the following were added:
"Ignore whitespace changes" and "Ignore line moves".

Task-number: QTCREATORBUG-29392
Change-Id: I8dd0a779dd4a72fef7a5bb1a9023c3b705f0f174
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-10-30 10:57:48 +00:00
David Schulz
0117b1669b Python: use correct python language server after installation
Change-Id: Ie5e26eedffc51e8916d849121fa60ea3d56e5a66
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 09:44:22 +00:00
Marcus Tillmanns
250b82ba32 Ios: Finish deploy on failure
Previously the deploy step would seemingly run forever if the
startSimulator step failed, as no result was added to the promise.

Change-Id: Ib320d051e78057e536d4ad371cb30108e848c65f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-30 09:16:10 +00:00
Marcus Tillmanns
78b56e7def Core: Initialize old log category filter
Change-Id: I732761977b9ca0e14a072f28db0830f57edc6989
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 07:56:43 +00:00
Marcus Tillmanns
ee3e6376f0 Core: Handle async log category init
If a log category is first used by a different thread than the main
thread, we need to make sure that we dispatch the call into the
main thread ourselves.

Change-Id: I0908366b254649f30a1d18cb4e0da4a7e3988dcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 07:44:57 +00:00
Marcus Tillmanns
53931b18ad Debugger: Fix QDateTime dumpers with TZ != UTC
Fixes it for Qt 5.4 and onwards hopefully.

Fixes: QTCREATORBUG-29737
Change-Id: Ic555e304a872dfbd458a95097e4e0b6a6632509a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 07:44:28 +00:00
Marcus Tillmanns
936015b345 Core: Don't create Log Viewer just to close it
Change-Id: I92a724b0b1bc6a749fbd18f91494be0f2eff11d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-30 07:28:29 +00:00
Christian Stenger
79becbaeac CMakePM: Protect against accidental nullptr access
Wizard summary page does not provide a list to put in failed
files, so ending up inside the build systems addFiles() may
pass in a nullptr. Guard against its access.

Change-Id: Ia858f8029b1b840cc341d87614576f2634b995dc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-30 05:24:35 +00:00
Christian Stenger
7891a7f5b4 AutoTest: Fix crash
Amends 6b6d9dc21e.

Change-Id: I5fc2bd2b3788a660d038328f00e73db0ab25d7b0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-27 12:34:16 +00:00
Eike Ziller
8f1c8790e2 Update change log
Change-Id: Ia079c3c93b0b33f93fa462cd3cac634f158ee2b8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-27 11:01:21 +00:00
Christian Kandeler
d0c61823a9 Update qbs submodule to HEAD of 2.2 branch
Change-Id: Ib0d39635b334757a6d33d40cef50d9e56ddb89e8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-27 10:49:23 +00:00
Marcus Tillmanns
a3853ecc44 Terminal: Q_ASSERT workaround
Change-Id: I7e1bf06db437b523e8b06695c3b12f2562a73ce8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-27 10:13:02 +00:00
Marcus Tillmanns
cca7bc98a9 CMake: Fix deployment path
Previously the path would be created based on the build device
instead of the target device. Therefore when building on windows with a
linux target the path might become "c:\usr\bin\..." instead of
"/usr/bin/...".

Fixes: QTCREATORBUG-29797
Change-Id: I13a9941b87b863f3e1b8420bcab230db1f70a28b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-27 07:46:51 +00:00
Leena Miettinen
022847c852 Doc: Make the instructions for enabling plugins more consistent
- Add the following for documented plugins that are
  disabled by default: \note Enable the <name> plugin to use it
- Add \sa {Enable and disable plugins} for the above plugins and
  describe there how to find the About Plugins dialog on macOS
- For the one occurrence in the QDS Manual, add instructions for
  finding the About Plugins dialog on macOS ("Enable and disable plugins"
  is not included in the QDS Manual
- Mostly remove other kinds of references to enabling plugins

Task-number: QTCREATORBUG-29734
Change-Id: I7b12bd651c1c99e0c6b3ca6f94d3831ebe038438
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-27 06:59:11 +00:00
Robert Löhning
b77b12c97b SquishTests: Restore lines removed from projecttrees
Partially reverts 3970a834bc
and 5bce234986

Change-Id: Iaf05f4c19e16b4e0d817350d4121ad371b8b1661
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-26 19:18:05 +00:00
Artem Sokolovskii
25fa42c3a2 ClangFormat: Remove set standard to cpp11
Standard sets to Auto a few lines further.

Change-Id: Id0bb61cb38fbabd682123baa3860ebdaf5b10846
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 14:09:35 +00:00
Eike Ziller
5bdd3f8e1d Bump version to 12.0.0-rc1
Change-Id: I3b687e44c90dc18bb0d48bb47f230d8de6c8ca66
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-26 13:52:39 +00:00
Alessandro Portale
620ef537aa ScreenRecorder: Add a label to the FPS spinbox
For some reason I never noticed that it was missing.

Fixes: QTCREATORBUG-29809
Change-Id: I1da933d3e220c035ecdeb2f0a5d044d68081b413
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-26 13:44:12 +00:00
Marcus Tillmanns
ee4f6ca1ae Qt: Fix qt abi version saving / restoring
Fixes: QTCREATORBUG-28863
Change-Id: Ifd6024f3d4b1fc108136093299d76227b7b09c71
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 13:39:01 +00:00
David Schulz
cb8d79bb2f LanguageClient: check correct provider for various goto targets
Change-Id: Ie0acf800fad46cc11f7bb5b5134fc5b70beeaddd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 13:36:32 +00:00
Marcus Tillmanns
6b831a3737 Utils: Disable Native Dialogs when not supported
Task-number: QTBUG-118241
Change-Id: I1c7d16f44b5fdcba94dd2a6691a73dd2e549164b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-26 13:24:54 +00:00
Marcus Tillmanns
a71d404d7d ProjectExplorer: Add "poky" os flavor (Boot2Qt)
Task-number: QTCREATORBUG-28863
Change-Id: Iae24a74651362a32c42b96215c8d71abe9bad7e3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 12:50:33 +00:00
Christian Stenger
6ee59b3d3f Valgrind: Fix QColor warning
The code for generating random colors nowadays results in
HSL parameters out of range warnings. Fix the generation of
random color values.

Change-Id: I27dfb1c59ced8f6776e83679532b296b69c089a9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-26 12:37:54 +00:00
Christian Stenger
46c0e63a6f Todo: Do not store current editor
...just use it when needed. Avoids a crash when heading back from
Quick Designer view.

Change-Id: I1dae404d0d1cd41518d46773b35a78b4cdb03947
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-26 12:37:47 +00:00
Eike Ziller
1a398a83b5 Core: Fix dialogParent for separate windows
The dialog parent is supposed to fall back to the main window, if there
is no modal window and the active window is not a popup or a splash
screen.

But testing for "popup or splash screen" does not work with
`testAnyFlags(Popup | SplashScreen)` because these flags are combined
flags - e.g. "Popup" is "Window + something", so when using
testAnyFlags(Popup), that returns true for _any_ Window, regardless of
popup or not.

Amends 60f11cf637

Fixes: QTCREATORBUG-29741
Change-Id: I9e8defc6dd7193f5008decda0eda04dedc62f9df
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-26 12:07:08 +00:00
Marcus Tillmanns
042aa1aa25 LogViewer: Add Filter
Change-Id: I3df36ad7dcbe4a28fb5430397063d70bbc61c80b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-26 10:52:57 +00:00
Leena Miettinen
1b82616f35 Doc: Describe the "Forward to local display" check box
In the run settings for a remote linux device.

Task-number: QTCREATORBUG-29392
Change-Id: Ib46241b62b4b0208f4f1e52419cc1b2a18e40295
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 09:09:34 +00:00
Marcus Tillmanns
9936eeba13 Utils: Handle filePathInfo() like other path tests
filePathInfo() should not result in warning messages if the path is for
a non existing device, just like exists etc.

Fixes: QTCREATORBUG-28439
Change-Id: I47a66bd38a40a86460c4769c1a2156167e467c1b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-26 08:51:07 +00:00
Leena Miettinen
70ed0aaa82 Doc: Describe using variables in "Default build directory" field
In Preferences > Build & Run > Default Build Properties

Fixes: QTCREATORBUG-29779
Change-Id: Ic893058d081655e21a294b0dcc25ccb0184f4564
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-26 07:37:24 +00:00
Leena Miettinen
9d4c31cb74 Doc: Describe using the locator to go to tabs in Preferences dialog
Change-Id: I9644cdc830494c4e02599b72c584eb02aed1f4f8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-25 13:15:05 +00:00
Christian Kandeler
2ad3520e5a CppEditor/LanguageClient: Do not rename in generated files by default
Fixes: QTCREATORBUG-29778
Change-Id: I4e56b6bda4e22c71995ab19ac6469ea88d22ee11
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-25 11:49:01 +00:00
Christian Kandeler
8b2d676ae8 Designer: Ignore layout name changes from property editor
As it turns out, changes to "objectName" and "layoutName" both result in
the objectNameChanged() signal getting emitted. We must handle these the
same way.

Fixes: QTCREATORBUG-29644
Change-Id: I41ecc4867f3df8eedf325eda750b947a57c90c10
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-25 11:40:58 +00:00
Alessandro Portale
ea1a745813 Utils: Restore the prior edit-clear-locationbar icon direction
On left-to-right KDE systems, the clear icon on the right was originally
(up to QtC 11) pointing to the left. In Qt Creator 12 it started
pointing to the right.

Reproducible with KDE Plasma 5.27.

This change restores the prior mapping of "writing direction" to "clear
icon direction". It also restores the fall back to the freedesktop
standard name "clear-icon".

Amends: 67212a31ee

Change-Id: I3d1340195a82422ac310128b9e81982e0d57a6ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-25 11:31:33 +00:00
Leena Miettinen
d72fa04833 Doc: Update QML Language Server preferences docs
- Some labels changed
- "Use QML Language Server advanced features" was added

Task-number: QTCREATORBUG-29392
Change-Id: I2c4f4d43b8f8e9d74186439e31a9d8cf13ec4967
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-25 11:06:41 +00:00
Jarek Kobus
99c749043d SshProcessInterface: Ensure non-zero PID when destructing
Fixes: QTCREATORBUG-29788
Change-Id: Ia906469526ebeaea6421f1f27a74e66d59bcaea3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-25 10:36:13 +00:00
Eike Ziller
0bf69bc499 NavigationWidgets: Fix the side that shortcuts open
The activationsMap logs were a specific view was opened last.

We need to clear outdated information from the navigation widgets'
(left|right) settings (if a view was opened last in the left widget,
that was written to the left widget's settings, but it was not cleared
from the right widget's settings, so if it ever was opened last on the
right side, that information stuck).

When restoring the state of the left|right widgets, we may not overwrite
the previously restored activationsMap.

Fixes: QTCREATORBUG-29770
Change-Id: I14c85c24f279208fb94707514cc4a8cba184e03c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-25 10:30:05 +00:00
Alessandro Portale
3d95bafdbb Axivion: Support building without ssl
Change-Id: I027317410321725e8e295d236243e50e1ea6019d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v12.0.0-beta2
2023-10-25 07:31:09 +00:00
Leena Miettinen
22693e3281 Doc: Add links to documentation to the change log
Task-number: QTCREATORBUG-29392
Change-Id: Ic5233954320447e7ef3152e25f4ddce43936fbc6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-25 07:22:42 +00:00
Thiago Macieira
6eca31c424 Add missing includes for QPointer
qtbase removed some indirect include somewhere.

Change-Id: I477e6dccebda4fbb81f6fffd179115840c67002f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-25 05:47:32 +00:00
Cristian Adam
5e3d14e2e9 CMakePM: Allow CMAKE_SYSROOT to be taken from the CMake preset probe
One could have a toolchainfile that sets the CMAKE_SYSROOT. We need to
be able to read the value later, and not just from the CMake Presets
cmakeCache array.

Task-number: QTCREATORBUG-29643
Change-Id: I63697219195b043813516c8214329ce583dc0676
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-24 09:13:50 +00:00
Riitta-Leena Miettinen
0fe891678a Doc: Use a link to "Find preferences" as value of \preferences
- Add the instructions for finding the Preferences menu to the
  "Find a particular preference" topic and rename it "Find preferences".
- Remove the "Find menu items on macOS" topic

Change-Id: I627e5c20d2c63efb4490d446608b923ac15a6aac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-24 09:00:36 +00:00
Christian Stenger
ddffbe676d Help: Do not allow opening temporary in Help mode
In case we have no documentation for an "F1 help request"
we display some temporary with a small hint. Disallow opening
this inside the Help mode to avoid triggering an open request
which ends up in a system dialog trying to open the temporary
local file.

Fixes: QTCREATORBUG-29371
Change-Id: If61c37eb2576cf6f9dcc70b58527a66b284b30f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-24 08:15:50 +00:00