Commit Graph

62421 Commits

Author SHA1 Message Date
Jarek Kobus
9fde8511e2 QtcProcess: Be idle when incoming data is empty
Don't forward and flush empty data

Change-Id: Idb153695d7eb62905c000b70efdfb0c68f0df9ad
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-24 09:41:10 +00:00
Christian Kandeler
44aea533f8 ProjectExplorer: Prevent spurious soft asserts in target panel
When a kit is being removed, various signals are being emitted in
unspecified order, so there is a transient state where the target model
has to expect the kit not being present.

Fixes: QTCREATORBUG-27742
Change-Id: I2df5db780a7fcf614397e525451f3f8bcbae8b84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-24 09:31:26 +00:00
Piotr Mućko
cf147aa4b6 McuSupport: Organize namespaces, separate legacy constants
qtc9 will use new implementation for qtForMCUs 2.3 and newer.
Legacy implementation will be used for older versions.

Change-Id: Ibb2919f25d03d6445b8328e20316d4f88203a463
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-24 08:32:14 +00:00
Thomas Hartmann
34491bdfc3 QmlDesigner: Only remove node with position
Extending the test case.

Change-Id: I37255de763262e069c2f9d30b1ce584a0347fbcf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-24 08:32:14 +00:00
Christian Stenger
818451fa9e Debugger: Fix compile with Qt5
Amends f4ea9e09ec.

Change-Id: I642c99ffe9a932c6c74b771eab5d2122d01b1ee3
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-24 05:39:57 +00:00
David Schulz
c3cb262154 Editor: Fix dangling completion widgets
Set the correct assist reason when rerequesting a code assist to be able
to detect perfect matches. Also destroy the code assist context when the
processor is not running and has not returned a proposal after perform.

Change-Id: Ieb04203269076655ac3d7ffc54ea8a1d055194a4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-24 04:15:57 +00:00
Christian Kandeler
67a08683d1 ClangCodeModel: Move a test over from unittest
Change-Id: Iac295216fff274fbe4a109477b1a4c2bd2c98d5d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-23 13:54:14 +00:00
Miikka Heikkinen
93cd068d3e QmlDesigner: Create material library at import change
There are still rewriter issues with Qt5, where component library
templates for models contain materials, so create material library
when quick3d import is added to ensure we never need to create
it when models are added.

Change-Id: I7006a39228d316dbfd84f49d19c025bb42b6765c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-06-23 13:09:15 +00:00
Miikka Heikkinen
7aaaccb281 QmlDesigner: Remove duplicate assert
This assert was redundant, leading to duplicate warnings if triggered.

Change-Id: I59b6a7c17345a2ccba0d51ef50a303eec2026422
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-06-23 12:09:30 +00:00
hjk
6250cf20a1 McuSupport: Delay creation of SettingsHandler
There should be no significant activity in a plugin before
the initialization phase.

Change-Id: Iee2bcff4644ac07c3867fa59ce6613e128bd0390
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-23 11:59:12 +00:00
The Qt Project
380c247945 Merge "Merge remote-tracking branch 'origin/8.0'" 2022-06-23 10:41:37 +00:00
Marco Bubke
d87d493de2 Sqlite: Only declare the defines for the sqlite files
Change-Id: Ic5a7be63c86cf3f369309fc4d21cf6f5ceefb098
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-06-23 10:33:20 +00:00
Marco Bubke
f7fee5e023 Sqlite: Refactor static build
Don't declare all defines of the static build anymore but only the needed
structs.

Change-Id: I84567d302edbc839852b8a9e85f104c5f915e5e1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-06-23 10:33:14 +00:00
Marco Bubke
9d99e900b4 Fix warnings
Change-Id: I49dc38853df77bcc4d72c64132700c6059fbd5d7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-06-23 10:33:09 +00:00
Christian Kandeler
c1e4c4fde8 QbsProjectManager: Fix assertion when writing to non-running process
Amends b21ed19903.

Change-Id: Ib4e8460d2e000faad49e08b39432a1c5ce6a017c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-23 10:19:31 +00:00
Miikka Heikkinen
b3be9d9802 QmlDesigner: Tweak 3D asset import dialog layout
On some font scalings, spinboxes were too tight, especially when there
was just one row of options showing, so increased the row height
and tweaked layout margins a bit.

Fixes: QDS-7186
Change-Id: I0650ab976d96f27fc9cf606c4faa6fa2d7c5e8f4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-23 09:47:19 +00:00
Eike Ziller
69cbcb4cd5 Merge remote-tracking branch 'origin/8.0'
Change-Id: I3f218b52bf6904daca3779fb677e51f6f51f2f9f
2022-06-23 11:17:33 +02:00
Eike Ziller
1b89bcbf5e Fix application of value to StringAspect/LineEditDisplay
It was not applying the value when changing the text via a completer.
That lead to confusing result where values were cut off (and also saved
in the settings as such) at seemingly arbitrary cases.
Ensure that the text from the line edit ends up in the aspect by also
applying it on editingFinished().

One example where that exposed, was the executable aspect in the
RemoteLinuxCustomRunConfiguration.

Change-Id: I65c434fd675eeead76a73f680c126fd204d7c996
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-06-23 08:45:24 +00:00
BogDan Vatra
0ce0ad6cf9 Add android-build/libs/<ABI> to solibSearchPath
All android libs that can be loaded are placed in android-build/libs/
<abi>/.
These libs are not stripped anymore, so let's add also this folder to
solibSearchPath.

Change-Id: I34de8bf7ee68725903fd7250a39b407c6ae57cac
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2022-06-23 08:44:58 +00:00
BogDan Vatra
aaf2318a19 Fix Android debugging
- gatherFilesToPull depends on AndroidManager::setDeviceAbis
- use the same path for app_process. gatherFilesToPull pulls app_process
to AndroidManager::buildDirectory(target) which might be different than
activeRunConfig->buildTargetInfo().workingDirectory.

Change-Id: Id47c4380fed5a8b3ad922359e5f9f25e529bacff
Reviewed-by: hjk <hjk@qt.io>
2022-06-23 08:25:43 +00:00
BogDan Vatra
146f59e808 Set solibSearchPath to LLDB
Change-Id: Iedfc3850b568dc336eb3df309b2b36ab25d1aa20
Reviewed-by: hjk <hjk@qt.io>
2022-06-23 08:25:30 +00:00
Jarek Kobus
1e8139ecec CdbEngine: Don't call blocking waitForStarted()
Connect to started() signal instead and continue
setup in its handler. Handle failed to start case
inside done() signal handler.

Change-Id: I23fd222a6c73147ee439381cac79f29cffad560c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-23 07:59:04 +00:00
Christian Kandeler
fd47b37298 ProjectExplorer: Do not remove "-Xclang" from command line
... when retrieving built-in header paths.

Fixes: QTCREATORBUG-22136
Change-Id: I2e403392b14b4cdea89fc33eb503fff303618d71
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-06-23 07:52:06 +00:00
Thomas Hartmann
a0d474f2de QmlDesigner: Create transitions with proper versions
The versions were hard coded which leads to issues.

Task-number: QDS-6760
Change-Id: I94c3599348b996bb700da636cd63e74ea4c02be6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-22 16:32:07 +00:00
Thomas Hartmann
5fa46d6659 QmlDesigner: Add createModelNode without explicit versions
This makes it easier to create properly versioned ModelNodes.

Change-Id: I2a81021daa5e57af6740e447826124f1554a2c78
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-22 15:19:41 +00:00
Thomas Hartmann
b63675db6e QmlDesigner: Show metainfo when node is created in debugview
Change-Id: Id377b3e29f0a953a206dc3aa08008bb87f12bf0a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-22 15:13:55 +00:00
Mahmoud Badri
cc1bf95dc2 QmlDesigner: Ensure material lib node exists on project launch
In this commit material library node is created on model attach.
A timer keeps monitoring until it is suitable to create the node.

This will properly move materials into material library for
projects created with previous QDS versions.

Also removed unnecessary handling on new material dragging, as
rewriter now works properly with material library creation.

Fixes: QDS-7178
Change-Id: Idf6f41906e02bc064961d8de9841ba1644bd3552
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-22 14:16:23 +00:00
Thomas Hartmann
9caa28754c QmlDesigner: Use single transaction to move items into a layout
Change-Id: Ic8eb3907d06843e7ad0d7b0117154b0b7a987808
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-06-22 14:12:57 +00:00
Thomas Hartmann
092a1fc6a3 QmlDesigner: Support reparenting to new nodes in transactions
When we reparent to a new node that was created
during the same transaction, then this node has
no position. In this case we have to delete the
reparented nodes and they will be created
as part of the creation of the new node, since they
are children.

Change-Id: Icd1d02f29f529fc0f00809f7ecebf3eabfdc9a5c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-06-22 13:56:38 +00:00
Tapani Mattila
42ab928a27 CorePlugin: Prevent double warnings for overwriting files
Task-number: QDS-6824
Change-Id: I935b2b1076a4e765230a7462c470d7c134063249
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-22 13:40:09 +00:00
Jarek Kobus
e49e0f87cd QtcProcess: Connect to done() signal instead of finished()
Change-Id: Ie9005e2dc225907e46bb46086a663763b58c5152
Reviewed-by: hjk <hjk@qt.io>
2022-06-22 13:00:19 +00:00
Miikka Heikkinen
2cb45cbb6b QmlDesigner: Reduce number of preview requests from material editor
Removed preview request call from setValue, as it is called in long
loops during initial project load and added the calls outside those
loops where they already weren't there.

Fixes: QDS-7175
Change-Id: Ia83814a0de6fe801d954373dc8ce0e4920e8a6a6
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-06-22 12:44:28 +00:00
Piotr Mućko
c1a223549b McuSupport: Show toolchain packages in UI
For new implementation toolchain  packages must be added
to rest of traget's packages to be visible in UI.

Change-Id: I6804a114e05caac1d864ceffb378f3f61481c433
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-22 12:34:27 +00:00
Jarek Kobus
37a820f67a LldbEngine: Don't call blocking waitForStarted()
Connect to started() signal instead and continue
setup in its handler. Handle failed to start case
inside done() signal handler.

Change-Id: I2c2eb14bf2948c23bae1e35a7581f52d25ab1dd4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-22 12:17:42 +00:00
hjk
8066ce8a6f Remove a the necessity of a few weak vtables
For background, see QTBUG-45582.

Change-Id: I6c4758ce62149437c26971056b465d5dbd2b13b0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-22 11:41:36 +00:00
Piotr Mućko
bc2aee1af5 McuSupport: Test Qt MCUs package legacy creation
Change-Id: I8e724e11f8342ef02a8ee7246fbf35e65e0166a1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-22 10:57:49 +00:00
Jarek Kobus
4686db5590 NodeInstanceView: Fix potential leak of process instances
Don't leak the process when d'tor of NodeInstanceView was called
after successful start of the process and before process finished.

Change-Id: Ib1e0192ebfa20b6e5e43c9247a18e9092c64b2d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-06-22 10:44:59 +00:00
Jarek Kobus
bbbb1fd0a5 NodeInstanceView: Connect to done() signal instead of finished()
Don't block the caller thread when starting the process.
Handle failed to start case inside done() handler.

Change-Id: I57e2fd1e069c3c6285603cbe30f42bad9d80cecd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-06-22 10:44:49 +00:00
Jarek Kobus
fdf81b8768 QmlEngine: Connect to done() signal instead of finished()
Change-Id: Iffccd6425ff5bf3b47064b6883ecab7474a987f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-06-22 10:42:29 +00:00
Jarek Kobus
418ce762df PdbEngine: Don't call blocking waitForStarted()
Connect to started() signal instead and continue
setup in its handler. Handle failed to start case
inside done() signal handler.

Change-Id: I9878490e8d30cf189c63800db658afae50141ce0
Reviewed-by: hjk <hjk@qt.io>
2022-06-22 10:20:28 +00:00
Piotr Mućko
73a0929bba McuSupport: Create board sdk packages
Adapt legacy implementation and pass appropriate data
to new implementation in McuTargetFactory::createPackage.

Change-Id: I13e0896e219cea2629e15de2a6885df457249790
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-06-22 09:59:47 +00:00
Eike Ziller
5c5b3cac94 Beautifier: Build with Qt 5
Amends 283673a5d9

Change-Id: I3ce759193a29d1c0dbc7d6ed7762503b3700b229
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-22 09:48:43 +00:00
Miikka Heikkinen
62f34622df QmlDesigner: Improve puppet reset handling in material browser
Ensure just one reset call for cases where multiple materials are added
at once, and detect reset completion from root instance completion
notification instead of reset trigger notification, as it comes later
and catches all puppet reset cases.

Fixes: QDS-7119
Change-Id: I99baa718bd1c85b4581f07ce75193213110e8e96
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-06-22 08:49:21 +00:00
Miikka Heikkinen
604342c3af QmlDesigner: Add some delays to material browser refreshing
Import change causes puppet to reset, so bit of delay is needed there
before triggering material browser refresh.
Also added similar delay to refresh done at model attach as it seems
puppet reset can sometimes be triggered after attach as well.

Fixes: QDS-7172
Change-Id: I47f7af54e55af074fb2b9e8cdb9e78fb051a16cc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-06-22 08:48:54 +00:00
hjk
73e072c7bb Git: Modernize executable search
Change-Id: I3bc1293aab74fcff5574d9a339a52776c891b6cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-06-22 08:37:45 +00:00
Cristian Adam
f4ea9e09ec cdb: Use separate qtcreatorcdbext suffix for arm architecture
This would allow arm64 to coexist with amd64 on the same installation.

Change-Id: I578aab3d363bf93c2f61d4a7c93576ce19fba4b6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-22 08:28:51 +00:00
hjk
cb0ff08518 Designer: Inline formclasswizardpage.ui
No change of translation context yet, just removing a form with
a single widget (and setting of object names etc).

Change-Id: I00a23b63caeff18e1199e6232d1afe6d89696bb7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-06-22 07:22:54 +00:00
Jarek Kobus
253ef8f606 StdIOClientInterface: Connect to done() signal
Instead of connecting to finished() signal.
This should also handle a failed to start case.

Change-Id: I000625adcceff94cf374cb2bfa9a994650cc261a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-22 06:51:21 +00:00
hjk
fb36cb99f9 TextEditor: Inline behaviorsettingspage.ui
Less code, indirections and allocations.

Change-Id: I41011f90255a035eabe8f755fed6213f8f773a7e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-06-22 06:33:30 +00:00
hjk
9341733b37 Utils: Document escaping rules for % and / in FilePath
Change-Id: Ief9e739e167f724b1626c3478ac4d6f94fc3bac0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-06-22 06:33:09 +00:00