Commit Graph

88653 Commits

Author SHA1 Message Date
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
db04da3ba7 QmlDesigner: Remove Qt 6.2/6.3/6.4 from extended 3d wizard
Change-Id: Ic79d7ccf4183aafd30953dc65ad1bae4661c8f11
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-09 09:11:52 +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
Ali Kianian
3494f37b18 QmlDesigner: Set the color data by the first commit in Model Editor
The color didn't use to be saved by the first commit. The problem was
that the ColorEditorPopup uses a backendValue, which usually is
provided by the property editor items. Here this backendValue is faked,
to be used by the internal modules.

Fixes: QDS-12018
Change-Id: I77bd0e2992f31f2fa4da7b1d7a5f0667f6923085
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-09 09:00:32 +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
Eike Ziller
dd876dc405 Doc: Adapt to removal of iOS Simulator management
Amends e8d6e4fc34

Change-Id: Ia3cc2388ded5643aaaa129e9d11da4ac28d6d008
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-04-09 08:16:11 +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
Eike Ziller
4e50e1d657 German translation: Consistently use "Ergebnis" instead of "Resultat"
We use it most and it is the simpler word.

Task-number: QTCREATORBUG-29370
Change-Id: I0b672ed990cca9f21ddff3782595847742f902a3
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 08:43:01 +00:00
Eike Ziller
740c3b7107 German translation: Some more "erneut"
Use "erneut" where we want to say "noch einmal", but keep "wieder" where
we want to say "wieder zurück".

Task-number: QTCREATORBUG-29370
Change-Id: I3d406604fbc8b7883e363a7ecf12c650280b6be0
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 08:42:42 +00:00
Eike Ziller
bbcf5fa720 German translation: Consistently use "Einfügemarke"
Task-number: QTCREATORBUG-29370
Change-Id: Ic90e0a21f64e3e4355c743185900463414504168
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-08 08:37:04 +00:00
hjk
2a1d46bbfc Debugger: Move python2 supporting files out of normal bridge directory
They get in the way when working in that area.

Change-Id: Id59c83472a6ce093ca9b31ad9e94ec638b4a1df8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-08 08:25:08 +00:00
Eike Ziller
b96f5b83ea German translation: Consistently use "scrollen"
This was the only place that was different

Task-number: QTCREATORBUG-29370
Change-Id: I91fb2c291b26644b15aa7ea83fead0f76894ebcf
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 08:14:01 +00:00
Eike Ziller
8fa17f4886 German translation: Avoid "editieren"
We use "bearbeiten" at most places.

Task-number: QTCREATORBUG-29370
Change-Id: I09ae816da64c37fd30631f5f6668d16ec0c53f62
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 08:05:31 +00:00
Eike Ziller
352b6b8b77 German translation: Consistently use "Array" for arrays
We used "Feld" in some instances. "Array" is probably more
understandable for programmers (nowadays), and is also used in the MSVC
documentation
(https://learn.microsoft.com/de-de/cpp/cpp/arrays-cpp?view=msvc-170)

Task-number: QTCREATORBUG-29370
Change-Id: I7a9dc424583900283c15b8fb0ab8497bf4f22085
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 08:05:12 +00:00
Leena Miettinen
c25c54d454 Doc: Update info about using Qt Quick modules with plugins
- Some steps are not needed when developing with Qt 6.2 or later.
- Removed obsolete information.

Task-number: QDS-11794
Change-Id: Ifbfc0bacd50557892ac82658379098123f463a2b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-08 08:00:11 +00:00
Eike Ziller
7335b738a9 German translation: Consistently use "Benutzer"
We use "Benutzer" a lot already and it also is "benutzerdefiniert",
"Benutzeroberfläche", and so on.

As an aside, fix some missing dashes and just use "Port".

Task-number: QTCREATORBUG-29370
Change-Id: Ic58913dba601fca9be6594640bae3ddd7f4f40b1
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-08 07:56:43 +00: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
Christian Stenger
5b870f101e SquishTests: Adapt key sequence
The key sequence used by the test can interfere with other shortcuts
or special handling provided by the OS itself (e.g. Ctrl+Alt can be
understood as AltGr on Windows and treated differently).
Current approach modifies the detected key on Win11, so move over to
another key sequence which may likely be usable cross platform for
some time.

Change-Id: I33e981215ef09fc62c4c2913b3a72b43f39f8684
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-08 04:31:36 +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
ae58ce9132 German translation: Use consistent translation for expand (tree)
Task-number: QTCREATORBUG-29370
Change-Id: I937b2b824fb07d49b18e1d3a345294cd71e5ab6a
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-05 14:12:15 +00:00
Eike Ziller
f88ca7be28 Bump version to 13.0.1
Change-Id: I1269daf9f87b95af0814d1b06c93e947a0555675
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-05 10:43:27 +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
Teea Poldsam
da21fa4c33 Doc: Fix a broken link in Optimizing Designs
Fixes: QDS-12415
Change-Id: Ie1e8e3548a0f793adf0a8c82fdcf68018bf3f880
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-04-05 06:15:57 +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
Mats Honkamaa
18b7027cd4 Doc: Add docs for Model Editor
- Add docs for Model Editor view
- Update Repeater3D docs
- Update Loading Placeholder Data docs
- Update Lists and Other Data Models docs

Task-number: QDS-11240
Change-Id: I98ad17ee54b94ebe4ac78db9be5349f88664ce76
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-04-05 05:05:29 +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
Mats Honkamaa
212551567b Doc: Fix missing file extensions for images
Change-Id: I485424b9dc071da2d1afb42b26e6599e3cc78fbc
Reviewed-by: Teea Põldsam <teea.poldsam@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-04 10:58:32 +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