Commit Graph

87591 Commits

Author SHA1 Message Date
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
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
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
Eike Ziller
c811fe08f8 German translation: ProjectExplorer and related
Android, AutoTest, CMake, Qbs, QtSupport, RemoteLinux,
Terminal, Squish

Change-Id: I74d34a581ff1be54b750698807713dcf85f6cefa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-03 07:28:46 +00: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
Shrief Gabr
a60ae6a32c QmlDesigner: Add "Unsaved Changes" indicator to Save button
Task-number: QDS-12237
Change-Id: Ib210ca06e061e82824ff4398604a569af44c2f6d
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-02 10:12:00 +00:00
Robert Löhning
b887825661 SquishTests: Make sure that *UnderCursor() return a str
Without this, "line in lineUnderCursor(w)" can be False
although "line == lineUnderCursor(w)" is True.

Change-Id: I7fa6be7d237957706bf1ad93d7303c55b81f24ec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v13.0.0
2024-04-02 09:36:34 +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
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
Knud Dollereder
3721620799 QmlProjectManager: New project structure support for CMakeGenerator
- Add writer interface in order to support the current and the new
  project structure in parallel. Using the new one if
  qdsVersion is >= 4.5
- Separated templates for the new generator from the old one
- Add file name validity check
- Generate files in the folder src and cmake if they do not exist yet.
  Only re-generate files in src/autogen.
- Add action to enable or disable the cmake-generator
- Add function that checks if a resource file is within the
  project folder but not part of the project

Change-Id: I3d75dbee1043ed28e6126cf0b2c83994cb70ed45
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-28 13:52:32 +00:00
Shrief Gabr
beb9fc2fde QmlDesigner: Prevent data scramble after sorting
Task-number: QDS-12160
Change-Id: I3a90583a097b3074d9502668e4b3670fa81f34a2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-03-28 12:52:20 +00:00
Artem Sokolovskii
1d28b90037 Dap: Fix typo in python engine
Change-Id: I456b909a31be734acc4c7ec9f0eb2de94bb5b0e2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-28 12:39:05 +00:00
Tim Jenssen
510c15083b QmlDesigner: optimize Model::generateNewId
Change-Id: I3b4949133b16a955678528dd8a139fde5c51edd2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-28 11:19:38 +00:00
hjk
272cfad5b4 Doc: Don't mention qmake in a docker context
While it kind of works in principle it is very slow and therefore
practically not usable for real world projects.

Task-number: QTCREATORBUG-29585
Change-Id: Ia6357904e1ecc3e97adc77b49aa8ab7392f902c8
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-28 10:32:41 +00:00
Burak Hancerli
933958e174 ResourceGenerator: Increase the compression level
Change-Id: Ifa099590e4a0cdd8d07b1865ddc1d64eb7d32af1
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-03-28 09:43:45 +00:00
Thomas Hartmann
fd93290fbd QmlDesigner: Update branch of the components to qds-4.5.
Change-Id: I13e763c8a0941ee9af3f63c657dbccd71fb8f010
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-28 09:31:16 +00:00
Mahmoud Badri
c04eb4444d QmlDesigner: Use ExamplesModelV2
V2 adds minQDSVersion property for model items

Change-Id: I27d36428f73b27b1d52d429e23654d094d6ff86d
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-03-28 09:18:39 +00:00
Thomas Hartmann
ff4e33dc0a QmlDesigner: Enable rendering of DesignerEffects
* Effects are items and we have to use __effect/source and allEffects
  to idenfify them and get the correct bounding rectangle.
* For now we use a custom parser to work around issues when editig the model

Change-Id: I78690498c44f8285d3bb6ce78eafcafb9c26b2f1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-28 08:26:59 +00:00
Marco Bubke
385cf4d89c QmlDesigner: Fix taskqueue
The joinable thread was under the locked mutex. So the sleep notifier
could not arrive.

Change-Id: I548c89904b09f8dcc02cb7ae0486880f519915d2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-27 17:46:56 +00:00
Thomas Hartmann
0150302bbb QmlDesigner: Add Qt 6.7 to all wizards and make it the default
Change-Id: I67a1870486c4f87e86e135af7619843a36e591a6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-27 16:51:40 +00:00
Thomas Hartmann
89af0ad08a QmlDesigner: Fix capitalisation
Change-Id: Iba1927368be4f06dea87132fe8a4e81db819a293
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-27 13:29:00 +00:00
Miikka Heikkinen
fd3047bac2 QmlDesigner: Join sleeping task queue thread
Threads are still considered joinable after their execution. So sleeping
thread have to be joinded first. Add test

Fixes: QDS-12308
Change-Id: Ie01588293e3b7ce9fe149d52a25ba03d174cca88
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-27 11:05:37 +00:00
Pranta Dastider
3bbe1c0452 QmlDesigner: Update Tooltips for Qt Quick Layout components
This patch update tooltips for Qt Quick Layout compoents.
It also update tooltips of the relative properties.

Fixes: QDS-12283
Change-Id: I6c4d76602668dc7258cce7ff4fab4b547d8f5d0f
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>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-03-27 10:02:42 +00:00
Pranta Dastider
3b1e3c56b0 QmlDesigner: Update the Qt runtime versions document
Qt Design Studio uses a specific Qt Runtime version to
run the projects. This update include the Qt runtime
versions used for QDS 4.5 releases in the document.

Fixes: QDS-12201
Change-Id: I90bf2c952bef70840af382f03bc0ae47b43e3a0d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-27 10:02:10 +00:00
Thomas Hartmann
f63bd7f933 QmlDesigner: Crash fix
* Add QTC_CHECK for crash
* ActionAreas should not be "garbage" collected if they have no target.

* Initial ActionAreas do not have a target and ActionAreas without target make sense to a user. We do not want to delete them together with the target.

Task-number: QDS-12181
Change-Id: Ie520c47aad990a8ff07fc3346e6772226d334ce5
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-27 09:33:20 +00:00
Christian Stenger
830e09ccca QmlJSEditor: Fix hovering color properties
Color properties set with hex color values display a
color tool tip, but named colors failed for Qt6 while
it was still working with Qt5.

Change-Id: I6457bbdc86dd7f036bc48dc40cfa16cda570b95f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2024-03-27 09:10:14 +00:00
Christian Stenger
718fdcc607 Axivion: Fix crash on close
Fixes disconnecting the correct connection.
Amends 99aed851ef.

Change-Id: I3175291086b08ad5434c4211aba51bd5eb439e24
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-27 09:09:46 +00:00
Mats Honkamaa
33ec9d9690 Doc: Add topic on camera follow function
- Added a topic on how to make a camera follow an object
- Some minor fixes to the Cameras topic

Fixes: QDS-11700
Change-Id: Ieafa9c57d5649d3de6f823cc907734ab6f24091d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-03-27 07:27:54 +00:00
Leena Miettinen
1fdb2cbe53 Doc: Update screenshots to use the new numbers
Some writing style changes.

Change-Id: Ia0e0260b55693ef576491497fb6cbec23e37be97
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-27 03:46:44 +00:00
The Qt Project
cba5b0a841 Merge "Merge remote-tracking branch 'origin/13.0' into qds/dev" into qds/dev 2024-03-26 15:26:37 +00:00
Tim Jenssen
8a18423175 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I28e2e8cacf9a20c8b2f5073f4a492862d814fb99
2024-03-26 15:59:34 +01:00
Leena Miettinen
a59c93d20b Doc: Update info about resetting the QML code model
- Add the case where you cannot see your new QML module.
- Remove obsolete use case and message.

Task-number: QTCREATORBUG-29826
Change-Id: I29c2852d32007c64e343bcbe30a1d218f9ff89d3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-03-26 14:03:38 +00:00
Alessandro Portale
44bf71169c Revert "Android: Speed up startup by using existing Qt6 Information"
This reverts commit 16c12f71ff.

Reason for revert: Introduces bugs.

AndroidQtVersion::addToEnvironment() set varying ANDROID_NDK_PLATFORM
values in successive calls. Only after a call of
QtVersion::ensureMkSpecParsed, a consistent value is set.

The symptom could be fixed by adding QtVersion::ensureMkSpecParsed calls
in strategic places (e.g. in the beginning of
AndroidQtVersion::addToEnvironment), but it does not make me confident
that this covers all potential code paths. The change that introduces
the issue is 16c12f71ff and will therefore
be reverted. It may be resurrected in QtC 14, but with much caution.

This issue seems to be specific to qmake. It hardens my impression, that
there are no easy gains to be made in the current state of the Android
plugin. An improvement for one use-case will break another use-case
which may be fixed only after two release cycles. It is Mikado code:
"Only touch if needed and safe".

Change-Id: I6ad860f6af8848a900d9421837a03929f9a57645
Fixes: QTCREATORBUG-30554
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-26 13:38:34 +00:00
Leena Miettinen
36fdb81aef Doc: Move "Inspect QML and JavaScript" to "Move in QML code"
...from "Check code syntax".

Remove redundant text.

Change-Id: Ida75dae0f97881437d20a0d2167e1e4afde6ed2f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-26 12:28:57 +00:00
Teea Poldsam
01999a87dd Doc: Add fly mode to 3D doc
Added fly mode and organized information into subsections.

Fixes: QDS-12033
Change-Id: Ib4fefa6df8be15821e727c7a676bf7389fceac4e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-26 11:09:05 +00:00
Ali Kianian
aa64a62e2f QmlDesigner: Prevent rounding real numbers in Model Editor
Fixes: QDS-12021
Change-Id: I28215cc7a6ae9c388b3654799ef848a8002b0f13
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-26 10:52:42 +00:00
Leena Miettinen
4bc12d6671 Doc: Update screenshots with new number or of the Welcome mode
Change-Id: I5685c9b42e31cdad79a7f6a6a90e4754a5f76cbc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-26 10:11:29 +00:00
Leena Miettinen
5f4a8d3130 Doc: Update the online sidebar TOC
- Fix a link
- Add Reference categories
- Move Version Control Systems up in the TOC

Change-Id: I6b6f9562c581ce8b78503d7e70ce132a0e9253a7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-26 10:11:03 +00:00
Ali Kianian
4e63bcb744 QmlDesigner: Fix the bad access for the listModel of the model editor
Change-Id: I9954e11135ab5913a82f12067291b04f22fbe5d2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-03-26 08:56:21 +00:00
Eike Ziller
7821fbbf03 German translation: Core, ExtensionSystem, Utils, Welcome
Change-Id: Ibdfa530b7d32ad67e2bbcc10ee0d133ce48a57bf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-26 07:17:22 +00:00
Christian Stenger
3b7d9178ae SquishTests: Fix default settings test
QC nowadays provides lldb on Windows which gets automatically
registered.
Beside this correct expectations for the compiler based on the
LLVM path that had been used for building the QC package and
might be the same on the machine the test runs on.

Change-Id: Ie9553b79bb0eb0012386bd71422005c184638046
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-03-26 07:06:43 +00:00
Marco Bubke
41f3eaa3a9 Sqlite: Fix prepare tracing
Change-Id: I2b0c36789886d0924ac8130a4d46f3c13fc7518b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-25 16:15:20 +00:00