Commit Graph

72811 Commits

Author SHA1 Message Date
Marco Bubke
7db0c8f742 QmlDesigner: Disable 3D views for lite designer
Task-number: QDS-12102
Change-Id: I4d339220127ce4cb1f5253c430ad8df372f1f0d6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-09 13:41:21 +00:00
Marco Bubke
4e5a0cd02b QmlDesigner: Improve performance of prototype walk
The optimizer took quite often the slow join first. So now we have one
method to walk the prototype chain and then use the type ids in simpler
statements to get the end result.

Task-number: QTCREATORBUG-30599
Change-Id: I3e9d4ec85ba75801769eb8760fda6e0400300899
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 13:41:14 +00:00
Marco Bubke
91f3c4c5e0 QmlDesigner: Improve performance for alias property declarations
To avoid a full table scan we have to separate the where clause into
three statements and union them. So now it using an index for
everything.

Task-number: QTCREATORBUG-30599
Change-Id: Icdc368cda4c59e64c626da3c3dc093ee3ae95db4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 13:41:06 +00:00
Marco Bubke
b341e372bc QmlDesigner: Improve prototypes statement
Task-number: QTCREATORBUG-30599
Change-Id: I025e654b39a3182c324b540ab3dc8aa24d32f589
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-09 13:40:58 +00:00
Marco Bubke
a1add0e137 QmlDesigner: Simplify resolving prototypes
Th optimizer of Sqlite can not see that both forms are the same. The new
form is creating an more performant version.

Change-Id: Ifbca0627c20a873aa1cee0851d876c919bef4f05
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 13:40:50 +00:00
Marco Bubke
b733be3b06 QmlDesigner: Add indices to improve performance
Otherwise we get a full table scan which is really slow.

Task-number: QTCREATORBUG-30599
Change-Id: Icbfb30e81420da585581d6250acbc4d88580c2f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 13:40:41 +00:00
Marco Bubke
6751fc82ef Sqlite: Prevent name collisions for indices
There can be unique and not unique indices with the same columns. So we
add that attribute to the name to distinguish between the indices.

Change-Id: I96eac1f0e95c135d625f09fd5399b16f2293d645
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 13:40:29 +00:00
Christian Kandeler
cde3cfea4d ClangTools: Fix clang-tidy doc URL for versions >= 18
See https://github.com/llvm/llvm-project/commit/
4532617ae420056bf32f6403dde07fb99d276a49.

Fixes: QTCREATORBUG-30658
Change-Id: I4e171c52959d576ed752691d601ceb99691b207d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-04-09 13:16:49 +00:00
Cristian Adam
ac97ab1abf CMakePM: Add build artifacts to the PATH env variable
Projects that have dll artifacts need to have the build paths added to
PATH so that the dependent executables would start.

Previously the code checked only if the dlls were present on disk, now
it also checks if the dlls are part of the project's build artifacts.

Fixes: QTCREATORBUG-30644
Change-Id: I924753ffaf0a9720acb70585ccd589abab1b9cc1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-09 12:59:15 +00:00
Mahmoud Badri
5a13304d72 QmlDesigner: Save a project material to content library
Fixes: QDS-12392
Change-Id: Ic84197bb1bcede6d3b06d1cff09f00617cc2a958
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-09 12:31:44 +00:00
David Schulz
411100b037 TextEditor: remove text editor action handler
Give each editor a context and register editor actions individually for
that context. This removes the need to tell the action handler the
current editor. Additionally all actions are now available in editor
widgets outside of the EditorManager.

Change-Id: I0109866b180889762f8bd8aa07874d8d7c55bfa6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-09 10:52:26 +00:00
Alessandro Portale
c459e8d490 CtfVisualizer: Avoid precision loss warning
Change-Id: If0f97ec662350ab309219f6a740a7b3b77639262
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-09 09:12:11 +00:00
Thomas Hartmann
932bdb339b QmlDesigner: Add support for Key enums
Change-Id: I602c44283a4f8978d76117fd5b885ef34d377857
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-09 09:09:21 +00:00
Christian Kandeler
7bb017677d ProjectExplorer: Fix device display name value acceptor
Fixes: QTCREATORBUG-30622
Change-Id: Idac04c9823f5e1136102be3a2ad810a6f782c0fd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-09 08:19:28 +00:00
Christian Kandeler
42edb0dd61 CppEditor: Make renameIncludes() also work for moved files
Task-number: QTCREATORBUG-26545
Change-Id: I0bfe203af8f091562cdd91411dbe502fc5a76956
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-04-09 08:18:30 +00:00
Jussi Witick
574ad7a4a2 Fix QSR wizard cmake-project template
Latest changes to QSR tooling added limit checking for certain properties,
so the cmake-project template needs to be updated slightly.

Additionally remove the import versioning.

Task-number: QSR-2398
Change-Id: I55542c9fd74ebd950b6aeb9b64a22dde177c5a4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
2024-04-09 07:59:50 +00:00
Eike Ziller
e8d6e4fc34 iOS: Remove simulator management from settings page
Simulators can be managed via Xcode, which must be installed anyway. Re-
implementing this functionality is not useful, error-prone, and a
maintenance burden. Point users to the corresponding Xcode documentation
instead.

Add a button for updating the list of simulators in the run configuration
settings (which didn't update when simulators were changed in Xcode).

Change-Id: I5a861f21851bb866d45a703f46bb20ed5df960e8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-09 07:36:26 +00:00
Marcus Tillmanns
0be8e6ed01 ProjectExplorer: Always return a build folder
The error handling is done elsewhere.

Change-Id: Ie5fa937faf6447458117d355f1c6044c2f2d88ac
Reviewed-by: hjk <hjk@qt.io>
2024-04-09 06:26:02 +00:00
Marcus Tillmanns
d3279f1e0b FilePath: Improve speed of ::relativePathFrom
Change-Id: Ie7aef2aeb01251edd6825fcd56a73ab65b57cbf5
Reviewed-by: hjk <hjk@qt.io>
2024-04-09 05:32:55 +00:00
Marcus Tillmanns
1c905c6980 Utils: Shortcut File reading
If the device can point us to the local equivalent of a file we can
read that one instead.

Change-Id: I002b5babae13677d5814b639ca40a62f23a8b374
Reviewed-by: hjk <hjk@qt.io>
2024-04-09 05:32:36 +00:00
Christian Stenger
7fd42c3e32 Utils: Fix build with Qt6.4
Amends ba3f0bc841.

Change-Id: Ib405096a51f4c2583e9e3c281bfea8f6eaa44b48
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 27ce963481)
2024-04-09 04:47:19 +00:00
BogDan Vatra
e0f700406c Don't block the main thread for too long
When copying lots of files the ui hangs util all of them are copied.

Change-Id: I5c88ec4ad1d8425b5f65eb26a360af138309f200
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-08 13:27:09 +00:00
Mahmoud Badri
bc5628afca QmlDesigner: Add content library user materials bundle
Fixes: QDS-12389
Change-Id: Icec1b06c57e0eaa4ff444e3143d3cba0803c8dd1
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-08 12:13:16 +00:00
Ahmad Samir
6babc022d5 Adpat to changes in QAbstractFileEngine/Iterator in qtbase
- Replace hasNext()/next() with a `bool advance()` method
- Replace QAFE::FileTime with QFile::FileTime, they are identical
- QAFE methods now return std::unique_ptr, which matches reality as call
  sites stored the pointers in a std::unique_ptr anyway

FileIteratorWrapper:
State::BaseIteratorEnd is only needed when using hasNext()/next(),
hasNext() changes m_status to State::BaseIteratorEnd, then next() checks
that and changes m_status to State::Ended; this isn't needed with
advance() since it's only one method.

Change-Id: I4414f334715237a2fc13ace6f4733d975e2cfaa3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit ba3f0bc841)
2024-04-08 11:34:27 +00:00
Ahmad Samir
2f725cd559 FileIteratorWrapper: simplify the code
Setting m_status to BaseIteratorEnd should only be done in hasNext(),
because the latter is always called first, before any other member
function.

Change-Id: Ie55518a850655730fb760226d58c4fb171a7f2e1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 1ddc71fcda)
2024-04-08 11:34:07 +00:00
Eike Ziller
2626af4cd4 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/libs/utils/fsengine/fileiteratordevicesappender.h

Change-Id: Ia61fa12d14a4f862549509bd980cf9f66905c17f
2024-04-08 11:08:05 +02:00
Christian Stenger
5d4f2f095d Axivion: Do not present empty issue details
It is not obvious how to fill the issue details with
content - give at least a tiny hint.

Change-Id: I3cde0a5711849c0c758c436e3c98255706c28026
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>
2024-04-08 04:32:01 +00:00
Ahmad Samir
1e05c45d8f FileIteratorWrapper: refactor setPath()
Only call setPath() in hasNext(), the latter is called before any other
member method, and setPath() is guarded by a bool to only run a single
time.

Split some code to a helper function, which will be reused when porting
to new QAFEngine API.

Change-Id: Ibda0ede18593a3a20729b31e03e994ad2de126de
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit ad446d5689)
2024-04-05 19:00:19 +00:00
Ahmad Samir
28c67fca0f FileIteratorWrapper: fix typo in "__qtc__devices__"
It should be what FilePath::specialRootName() returns,
"__qtc_devices__". Looks like nothing used the string retured by next()
so this didn't cause issues before.

Change-Id: Ib9c48d8ea032b1ca7d9ec08003f9d51c5a2ae528
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 71e6916b37)
2024-04-05 19:00:07 +00:00
Ahmad Samir
da91498014 FileIteratorWrapper: remove redundant if statement
Change-Id: I5b9a50802adc3d2cfc48748235a7cd6ee01fa5a4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 5760654674)
2024-04-05 18:59:58 +00:00
Ahmad Samir
338510af2b FileIteratorWrapper: simplify constructor
The other two parameters, QDir::Filter and nameFilters string list, can
be retrieved from the baseIterator.

Change-Id: Id33a95f3b490e8f5846e9728fc66da0df5195be9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 2f78fd4358)
2024-04-05 18:58:34 +00:00
Eike Ziller
5b24cb5609 TextEditor: Remove non-exported include from public header
The header from KSyntaxHighlighting is not exported to the dev packages,
so separate plugins using the syntax highlighter fail to compile.

The include is not even used in that file anymore though, so just remove it.

Change-Id: Iff9be4e35c1edb5492707b00a5afae96d85db16a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-04-05 10:41:42 +00:00
Marcus Tillmanns
56f0432c51 ProjectExplorer: Export summary page
In preparation for other plugins to be able to use it.

Change-Id: I36542e11dff5b0cc655ecee2439df6ea7c14858d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-05 06:15:31 +00:00
Alessandro Portale
41eeb5a273 Core: Fix QGroupBox frame drawing for Qt >= 6.6.3, dark themes
Since QStyle::subControlRect() used to return bogus rectangles for
SC_GroupBoxFrame, and therefore, as workaround, ManhattanStyle
calculated the position of the QGroupBox frame itself via code copied
from QFusionStyle.

6.6.3 fixes the SC_GroupBoxFrame issue, but in turn, the old workaround
fails. Therefore, this change uses old calculation when running with
older Qt and the newer one with Qt >= 6.6.3.

Fixes: QTCREATORBUG-30632
Change-Id: Ie9c6c078ba9bd0e7012192e9d887a702e307d294
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-04 13:03:39 +00:00
Eike Ziller
24767dfb0d Examples: Fix which category gets two columns
It was giving the first category _alphabetically_ two columns. Which was
correct a while ago, but since we have a separate category order defined,
it should give the first category in that order two columns instead.

Fixes: QTCREATORBUG-30634
Change-Id: Ie89c84f31617a9f90fe18b66bcea352ae3ea56d5
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-04-04 12:36:07 +00:00
Marcus Tillmanns
8e8a84908b ProjectExplorer: Add Default Issue Reporter
Adds a base issue reporter that checks general comaptibility
between build device and project / build dir location.

Change-Id: I7bfe360f758e44fdad9f471d47f14ffdd5d61853
Reviewed-by: hjk <hjk@qt.io>
2024-04-04 08:33:12 +00:00
Marcus Tillmanns
c03fa4dbad ProjectExplorer: Add Device::canMount
Change-Id: Icde98f845c3fe303d9461a0cbb0946d1ce9c8b00
Reviewed-by: hjk <hjk@qt.io>
2024-04-04 08:32:59 +00:00
Marcus Tillmanns
3067f57905 Utils: Add QTC_CHECK_EXPECTED
Change-Id: Ie25637d6800e1162b713c1db7ef07f87cc2a4041
Reviewed-by: hjk <hjk@qt.io>
2024-04-04 08:32:47 +00:00
Ali Kianian
e6b542079f QmlDesigner: Set the default column type of the model to string
Change-Id: Id4daa8e802bcc7b40e212e7fc0e30b3c4f63ba4e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-04 08:29:52 +00:00
Ali Kianian
22a5e4948b QmlDesigner: Deselect the model by editing a cell or clicking out
Fixes: QDS-11760
Change-Id: I6a63b2f9589c69859beff79ad04502974c5d18af
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-04 08:28:26 +00:00
Marcus Tillmanns
0e30918955 CMake: Add hint about additional error messages
Change-Id: I1eaeacb1fe67d534209ecef5a01fe6d41caddb62
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-04-04 05:37:23 +00:00
Marcus Tillmanns
cb29aeff50 CMake: Don't ignore writable test
Change-Id: I49ba7a14f26eca0575b38a634124be5e53c0134f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-04-04 05:37:18 +00:00
Marcus Tillmanns
24511d755f CMake: Add hint about missing docker mounts
Change-Id: Id046496b1c9907dfdfedb36c6bec1b121428f37a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-04-04 05:37:11 +00:00
Marcus Tillmanns
043abe69a7 Docker: Remove temporary mounts
Temporary mounts are more problem than solution.
We want the user to specifically mount paths himself
instead of trying to guess which ones should be mounted.

Change-Id: I635ac2555e11979a4eb8cd60c1a22b02a377a5ba
Reviewed-by: hjk <hjk@qt.io>
2024-04-03 06:45:10 +00:00
Eike Ziller
309a01337f Merge remote-tracking branch 'origin/13.0'
Change-Id: I12578a55fb61a3a9620c749c0b3bbbae6dcb4493
2024-04-02 14:54:30 +02:00
Shrief Gabr
1376139ec6 EffectComposer: Check if effect name is duplicate before saving
Task-number: QDS-12280
Change-Id: I42532ef8330ae518073a559edf7a41de834d98c9
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-02 11:14:20 +00:00
Marcus Tillmanns
a8b7f6c291 QmlDesignerLite: Add condition target check
Change-Id: I0f1c1136adf99684f5a57a18d21ccd9245de53b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-02 05:40:32 +00:00
Orgad Shaneh
5ea09e424d TextEditor: Fix initial loading of behavior settings
Fixes: QTCREATORBUG-30606
Change-Id: I1b4d8fd47e528d0868969cf883401037c0cfe9ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-02 04:53:11 +00:00
Christian Kandeler
3ca0deef53 CppEditor: Move ClangdSettings into a dedicated set of files
They were originally put alongside the CppCodeModelSettings for
simplicity, but there is no coupling (anymore?) between these two
classes.

Change-Id: Ic24df109b74a5b5c39de073c938c6de12f4aa319
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-28 19:06:08 +00:00
Thomas Hartmann
35524ec21b QmlDesigner: Do not allow import for QtQuick3D.MaterialEditor
Change-Id: I81ad86ff0584e05bd5132077ac3416ab2eae7d62
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-28 13:55:02 +00:00