Commit Graph

76935 Commits

Author SHA1 Message Date
Henning Gruendl
ccbda4655e QmlDesigner: Fix wrong initial render type quality
Task-number: QDS-8334
Change-Id: I3b79093c67fbde94504277a669448c19911ce97b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-25 08:51:40 +00:00
Henning Gruendl
2388caa544 QmlDesigner: Fix wrong state group shown
Fix an issue were the wrong state group is shown when switching modes
e.g. Design > Edit > Design. It is caused by the model being attached
and the indices not forwarded to QML.

Task-number: QDS-8418
Change-Id: Ie9a99182b0230757a043397d9b906ba1bb15bed9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-25 08:51:13 +00:00
Tim Jenssen
02c65495d1 Merge remote-tracking branch 'origin/9.0' into qds/dev
Change-Id: I5e66666644fd16de60a0158e5e884706622ae3ba
2022-11-24 19:01:47 +01:00
Christian Kandeler
ea3e227944 CPlusPlus tools: Fix build
Catch up to recent refactorings.

Change-Id: I14e8fa03a50ea4169ccdd41ed0d147d6ecb8af8b
Reviewed-by: hjk <hjk@qt.io>
2022-11-24 15:42:41 +00:00
Eike Ziller
2ff5f18bff Transform doc.qt.io/qt-creator links to internal qthelp links, for links
that are found locally in the documentation. That opens such links in Qt
Creator, instead of in the web, if possible.

Change-Id: I2270c6947db22f4aeb4968bf5b7245de57521c92
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-11-24 15:10:05 +00:00
Eike Ziller
7a2901d502 JSON wizards: Read additional paths from settings
Opens possibilities like the installers writings some.

Change-Id: Ie8c87731fb6bb9c7129032f64878e42e9bcf4cf0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-11-24 14:03:33 +00:00
Eike Ziller
b6d3333daf Bump version to 9.0.1
Change-Id: Iaa42623df5a1b35833cb1f9e0cfc3187b580e34b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-24 14:03:15 +00:00
Mahmoud Badri
09c4df833b QmlDesigner: Fix small typo in MaterialBrowser
Fixes: QDS-8422
Change-Id: I9e1cfe677875ea8a7f58f1d52e7d1b9a3d4f8447
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-24 13:33:06 +00:00
Miikka Heikkinen
39d0a554b8 QmlDesigner: Fix initial positioning when dragging item to 2D view
Fixes: QDS-8365
Change-Id: I624afcb15d800e5f5597a9e760843148d02d8975
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-24 12:43:40 +00:00
Christian Stenger
27df715479 ClearCase: Fix display of mnemonic
Change-Id: Ic0f8e55ad2a141031d8540c6fdf7b0ed5a9b0aba
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-11-24 12:40:51 +00:00
Eike Ziller
e0b84100c3 change log: adapt doc-snapshot link and add CMake preset QtC doc
Change-Id: I5f7a086d55aefd3db8990c5fcb8a585dedbb5808
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-11-24 12:00:06 +00:00
Miikka Heikkinen
fea463bb4a QmlDesigner: Drag textures from content library to material browser
Fixes: QDS-8337
Change-Id: Iee42341a18e4acaa0d455aef276df36013ebf21e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-24 11:16:59 +00:00
Mahmoud Badri
34b236e7fb QmlDesigner: Disable assigning a texture to a model with no materials
Disable apply texture to selected model option from texture editor's
toolbar when the selected model has no material. Also relevant fixes
to make sure texture assigning happens in the current state.

Fixes: QDS-8395
Change-Id: Iab2e8fce4696c6bd5d50636b4077362ba04cb8a0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-24 10:45:57 +00:00
Thomas Hartmann
5995810d34 FilePath: optimize comparison
* The QTC_ASSERT in pathView() is quite expensive
* Constructing the scheme using scheme() is not required

Change-Id: Ibea33dd6abf67c8bd184d118f23e2598075c362c
Reviewed-by: hjk <hjk@qt.io>
(cherry picked from commit e471417539)
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-24 10:10:42 +00:00
hjk
3d492c47e7 FilePath: Backport some pathView() changes
After the change to a single-string representation, the QString
construction for path() is expensive for the comparison operators
and simple convienience functions.

Change-Id: I643c7115d3ad52f971d1692230b6eab82645b810
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-11-24 10:10:21 +00:00
Thomas Hartmann
07e96c299a QmlDesigner: Allow to disable possible imports
Getting all possible imports can be slow and
is not required in every context.

Change-Id: I75c50e0f6600dfa8fca7dfec26382783b084bdb9
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2022-11-24 10:08:42 +00:00
Leena Miettinen
ccd7365d7e Doc: Fix link to image in QDS Manual
The image format changed from PNG to WEBP.

Change-Id: I0b24fee9687f36ae38d5a0377fb79627cc4ca926
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-24 09:07:43 +00:00
Mahmoud Badri
6943322b42 QmlDesigner: Suppress some unused params warnings
Change-Id: Ib54014fdc6d1256393e60b2d2df17fa3cd4573e4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-24 08:54:46 +00:00
Vikas Pachdha
a3753deebe Fix build error
QList::paths is changed to std::set

Change-Id: Ib996723ab316f956367ed801d0b897a481fbfb4a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-24 08:32:38 +00:00
Thomas Hartmann
3f5259dd00 QmlDesigner: Fix crash
Change-Id: Ic996823ab316f956367ed801d0b8974481fbfb4e
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2022-11-23 17:01:19 +00:00
Thomas Hartmann
d0a07dcacb QmlJS: std::set instead of QList
This reduces the CPU time of Export::visibleInVContext() from 50% to 15%
on Windows, when switching files.

Change-Id: Iff82924c47d1b696c9d3d7ca40f49d9d02bcb3e6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-23 16:28:26 +00:00
Eike Ziller
373200accf Fix double * for long names of changed documents
We used to elide the right part of the name, and needed to take care of
not eliding the * away in that case. Now we elide in the middle, and in
that case the * may not be added to the elided text again.

Change-Id: I646b51d315e141a65df67841e163826e7136c118
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-23 10:17:25 +00:00
Samuel Ghinet
910a8864dc Use QML TreeView in Assets Library
Task-number: QDS-7344
Change-Id: Ia1ea584fc7acabb0d35b745e36fef18799f21ab5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-23 10:00:04 +00:00
Mahmoud Badri
a575cb4f46 QmlDesigner: Implement drag-n-drop a texture to material editor
Fixes: QDS-8339
Change-Id: Iea61c175525fbef25e763454f53e9bcc28847fe2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-23 09:22:13 +00:00
Eike Ziller
b7716087e1 tst_tracing_*: Fix build in certain configurations
There are Linux distributions that (at least for building packages)
separate the development packages for the various Qt modules.

So, to find the include <QtQml/qqml.h> in timelinemodel.h when
building the test, a dependency on QtQml is required.
Pass the dependency down to everyone depending on the tracing lib.

Fixes: QTCREATORBUG-28434
Change-Id: I58a534a9c25f1f6ecfc10a9ce8292b5983cdcbae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-11-23 08:38:02 +00:00
hjk
53526e4d4b FilePath: Backport some pathView() changes
After the change to a single-string representation, the QString
construction for path() is expensive for the comparison operators
and simple convienience functions.

Change-Id: I643c7115d3ad52f971d1692230b6eab82645b810
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-23 08:22:49 +00:00
Tim Jenssen
83fa44afd4 qml2puppet: qt5 puppet fixes
Change-Id: I2fd809c6646944b06b497f0587178e2dcd92c4a1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-22 12:22:16 +00:00
Pranta Dastider
c960d75b33 QmlDesigner: Update Property binding instructions
The property binidng instruction was a little outdated
hence, had some mismatch with the current procedure.
This patch updates it to the correct state removing the
irrelevant text. Also, put the texts in more structured
format for better readability.

Fixes: QDS-8261
Change-Id: I809af7ef6bd33c25f571a81f2c4f1ff294139c25
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-22 11:01:52 +00:00
Miikka Heikkinen
ac1af9a582 Implement texture context menu
Apply to selected model/material, delete, duplicate, and
create new options are available in the menu.

Fixes: QDS-8342
Change-Id: Ib9bdc1738500a87361000bcd3e89403e3b8ccef8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-22 10:44:36 +00:00
Miikka Heikkinen
e3a817ec77 QmlDesigner: Hide or disable material browser and editor if no library
If material library is missing, material browser and editor UI should
be disabled, except for material editor main pane in case of root
material node.

Change-Id: I3d2bd545de0649fb90d3fe1f751d46b7c7054bbf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-22 10:05:55 +00:00
Amr Essam
f70cdf52c4 QmlDesigner: Fix created effect cannot be used
Create effect node needed to be added to a transaction
There are other fixes to the effectmakerplugin

Task-number: QDS-8152
Change-Id: I37eac416e7664ae4a28a0a3362f98080ca29fd17
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-22 09:28:01 +00:00
Marcus Tillmanns
0f8613f61b CPPEditor: Allow clangd from device
Change-Id: Ia9b59b374aaebf0bfb820b5a289c6e3c0599cb10
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-22 09:26:29 +00:00
Mahmoud Badri
6d620429c6 QmlDesigner: Fix Material/Texture Editors toolbars issues
Make sure each toolbar's enum is registered under a different URI.

Change-Id: I7613b4018b62188ba3fba5f651d064ada8173066
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-22 09:24:13 +00:00
Alessandro Portale
dfa5b54647 Utils: Fix StyleHelper::drawArrow workaround for 6.4.0
The workaround that fixed the drawing of arrows after a change between
6.4.0 and 6.4.1 broke the drawing of arrows with Qt 6.4.0.

This change add another enforced detachment of the palette (leading to a
modified cache key) that works with Qt 6.4.0. It still works with 6.4.1.

Amends: 9d32093421

Change-Id: I8917c99488cec4fb17ed148bb3b0f95d4ed7127c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v9.0.0
2022-11-21 15:26:57 +00:00
Mahmoud Badri
a04f1590de QmlDesigner: Update texture preview when source change
Fixes: QDS-8386
Change-Id: Ifaa6effc040398452b022080257bbacbfb14efdf
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-21 15:12:52 +00:00
Mahmoud Badri
4b6b81cd76 QmlDesigner: Fix content library material unimport
Change-Id: I3737682b578cdd991ca761da92cfdcc5506b3629
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-21 14:17:25 +00:00
Mahmoud Badri
88ce27736f QmlDesigner: Add separate + buttons for material browser sections
Fixes: QDS-8343
Change-Id: Id986820c857df241cf25e55416832f189c28bfe0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-21 13:32:45 +00:00
Mahmoud Badri
9e48f63a07 QmlDesigner: Remove one unused variable warning from ItemsLibrary
Change-Id: I1446879250dd99d27d3e84fc7b133e35603472a9
Reviewed-by: hjk <hjk@qt.io>
2022-11-21 12:21:47 +00:00
Eike Ziller
83ddbaad23 More change log for 9.0.0
Change-Id: I6741608b5d474c85cffc82b1d9fe11fa793f0279
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-21 11:17:34 +00:00
Amr Essam
b6c2b08555 QmlDesigner: Change icons to original ones for effects
Task-number: QDS-8353
Change-Id: I9a1fcdb7da7c0fd9d079720d3b3fafde1df384de
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-21 10:58:49 +00:00
Pranta Dastider
ab7b805296 QmlDesigner: Update Qt Installation instruction
This update the Qt installation instructions with a bit
more example. Also removes the outdated part with qmake.

Fixes: QDS-8189
Change-Id: I9cfaeaff30585dc6ef65bb1ddedb48c1e5d13805
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-21 10:30:33 +00:00
Mahmoud Badri
815dd39e47 QmlDesigner: Implement Texture Editor view
Fixes: QDS-8209
Change-Id: Ief0c9f56da79841c745595024dbcd9219072b681
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-21 10:16:33 +00:00
Cristian Adam
61fcdcb4a1 CMakePM: Do not crash with invalid build presets
If a build preset doensn't reference a configurePreset, the preset is
invalid but Qt Creator crashes.

Task-number: QTCREATORBUG-24555
Change-Id: Ibf5dd7f1bb165d8b7f392e6a1aaa043548bb0f7a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-11-19 12:55:40 +00:00
Thomas Hartmann
4a556fef39 QmlProject: Check if .qmlproject file does exist
Task-number: QDS-7434
Change-Id: I3e6717dbab47fd9e5c9fb84c4131ac2f88984cd8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-11-18 17:09:45 +00:00
Alessandro Portale
9d32093421 Utils: Workaround StyleHelper::drawArrow for Qt 6.4.1
A change in Qt 6.4.1 influences the behavior of QPalette::setColor, so
that the arrows appear in a wrong color. An enforeced detachment of the
palette in style option works as a workaround.

Fixes: QTCREATORBUG-28470
Change-Id: I4a44ff59c368105fdf448152d83e96cdedd46495
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-18 16:27:46 +00:00
Eike Ziller
f5efd9acc0 JSON wizards: Don't add paths from environment over and over
It would add the paths from the environment variable again, each time
the searchPaths are requested

Change-Id: I2650ba832e23b5fcd6bfd363389e1eaf3beddb9d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-18 16:08:40 +00:00
Christian Stenger
c18d8773db Debugger: Fix interrupting Qml
Fixes: QTCREATORBUG-28469
Change-Id: I421dd18e0aedbe6628d4817fddf271c1a2bfbeb0
Reviewed-by: hjk <hjk@qt.io>
2022-11-18 15:01:04 +00:00
Christian Stenger
966498f9a4 PerfProfiler: Be more verbose when running perf
If perf cannot be started for whatever reasons it is quite hard to
figure out its reason.
Add a note how perf is started and give some hint on the application
output pane as the message box points the user to it.

Task-number: QTCREATORBUG-28462
Change-Id: I4d386078f6e3719fefc9b3dc7d77fffbdb294030
Reviewed-by: hjk <hjk@qt.io>
2022-11-18 14:20:01 +00:00
Ali Kianian
9880d9a33a QmlDesigner: Less delay in opening context menu of 3D editor
A comment line is prepended to the content of the clipboard data in
order to mark it as a 3D content. So, we might check if the content
of the clipboard is suitable for being pasted in the 3D editor or not.

Task-number: QDS-8347
Change-Id: Id4319c31ffeb3f43fd032500f92a7cb7c21910eb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-18 12:55:35 +00:00
Eike Ziller
9a4a3f6bf9 German translation: C++ editor
Change-Id: I07df59d56ac2c4761c873992b67096997388ed34
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-18 12:31:38 +00:00