Commit Graph

88653 Commits

Author SHA1 Message Date
Ali Kianian
0964911529 QmlDesigner: Consider property type for the collection properties
Task-number: QDS-10964
Change-Id: I9759b772811fa44baa4f8a548bf04cadbd0807a4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-12 09:30:26 +00:00
Alessandro Portale
f734ba4461 Wizards: Make editable text options with macros/code non-translatable
Options with contain %{Macros} (sometimes with JavaScript code) should
not be translatable, since a translation can easily a prevent a wizard
from successfully working.

This change turns a couple of trText, trDisabledText and trPlaceholder
options into their non-translatable pendants.

Fixes: QTCREATORBUG-29649
Change-Id: Ia46ab7ac35f78d6368868d78e24179197744921d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-12 09:04:01 +00:00
Marcus Tillmanns
2a510011f1 Utils: Send start failed if no ProcessInterface
Change-Id: I38cdce9812bcec3240e3fb4f30a1dd266a5515e9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-12 08:41:19 +00:00
Marcus Tillmanns
b1b83c5c5e Copilot: Fix connection
Change-Id: I8d32e5bdfd90968ac7c578f647ea7ae0325dbc9b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-12 08:41:12 +00:00
Eike Ziller
60f7b13059 Merge remote-tracking branch 'origin/12.0'
Change-Id: Ia3e89b8e691e1ca74b03e5a8139647bedf5f88b3
2023-10-12 10:37:25 +02:00
David Schulz
eda0dbd8dd TextEditor: modernize highlighting search results
Change-Id: I365a09dfd9d371119044da5567a1adb397f3ac93
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-12 07:58:49 +00:00
Marcus Tillmanns
da03156259 Utils: Allow nullptr widgets in layouts
Change-Id: I33ee85bd809a3388872bee4a470e9439010ed8a8
Reviewed-by: hjk <hjk@qt.io>
2023-10-12 06:31:08 +00:00
Samuli Piippo
e5d0bab0ea sdktool: add line break after clangd option
Amend d79c69918f and add line break.

Change-Id: I5082f0e6339cd161fa9c9030ad257e4246ff051f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-12 06:01:20 +00:00
Christian Stenger
c6c0971265 Wizard: Fix kit selection for Qt Quick Application
Fixes: QTCREATORBUG-29698
Change-Id: If0d962352096ebcbf2cdca2b85005add06d85d71
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-12 04:45:27 +00:00
Christian Stenger
344ac9813d CMakePM: Fix crash in rstparser
Change-Id: I5a9e456214581800c977e69da01aab1053cc554f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-12 04:44:47 +00:00
Marco Bubke
cd4cca907b QmlDesigner: Move item library entries to project storage
The subcomponent manager is synchronizing some meta files with the item
library. The project storage is synchronizing types. Synchronizing both
is quite complicated. Moving the the functionality to the project
storage removes that synchronization task.

Task-number: QDS-10266
Change-Id: Icdf14fbe85d5c4891542acae85ebecf0ba77b45d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-11 17:46:23 +00:00
Tim Jenssen
daa4419d7c QmlDesigner: fix typeName for root node
Change-Id: I832c5888228150dcc36fd1002b9d495a23fcc305
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-10-11 16:30:32 +00:00
Christian Kandeler
e508615243 Designer: Remove unused code
Amends bbbc90ee1d.

Change-Id: I963859c6f38621f0b2d6a21b45078c23c89d99e6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-11 15:14:32 +00:00
Leena Miettinen
fbe6c0d977 CompilerExplorer: Fix UI text caps and punctuation
Change-Id: I44fff47e3aef1b2910f22efd05201e81f6995024
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-11 14:53:34 +00:00
Marcus Tillmanns
09d066108e CompilerExplorer: Improve error reporting
Displays network errors as disrupting, instead of just sending
them to the log.

Change-Id: If5a3dbb733f1433dcc2bcd0a52ad12d8ee3b85ef
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-11 14:43:49 +00:00
Mats Honkamaa
26a0199c36 Doc: Add open project instructions to tutorials
Added a small section that descibes how to open the tutorial project.

Task-number: QDS-10127
Change-Id: I1f3de12e1928246ad505391dd24d3f57c21d3be9
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
2023-10-11 12:28:27 +00:00
hjk
6193cb3294 CppEditor: Stop updating things when shutting down
Fixes: QTCREATORBUG-29735
Change-Id: Ic1ee1798e156b5ddf564a721f5a4e8892ae40f63
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-11 12:23:55 +00:00
hjk
efc168fb61 Core: Re-order system settings dialog a bit
Change-Id: I853ac869769dd55d118bf722d3cbfa4416a54972
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-11 12:13:27 +00:00
Leena Miettinen
551dde7fa9 Doc: Describe Documentation Comments preferences
- Add a topic for setting preferences for Doxygen-style docs
- Update screenshot for Text Editor > Completion preferences, where
  the documentation settings used to be

Task-number: QTCREATORBUG-29392
Change-Id: Ifb915e78f3d2a5fb97555dd99bfaa5abf12ef14b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-11 12:05:32 +00:00
Marcus Tillmanns
520cbfa39a DeviceSupport: Make errors translatable
Change-Id: Ieccb48cb5335e8eace4990e52f93ea431c7085de
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-11 11:57:59 +00:00
Marcus Tillmanns
2a84b9f02b Utils: Fix FileAccess if device returns nullptr
A device may return a nullptr if it does not support device access.

Change-Id: I302a2c63406268a2ff876c1bf408c5e26137fd9d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-11 11:57:52 +00:00
hjk
a386b5467a ExtensionSystem: One indirection less for delatedTimer
... at the price of a fatter #include that only ends up in very
few TUs

Change-Id: I983e2082d5b894ee561e7c7ba96731ef6bc58e3a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-11 11:39:00 +00:00
Marcus Tillmanns
c4ea695411 Terminal: Improve color tooltips
Change-Id: Ifc2fdb4369767a65c79a784d1f68caac81497db1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-11 11:24:57 +00:00
Marcus Tillmanns
f73d288609 Terminal: Fix default colors for dark themes
Certain colors, especially red, were pretty hard to read
with the selected default colors on dark themes.

Change-Id: I9f5a2b5f14113499dbb662e1cbcc2b833952f201
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-11 10:58:56 +00:00
Shrief Gabr
5671bd3cd0 QmlDesigner: Export collection as CSV
Task-number: QDS-10618
Change-Id: Iaae95dd920b453e53c22fdf65c2f6d80652d5be3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2023-10-11 10:38:22 +00:00
Alessandro Portale
03cca64eea ProjectExplorer: Add non-translatable text options to text edit fields
LineEdit and TextEdit have a couple of text options which start with
"tr". These strings can be translated via Qt Linguist.

In some cases, these text options contain macros or even JavaScript code
which must not be translated. Translation of these fields can
easily break the wizard.

This change adds the possibility to set non-translatable options for
LineEdits and TextEdits "(tr)Text", "(tr)DisabledText" and
"(tr)Placeholder" in the .json files.

Task-number: QTCREATORBUG-29649
Change-Id: I278a0bec848888cf96bdb49306e319c14a09236c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-11 10:34:28 +00:00
Tasuku Suzuki
ef63c39266 Remove QtQuick 1 support from C++ Class wizard
QtQuick 1 is not part of Qt since Qt 5.6

Change-Id: I9fbbafe8a10a81dc6f4833301ecb124d459d5b3b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-10-11 10:33:25 +00:00
Marcus Tillmanns
4aef48de5e Utils: Add AspectList::createAndAddItem
Adds a function to add a "default" constructed new item to the list.

Change-Id: I3d826b6f3e3705ae431efa5d778219f431509ea8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-11 10:29:14 +00:00
Jarek Kobus
d021f9158b SemanticInfoUpdater: Simplify internal implementation
Change-Id: If9913ccbc66d35608d18286ea3ca12d751ad2115
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-11 09:22:35 +00:00
Jarek Kobus
716c194846 KitManager: Use static methods instead of lambdas
Get rid of kitMatchesAbiOfBinary lambda - use kitMatchesAbiList
directly instead.

Change-Id: Iefd142b97967517b9c5abbd0721470a6ded584ed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-11 09:10:58 +00:00
Jarek Kobus
7ee0687ad5 SemanticInfoUpdater: Make doUpdate() static
Don't operate on the same SemanticInfoUpdaterPrivate
instance from 2 threads.

Use future synchronizer for quick cancel.

Drop using QMutex, as now the threads are separated.

Change-Id: I33bb1485ff03751ec5a1481f5be5c21a48ac3fd4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-11 09:10:36 +00:00
Marcus Tillmanns
5e65223451 Update change log
With some details on the new features and things that were done in the
meantime.

Change-Id: Ib42447d472b271e70645e0660cc1fa01f99ea224
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-11 08:59:42 +00:00
Marcus Tillmanns
692fe58427 Terminal: Add debug button to easily copy theme
Adds a button to copy the current theme to the clipboard
in a format suitable for the Qt Creator Theme files.

Change-Id: Ib302d0544507b3111675a99f0915323d61d684c5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-11 08:44:04 +00:00
Jarek Kobus
973dbaed98 PyDapEngine: Start install process directly from the main thread
There is no need to start it from a separate thread.

Change-Id: I0f560345ed0f02832176a8986a9fbdd97061d3ae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-10-11 08:06:21 +00:00
David Schulz
adfdf3fe27 Help: make unregisterDocumentation async
Just like registerDocumentation this function can take a considerable
amount of time. As this function is also executed on startup it
increases the perceived startup time.

Change-Id: I43f4bb61293948c78eb7394d202757af83210eaa
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-11 07:38:24 +00:00
Jarek Kobus
ab13b7b155 HelpManager: Hide registerDocumentationNow() in cpp
This avoid calling collectionFilePath() concurrently,
which might be potentially problematic.

Change-Id: Ic873b6429b933f2f3359623b1e9cb14409ef3c4b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-11 07:31:08 +00:00
Leena Miettinen
5a715330fc Doc: Describe detaching views
Fixes: QTCREATORBUG-29636
Change-Id: I980d7c523bd40cbc7ad56696987688839baf154d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-11 07:26:23 +00:00
Jarek Kobus
3391d789b9 PluginManager: Don't delete timer in its signal handler
Delete it later instead.
The startDelayedInitialize() is invoked directly by
delayedInitializeTimer's timeout() signal.

Change-Id: I8813679c5cf150cfe91b6bf48559c83b7e3cd893
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-11 07:13:59 +00:00
Christian Stenger
52ebafda4d SquishTests: Fix handling of arguments proposal
On slower machines or high load the proposal can take a split of
a second to appear. Wait shortly for the proposal to appear.
Amends 1d449ad7d6.

Change-Id: I705ce3819e13116386304994da60ab6660ccfbd8
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-11 06:57:35 +00:00
Christian Stenger
511c706153 SquishTests: Fix handling of clang based proposals
Change-Id: I6e66537ba2a562c835fef4363bdd422330288506
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-11 06:57:28 +00:00
Christian Stenger
b63c0670f8 SquishTests: Fix finding help contents
Fixes suite_HELP.

Change-Id: I57c0b82a758d3c91f29c4c48a8c33672f71afde2
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-11 06:57:18 +00:00
Marco Bubke
100ea34060 Sqlite: Make SmallString::number locale independent
std::to_string is locale dependent. std::to_chars it not. Because some
of our supported compiler(libC++) don't support std::to_chars for float
we use the QString.

Change-Id: I9a8f5d1d9b769faca0a7ac2d0798b91ee6b814d2
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-11 06:54:01 +00:00
Cristian Adam
c929b71acd CMakePM: Add cache variables to code completion
Change-Id: I5ac4fcf3ca7755ab52ffecafd83922e4e380363e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-10 18:29:06 +00:00
Cristian Adam
524634f124 CMakePM: Add support for "$ENV{" code completion and help
CMake has a few environment variables that are documented and this
commit adds support for them.

Change-Id: Iaa31bdc97b343581fcf519d19e66bc6ce8ace150
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-10 18:08:13 +00:00
Henning Gruendl
ea44631300 QmlDesigner: Adapt spacing to align with the rest
Change-Id: I31e57f144c2aed32b50398790458dc8a6db038ed
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-10-10 15:14:11 +00:00
Henning Gruendl
c54c62e5bd QmlDesigner: Make content library responsive
Task-number: QDS-10769
Change-Id: I5f2b74b11535583c0e7d4ee8408b75d490e88fc2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-10 15:14:01 +00:00
Henning Gruendl
7ffa49f217 QmlDesigner: Make material browser responsive
Change-Id: Ic6b2b9583dc2190974de7c74f8b39e22aa59226d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-10 15:13:51 +00:00
Eike Ziller
311fe1bf24 Beautifier: Fix saving of settings
Applying didn't actually apply the new values.

Fixes: QTCREATORBUG-29586
Change-Id: If9416cc18fffd269f6ca3d27523aa138e6f91d7a
Reviewed-by: hjk <hjk@qt.io>
2023-10-10 14:38:21 +00:00
Eike Ziller
839f737946 build.py: Apply additional config to all builds
Not only Qt Creator but also cdbextension & wininterrupt.
Otherwise there is no way to pass additional configuration to these.

Change-Id: I2bd4894f212df9795e1d66577bb25a26b29224a4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-10 14:38:07 +00:00
Eike Ziller
b14e7d0cb7 Fix the name of Win/ARM/64 wininterrupt executable
Just differentiating between 32 and 64 bits isn't enough anymore. Do the
same as for the cdbextension.

Change-Id: Ic5acc256641b5b63568d1ef4df825aea0724d756
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-10 14:37:53 +00:00