Commit Graph

77129 Commits

Author SHA1 Message Date
Thomas Hartmann
a86cb74526 QmlDesigner: QtObject is in QML now
If a type cannot be created we created a QtObject instead.
Since we create Item for items this crash was rare.

Task-number: QDS-8460
Change-Id: Ifd80f6670bec5328ddd122e0f2f2c133c487b3bd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-12-02 16:35:18 +00:00
Cristian Adam
9deef74d9e CMakePM: Allow presets inherits for deeper hierarchies
Fixes: QTCREATORBUG-28498
Change-Id: Idea5cdec6ad6acfba289dd77632770b7dfbf64f2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-12-02 16:23:46 +00:00
Leena Miettinen
6eed65e92a Doc: Update table of supported Qt for MCUs SDKs
Fixes: QTCREATORBUG-28543
Change-Id: I9bc73d24d4077f2b7ec0fbe8e7ab0299b81833a9
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-12-02 16:17:14 +00:00
Leena Miettinen
cc190110f5 Doc: Add Linux as a supported platform for MCUs
Fixes: QTCREATORBUG-28551
Change-Id: I179e84bef57370f6c7616236aff33a969bc3bb17
Reviewed-by: Timo Aarnipuro <timo.aarnipuro@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-12-02 16:17:12 +00:00
Alessandro Portale
5649fc30ca main: Prevent GTK3 platform theme plugin from enforcing a dark palette
Fixes: QTCREATORBUG-28497
Change-Id: Ib49b57aafe044d711940db3ea0e0778206221111
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-12-02 16:05:33 +00:00
Jarek Kobus
1755f208fb InfoBar: Ensure we don't access nullptr
Change-Id: I4bd7019ea424c04cc1f1e130d76033175ac3a5bf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-12-02 14:12:57 +00:00
Jarek Kobus
c37ee615a6 ICore: Fix possible crash in raiseWindow()
Don't call else branch with nullptr when window is nullptr.

Amends 79be19a8a0

Change-Id: I4c1ee3783d36374cbc6ad9555328b5737f2ce348
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-12-02 14:00:07 +00:00
Samuel Ghinet
728605b2ae Refactor: Extract the code for adding a texture
Task-number: QDS-8344
Change-Id: I433e2beb3ffd6346ea37e093705943b0701efd3d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-12-02 12:34:57 +00:00
David Schulz
6fbeb55817 Debugger: fix dumper test for QVariant
Change-Id: I5512a568b5b7c4d9793df9cd233d3a8c4af4a982
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-02 11:54:36 +00:00
Knud Dollereder
16ec1ab67f QmlDesigner: Fix zoom speed for windows
Fixes: QDS-7835
Change-Id: I4ba76f9b7bf7be2472a073515891d50dbe7213c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-02 11:48:46 +00:00
Thomas Hartmann
06b40d0aaa QmlDesigner: Bump version in application template
Change-Id: I5ecbe2da5e403f883344f9e0987ab11585140603
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-02 11:41:34 +00:00
hjk
b88611f663 Core: Fix capitalization of external tools dir
Amends 451d02c88d.

Change-Id: I7e00c1f6262510f71d83a2f668b3b0353df6fce2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-12-02 11:26:21 +00:00
Jarek Kobus
10a306b3f4 DocumentModel: Fix possible use of deallocated memory
Setting entry to nullptr inside DocumentModelPrivate::addEntry()
sets it only locally inside this function, so the caller of
addEntry will still hold the originally passed pointer. So, if the
"if (previousEntry)" condition was hold, the caller of addEntry
operates on deleted pointer.

In order to fix it we return the valid pointer instead.

Change-Id: I3e4a5c3532ca942c43ab422a238f0a19ebd41794
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-12-02 11:11:53 +00:00
Samuel Ghinet
e774aa238b Add "Add Texture" and "Add Light Probe" actions to Assets Library
When the user right-clicks on an image asset, "Add Light probe" now
appears in the context menu. When the user right-clicks one or more
image assets, "Add texture" or "Add textures" becomes available.

Task-number: QDS-8344
Change-Id: Ia8d8379be2a0a285b33e4a230e08527c18756b47
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-02 10:45:41 +00:00
Aleksei German
36c96a0972 QmlDesigner: Use Model ConnectionMetaInfo method
Change-Id: I1ac34ed36df45e8fe1f8baa60311b1c337c4ac71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-02 09:38:35 +00:00
Kai Köhne
e53a03a74e Doc: Fix link to Squish
Also mention that Squish supports macOS applications.

Change-Id: I890ff387324e9a4e51ef239242e29c57781f0dbc
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-12-02 08:26:03 +00:00
Miikka Heikkinen
57448021b8 QmlDesigner: Fix content library visibility logic
Also fix enable logic of context menus in content library.

Fixes: QDS-8446
Change-Id: I82f80779f507aa5336ebafac5cffc36365238fc5
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-12-02 08:19:56 +00:00
Christian Stenger
b43f9fd002 McuSupport: Fix tests
Change-Id: I17f4194f2e5be319e73834aa0f10e99821874c9a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Daniele Bortolotti <daniele.bortolotti@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-02 08:01:22 +00:00
hjk
a89dfe41b4 Debugger: Add a test for more recent Debian gdb
Change-Id: I960bf51b42c46ee67a8fc685a5c940747c797944
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-02 06:49:33 +00:00
Cristian Adam
e0a563b236 CMakePM: Migrate build environment settings also to configure step
This allows a project to be properly configured with Qt Creator 9 when
the build environment had user defined changes.

Qt Creator version prior to 9 had one setting for both configure and
build steps.

Fixes: QTCREATORBUG-28372
Change-Id: I0da8065085bd6628ba75923c17b46648eb031801
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-12-01 23:52:10 +00:00
Aleksei German
44cfc4a8cd QmlDesigner: Add nullptr checks in ActionEditor
Encountered an odd nullptr in QmlJS::Value *value.

Change-Id: I9140ee15f01a430477b808aa7b664f5c40889c30
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-12-01 20:30:56 +00:00
Henning Gruendl
d9054d1f10 QmlDesigner: Add qt insight infrastructure
* Add InsightSection for property editor
* Add functions in property editor qml backend, context object and view
* Add InsightTracker in text to model merger
* Add auxiliary data properties

Task-number: QDS-7489
Task-number: QDS-7833
Task-number: QDS-8073
Change-Id: I3fbec3d387f815d71640b512e67829076b600d11
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-01 16:50:44 +00:00
Thomas Hartmann
740a65571f StudioWelcome: Use QQuickWindow on macOS
This fixes flickering on macOS introduced by Qt 6.4.
Unfortuntly keyboard focus does not work on Windows in this case
if the splashscreen flag is set.
Therefore we only use QQuickWindow on macOS.
Simplfiying code and removing unused code.
The variable doNotShowAgain is always true now.
The check in delayedInitialize can be removed,
since we already show a warning during creation.

Task-number: QDS-8113
Change-Id: I8185a58175f4d2eafe92561fbded535d7ae393a2
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-12-01 16:15:18 +00:00
Thomas Hartmann
9e9cfeeeac StudioWelcome: Fix warning
Change-Id: Id6a218998f2b0a767d4bd23c8936f5863c00d7b1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-12-01 16:05:47 +00:00
Thomas Hartmann
17c09c1e92 QmlDesigner: Fix warnings
Change-Id: Ia88bbe9bc05fcd1725833d1627499dac3a32c11d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-12-01 14:47:42 +00:00
Mahmoud Badri
fd4d1f08fa QmlDesigner: Add a tooltip to material browser textures
Change-Id: I5a2dd41602bb03357fdd1b7280242f6ea43ff56f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-12-01 13:44:20 +00:00
Mahmoud Badri
5f7d36d1cb QmlDesigner: Fix material browser's textures search
Change-Id: Ia0750f0f61d821deeb1d0d3630fb770803e604ee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-12-01 09:09:08 +00:00
Marcus Tillmanns
d5b585dad6 Debugger: Fix dumper for std::string from lib++ in GDB
Fixes: QTCREATORBUG-28511
Change-Id: I56ca11c9a5f9b7a885bbaa0223bd2f47ea4abb4b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-12-01 06:55:20 +00:00
Thomas Hartmann
916368ede4 QmlDesigner: initialize unique pointer
This crashes with Qt 5. With Qt 6 this "worked",
which was most likely pure luck.

Change-Id: I652b190ae0d4b00adb4c48e601e7be9512f86d16
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 21:44:25 +00:00
Thomas Hartmann
b9e7fd2415 QmlDesigner: Take puppet version into account
Change-Id: I8bd6f588dcf00e20dbcddde9caee8eef3eafc3b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 20:11:53 +00:00
Mahmoud Badri
072bdb22fc QmlDesigner: Update isEmpty state upon content library load
Change-Id: Ibb26294efac90e177f5e4f691609a95f6a181475
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-30 19:12:47 +00:00
Mahmoud Badri
714c3c381e QmlDesigner: Show content library under enterprise license only
Fixes: QDS-8453
Change-Id: I84668ee370e494ff303734faefb0b5e0895ca061
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 19:11:52 +00:00
Thomas Hartmann
7e03b29bc7 QmlDesigner: Add new menu for export actions
Task-number: QDS-8092
Change-Id: If83ea84fded27485c50865e49d8d184fecc6d454
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-30 17:16:12 +00:00
Aleksei German
bb5c6a846d QmlDesigner: Add validId verification
Task-number: QDS-8449
Change-Id: Iaa965fa1a54d93ff0f76680d1673d883fa3dfa0f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 16:27:43 +00:00
Mats Honkamaa
af8075cbb2 Doc: Fix missing lights images
Add missing 3D lights icons.

Task-number: QDS-8433
Change-Id: Iaebe003efcaecbaf394dc4383f4de722d30142fe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-30 16:18:59 +00:00
hjk
82ecd3910b QmlProjectManager: Use a PathChooser for the fallback qmlscene
Allows to browse for binaries on the target instead of having to
specify a proper fully qualified remote path manually.

Change-Id: Iaf9dc5c4fe921a7188ef2178f10403fa01e69d03
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 50f6afe4d0)
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 14:47:56 +00:00
Amr Essam
c7f9d9af24 QmlDesigner: adjust caller code to new binary name QQEffectMaker -> qqem
Task-number: QDS-8450
Change-Id: I8a82a31158e3c44903126b12d430b8563dde7f26
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-30 13:34:13 +00:00
David Schulz
69fef7480e LanguageClient: prevent nullptr access
Change-Id: Id0dc46d3775d5e765d1e7d2c2eac0d7f807f34ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 13:11:09 +00:00
Aleksei German
0c31cc475b QmlDesigner: Categorize slot actions
Task-number: QDS-8447
Change-Id: Ibc96bfcb7c87f0888e15f2533cab2567098a3760
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 10:45:21 +00:00
Amr Essam
aa69465ecf QmlDesigner: drag effects from assets view to navigator
Effects can be dragged from the assets panel to the navigator,
also effects can be dragged between components in the navigator.
There were lots of transformations because the way navigator works in not suitable with effects

Task-number: QDS-8235
Change-Id: I378a70b5586fa95d0890bda4fbe53191c7ab0bc4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-30 09:05:43 +00:00
David Schulz
7373193584 Debugger: map reported breakpoint file locations
Fixes: QTCREATORBUG-28521
Change-Id: I8229483df7fb0c51750e19d4558e81f5320e7f33
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 07:45:33 +00:00
Jarek Kobus
f3ce23230e TextEditor: Init markWidth variable
Otherwise some overrides of extraAreaWidth() may leave passed
value unmodified and we may end up with uninitialized value.

Change-Id: Ica89019fc2cff93f0bc7d784624730ec9d8c0224
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-30 07:22:09 +00:00
Jarek Kobus
05189a676f Squish: Init token variable
Otherwise it may be uninitialized when while loop finishes
immediately.

Change-Id: I7638025813d4353abc864e106ef0e09c7c218409
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 07:15:01 +00:00
Tim Jenssen
5d9cb68a36 qml2puppet: fix include when building against linux Qt5
Change-Id: I17401443a1e099b9c63d0de2e6f8bf5c3e9cfcb3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-29 20:17:32 +00:00
Jarek Kobus
72a01bd00e ClangTools: FilterDialog: Capture by copy
A reference to buttonBox gets vahished after c'tor of FilterDialog
finished. Capture by copy the buttonBox.

Amends b72ae58629

Fixes: QTCREATORBUG-28524
Change-Id: Id6eaf826243e307f26a91c4bd6386cf836bce111
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-11-29 19:41:09 +00:00
Tim Jenssen
036948c628 qml2puppet: remove unnecessary flexibility
standalone builds are doing:
cmake --install . --prefix <something_with_bin>

Change-Id: I61c0743c00f96c0505e2fa383e4bee41c2b6ceb9
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-29 17:04:00 +00:00
Mahmoud Badri
b5befc6945 QmlDesigner: Fix content library sections not collapsing after search
Also enabled the auto expand for textures and environments tabs

Fixes: QDS-8443
Change-Id: I190f919ccb2cff90c7cd151e65b77ebd52f0a87c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-29 14:55:31 +00:00
Thomas Hartmann
be97b35959 QmlDesigner: Add tool tips for animations
Task-number: QDS-8312
Change-Id: Ic580dd43c4fdb0d7f33c937c1bbe1ecfb963250a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-29 13:51:50 +00:00
Thomas Hartmann
19f1c6c32f QmlDesigner: Add tool tips for positioners
Task-number: QDS-8311
Change-Id: Ie981d3a7806381237844707f6018278d5bb05354
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-29 13:51:17 +00:00
Tim Jenssen
cdbdde7d37 QmlDesigner: crash fix on shutdown
Change-Id: I6e20a99189c81fcb8ec0b0474a219ac1056731bc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-29 12:51:27 +00:00