Commit Graph

80147 Commits

Author SHA1 Message Date
Mahmoud Badri
cd70e9cecb QmlDesigner: Move connection classes out of Internal
Also clean up DynamicPropertiesProxyModel and DynamicPropertiesModel
classes.

Change-Id: I40a2864c1ffbd555dfea9452cd55bbeb23e9fdfa
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-16 16:49:34 +00:00
Mahmoud Badri
dbe41a6892 QmlDesigner: Add ProperyEditorValue to the QmlDesigner namespace
Also clean up the class since it seems to not have been updated
for a very long time.

Change-Id: I4ba90a37941fe89a7d093c7b2a7ad7a300fe37cb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-16 16:48:53 +00:00
Christian Kandeler
f5aa99f229 ProjectExplorer: Add functionality for mapping source files to binaries
Works out of the box with qbs. cmake and qmake need backend adaptations.

Task-number: QTCREATORBUG-28815
Change-Id: I0238416a23c1574bc2b6121e2ef942a9260d94d9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-16 14:17:52 +00:00
Jarek Kobus
d3d2536022 JsonFieldPage: Remove superfluous reportFinished()
Change-Id: I0f55b89a03fe012d6b2ac5a6430193729620edec
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-16 13:51:15 +00:00
Eike Ziller
a2de016f64 Examples: Optionally parse categories from meta data
Optionally parses example categories from the examples manifests, when
setting the environment variable QTC_USE_EXAMPLE_CATEGORIES (can be done
in Qt Creator's Environment > System > Environment settings).
It doesn't make sense to unconditionally enable that yet, because only
few examples actually have categories so far, so we will need to wait
until some Qt version is suited for enabling this.

If an example set does not provide categories, the "highlighted"
property is used to provide a "Featured" category, as before.

If an example set does provide categories, these are shown instead,
sorted alphabetically, and examples with the "highlighted" property
are put at the front of the category, overriding the otherwise
alphabetical listing inside the categories. Examples without a
category are put into a separate "Other" category at the end.

Task-number: QTCREATORBUG-28546
Change-Id: I7ca312686eae13e16961def1b4b36ffd7050a447
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-16 13:50:06 +00:00
Leena Miettinen
1397cf0aac Doc: Update info about Testing preferences
Task-number: QTCREATORBUG-28721
Change-Id: I649902d2d2d336abd21d01a0b3b0febf13084b04
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-16 13:34:39 +00:00
David Schulz
d5d7b1d192 TextEditor: avoid showing suggestion and completion simultaneously
If the use erxplicitly requested the completion hide the suggestion
otherwise ignore the completion.

Change-Id: I52485e322b0521b0af10ae6945437bf96642ad89
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-16 11:56:11 +00:00
David Schulz
8247d578c7 TextEditor: skip auto completion while suggestion is visible
The use can still explicitly request completions in that case via the
keyboard shortcut.

Change-Id: I4ed47232a24288c540d1357c0f876a1cdfcfec08
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-16 11:56:02 +00:00
David Schulz
7f56ccaa9e TextEditor: avoid painting annotations over suggestions
Blocks with suggestions are longer than without the suggestion. So we
have to calculate the annotation start position based on the reaplcement
and not the actual document layout.

Change-Id: I32ce81134e1146dd28ae11a70356a98c75529236
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-16 11:55:56 +00:00
David Schulz
23513bb714 Copilot: remove unused client instance function
Change-Id: I84c3d674bae1011a7b0bff070c2d3d5d89675147
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-16 11:55:50 +00:00
Thomas Hartmann
c6489749d4 QmlDesigner: Scan imports on startup
This makes the loading of the first project a lot faster.

Task-number: QDS-9442
Change-Id: Ic84aa6df71db158ef5d0450ada79d96f35eb205b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-16 11:40:18 +00:00
Mahmoud Badri
0b5628e502 QmlDesigner: Add a method to open material editor to ProperyEditorValue
Task-number: QDS-9408
Change-Id: I59ca4e9895a3ef3e9f87de9351806df057371b57
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-16 11:10:37 +00:00
Eike Ziller
0d8d4322b4 Merge remote-tracking branch 'origin/10.0'
Change-Id: Ie591b7130b33a042509e56701384f8ff4d9cb7f8
2023-03-16 11:57:01 +01:00
Henning Gruendl
9b4decf9af QmlDesigner: Fix invalid path hang up
Fix issue where an invalid path results in QDir being set to "." which
in some cases results in iterating a huge amount of files ultimately
causing QtDS to stall.

Task-number: QDS-9437
Change-Id: I0f868f1a94341fbd4d18e98de012ecd5d2a6423a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-16 10:52:02 +00:00
Mahmoud Badri
315abe7e9c QmlDesigner: Add support for adding an extra button to EditableListView
Will be used to add a button to open material editor from material rows
in a Quick3DModel properties sheet. But can be utilized for more
future usecases.

Task-number: QDS-9408
Change-Id: I540479cc1a88cdfe287f244efd7cd65c895db467
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-16 10:46:06 +00:00
Mahmoud Badri
0e4e82d7aa QmlDesigner: Allow selecting a material at idx via a custom notif
Will be used for opening material editor from a material row in a
Quick3DModel's properties sheet.

Task-number: QDS-9408
Change-Id: Ia23703c2c1ffb6bd4a17db27b415dbabb2a0c642
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-16 10:22:13 +00:00
Mahmoud Badri
05a1a81092 QmlDesigner: Allow dropping hdr/ktx assets to material editor
Also some tweaks in the same class and fixing few warnings.

Fixes: QDS-9430
Change-Id: Ife19fb5f9ad67292882c339f1aa3255e91461cd1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-16 10:09:07 +00:00
Christian Kandeler
76d2e7a4f3 ProjectExplorer: Add infrastructure for source -> binary mapping
Task-number: QTCREATORBUG-28815
Change-Id: Ib692981e92f5a395dbe400c2cd48042479f12c78
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-16 09:50:48 +00:00
Jarek Kobus
6dc7bfb818 ClangGlobalSymbolFilter: Avoid custom prepareSearch() for aggregate
Delegate prepareSearch() directly to m_lspFilter aggregate
inside ClangGlobalSymbolFilter::prepareSearch().
This helps to keep filters' responsibilites more self-contained.

Disambiguate different overloads of
WorkspaceLocatorFilter::prepareSearch().

Change-Id: I98f25d01ad713a8c209a07bfd0d05b3ddcf16948
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-16 09:26:45 +00:00
Jarek Kobus
4396820145 CppQuickFixes: Add lacking calls to prepareSearch()
Before matchesFor() are called.

Change-Id: I6acc9b39c5fd9c500312fa1863456d4e71e50165
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-16 09:07:48 +00:00
Eike Ziller
c6203c8f26 German translation: TextEditor
Change-Id: I7e4510140add3dd1d15939950b4a573fbf014287
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-16 08:19:35 +00:00
Ali Kianian
5631c81a98 QmlDesigner: Fix warning for the NOTIFY signal of QmlEditorMenu
Change-Id: Id8fe58e5836e9b0bd6ea70fb9bfaf11c8d404dd7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-03-16 08:00:06 +00:00
Eike Ziller
b50ddd2fba German translation: Clean lupdate
cmake --build . --target ts_de_cleaned
as basis for updating the translation

Change-Id: I09680a55593cc5000873b58d25d78c8754f21ff0
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-16 07:38:41 +00:00
Marcus Tillmanns
bd52e53dbf Terminal: Add shell integration
Change-Id: Ic1e226b56f0103e5a6e7764073ab7ab241b67baa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-16 06:08:09 +00:00
hjk
3507229a00 RemoteLinux: Use SshParameter::userAtHost()
... instead of rolling its own.

Change-Id: I99cf1714e871b3af2c825d3b3f131982383a10b7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-03-15 15:07:23 +00:00
Jarek Kobus
958db5a144 TerminalProcess: Fix merge conflict
Amends a43c20969c

Change-Id: Ib94845dfb3a7a17a86d5a07ad6501a3c3cb905b2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 14:15:45 +00:00
Leena Miettinen
b48826f7bf Doc: Fix a broken link to Editing MIME Types
Change-Id: I545ec936b52db08c804f0fe025429dc39ddce978
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-15 14:09:56 +00:00
Jarek Kobus
a43c20969c QtcProcess: Remove TerminalMode::Pty enum value
Make Pty::Data optional. When set, the PtyProcessImpl
implementation is implied.

Change-Id: I7990e9d9016223e6597d876a5d0c4ed177365874
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 13:52:45 +00:00
Leena Miettinen
e117fff387 Add paths to new preferences and actions to the change log
Change-Id: Iaf2237b226148be426e6d28144c42df616e56f42
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-15 13:46:26 +00:00
Marcus Tillmanns
666f3258ba Docker: Fix shell exit handling
Previously if a docker container was removed outside of Qt Creator
the shell would not be correctly reset by the dockerdevice and
therefor cause a hang.

Change-Id: I5e84f7c114e525c732f45b701277736d6acc7a11
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-15 13:33:25 +00:00
Marcus Tillmanns
2509c3471b Copilot: Add missing include
Change-Id: I313a394a0ff5bd352b7cb15ed2b7e6e02aefaa61
Reviewed-by: hjk <hjk@qt.io>
2023-03-15 13:24:09 +00:00
hjk
0dc61f55c3 Debugger: Use more FilePath in source file handling
Needed for the double-remote case.

With this we have proper breakpoint markers in the text editor for a remotely
running gdb on a remotely loaded project.

Change-Id: If80e4a4108a4a0bcdd7612a59e2bd695213f5ea5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-15 12:34:58 +00:00
Jarek Kobus
47ed25e95d ModelEditor: Add lacking calls to prepareSearch()
Before matchesFor() are called.

Change-Id: If55dc078c8c2ff79ee01d2873eaf5e22132ddc84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-15 12:16:48 +00:00
hjk
e813dff31c Debugger: Fix several uses of remote paths
... when passing into gdb.

Change-Id: I8de8386fb1d398783dfa00ed883b1e44f0b2594a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-15 11:36:16 +00:00
Marco Bubke
3a1aea1298 Sqlite: Update carray extension
Change-Id: I6fd69c3c8d34bf86a0529c63dede80791a204c88
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:36:00 +00:00
Marco Bubke
157b5039c1 Sqlite: Improve database opening
Change-Id: I9074cda4d9da12a061f094ca72fa156d89ca0f87
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:50 +00:00
Marco Bubke
0e3c125505 Sqlite: Generalize error handling
Instead of having multiple error handling function just have one which
handles all error codes.

Change-Id: I6fc0484a335dcf582fc93159a9fdb0fea440daca
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:43 +00:00
Marco Bubke
471aa774c7 Sqlite: Add extended exceptions for can't open errors
Change-Id: Ib092b5fe721b8b063f8c503cc1a650447e393951
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:37 +00:00
Marco Bubke
48442b991f Sqlite: Add extended exceptions for connection lock errors
Change-Id: If6f6cd6ba67edc8716f3c43b832642244fc1e1c3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:28 +00:00
Marco Bubke
481c82b957 Sqlite: Add extended exceptions for readonly errors
Change-Id: I96a8f1c87ce116e99b7e6333166299b39fb9c27c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:19 +00:00
Marco Bubke
176ecdb1db Sqlite: Add extended exceptions for corruption errors
Change-Id: I705bffc54def12e914caf31cacf870ad2f9cbeea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:11 +00:00
Marco Bubke
4502a02fbb Sqlite: Add extended exceptions for contraint errors
Change-Id: I2e3030de7496703ba1e9fbd1a28ed55061e1b2b5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-15 11:34:01 +00:00
Marco Bubke
37563679cc Sqlite: Add extended exceptions for errors
Change-Id: I297bf7a82625198200b0e4ed260d81358d31c56c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:33:51 +00:00
Marco Bubke
093584a10c Sqlite: Add extended exceptions for busy errors
Change-Id: I812650401f4a5d5a099abc0183d2f7ed4e1d64c6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:33:43 +00:00
Marco Bubke
0a38ae7e78 Sqlite: Add extended exceptions for IO errors
Change-Id: I3862a91e3d9989c44c7c62171324c38b66a67ac0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-15 11:33:31 +00:00
hjk
13baedad82 Qnx: Fix passing nto-executable
Change-Id: I6c1749a74d153a8dbbbef891e8eee230226e452d
Reviewed-by: hjk <hjk@qt.io>
2023-03-15 11:04:56 +00:00
hjk
821dce1e9d Qnx: Drop support for QNX 6.5
Or, rather, assume that slog2info is available and handle a missting
slog2info more or less gracefully.

Change-Id: I739482ff0a3d88ee7ff735adf42809cc2ee3e510
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-15 11:04:43 +00:00
hjk
52a7205965 Qnx: Simplify QnxDeviceTester
Change-Id: I789c5ab4fa4a6f79f89db4159d889f67223b8619
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 11:04:29 +00:00
Cristian Adam
17100d4ca9 CMakePM: add ${pathSepList} from CMakePresets version 5
Task-number: QTCREATORBUG-24555
Change-Id: Ic0bf0d7029267c71352294de428921ff52fe4359
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-15 10:53:45 +00:00
Orgad Shaneh
0842f69888 Terminal: Fix MSVC "loss of data" warning
Change-Id: I856223c4830b5d78290d492b18cc2037e96fcc20
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 10:39:48 +00:00