Commit Graph

85691 Commits

Author SHA1 Message Date
Tim Jenssen
955534ce45 qml2puppet: we only support Qt6 these days
This amends 59ecf10f06
"fix QT_VERSION_MAJOR is empty in single builds"

Task-number: QDS-10669
Change-Id: I730fe8d36b22fce82ff71b0f9aee5657d6380f1f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-14 10:22:41 +00:00
hjk
1f49833ea6 CppEditor: Remove unused class member
Change-Id: I6635f320e7d746702e6e86bd5f4e8cc749c804f5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-14 10:11:43 +00:00
Henning Gruendl
650dabdc25 QmlDesigner: Add scroll bars to SuggestionPopup
* Add scroll bars
* Fix focus style for expression builder

Change-Id: I08f4334b3d480e4395a0c017634dd42f8eff74bb
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-14 09:59:27 +00:00
Henning Gruendl
89d5795f7a QmlDesigner: Hide QML debug output
Change-Id: Ice49d7ab5a5d90feccf52f98b1049576f96ae275
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:59:17 +00:00
Christian Kandeler
c816a9b523 qbs build: Remove unneeded Project items
Also update type descriptions.

Change-Id: I2b7d8814913cfb72cb8280601338ab763d8fabe6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-14 09:58:01 +00:00
Alessandro Portale
a7bbb986dd ScreenRecorder: Explicitly include <QAction>
... assuming that otherwise a build with Qt 6.2 fails

Amends: 9c036fe393

Change-Id: I6ed7a25ca8d50ef5283cdc16963aa79dfaef6749
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-14 09:34:54 +00:00
Tasuku Suzuki
673bcb644c Markdown: Add some tool button to help writing markdown
This allows users to add operator wrapping selected text easily.

Change-Id: If3c21fa41e0dc338a3ec760076406fe046e5adbe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-14 09:27:51 +00:00
Henning Gruendl
1824ccd380 QmlDesigner: Add placeholder in expression builder
Task-number: QDS-10667
Change-Id: Iad83ba5e398b06ebafb64ab1d5d9a2a5543a7204
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:17:59 +00:00
Henning Gruendl
b55d44080a QmlDesigner: Remove QML debug output
Change-Id: Icdd705a43ddcca10ca1ec5e6dc1ec72f8f208a94
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:17:52 +00:00
Miikka Heikkinen
fb20ecff57 QmlDesigner: Make 3D view grid fade away at distance
Fixes: QDS-10622
Change-Id: I39179e3927bfef5b0e9d99cbbd2ff16886b6dc38
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-14 08:13:59 +00:00
Xavier BESSON
5cfe69ea1e Add possibility to comment selection after the white spaces
Fixes: QTCREATORBUG-29410
Change-Id: I736378e0b5fb542a6c1032a47adfb251b50ce2ef
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-14 06:59:00 +00:00
Henning Gruendl
1327a2c7ce QmlDesigner: Add transient scroll bar
Add transient scroll bar to connections editor

Change-Id: Id4afd661da2fcdeacd2a4a0de0e0b9999c14dec2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-13 16:55:12 +00:00
Thomas Hartmann
7e09f7d4ff QmlDesigner: Clean up PropertyTree Model
* Remove call to test
 * Remve qdebugs
 * Fix priorityListSignals

Change-Id: I0828a9eb7b90c6d7a4903f2cbaf4382e1f3a413e
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-13 16:05:23 +00:00
Thomas Hartmann
c216dff156 QmlDesigner: Show default condition as empty
Change-Id: I33f217bf02035414b2d69c863c7039c485161579
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-13 16:05:09 +00:00
Aleksei German
9bf4a084b8 QmlDesigner: Remove repeating gradient code
Change-Id: I46ab46fb5a96c9c62933c845936d3ddba3d4bdc8
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-13 15:07:26 +00:00
Henning Gruendl
91029f9752 QmlDesigner: Fix ComboBox not closing
Change-Id: I562005d3102efafc52cc01b161aeaeba56581095
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:47 +00:00
Henning Gruendl
ffd23a68a2 QmlDesigner: Remove QML output
Change-Id: I40263a26304904a827a90f86272eacb2d1684a69
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:39 +00:00
Henning Gruendl
9f391acdd9 QmlDesigner: Add focus handling to close popup
Add proper focus handling to the expression builder in order to close
the popup when e.g. clicking outside.

Change-Id: I5ea8422c727b5fc6e47dc77866b709e4ec04e6fd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:31 +00:00
Henning Gruendl
1ae4b05599 QmlDesigner: Fix crash in Expression Builder
Change-Id: I8ef783c1407f06aea630ce111b3d4f02e195eff5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:23 +00:00
Christian Kandeler
fc79d938ef RemoteLinux: Fix deployment to root directory
Skip mkdir in this case.

Fixes: QTCREATORBUG-29597
Change-Id: I716e2703e3599a71306a9126e0a627a519398937
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-09-13 14:37:51 +00:00
Leena Miettinen
6cf4b1a3cd Doc: Use hyphenated form of "command-line" where appropriate
That is where it precedes another noun, such as "options",
"arguments", or "tools".

Change-Id: Ic4c339084e7350fe737e499293a8f96c91c57fd7
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-09-13 10:12:26 +00:00
Marco Bubke
83bf9df043 Utils: Fix fix for string size
It was not using the whole short string size.

Change-Id: Id6f6d4d0241ef74dbc0fe766bc1e19e8671e0b94
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-13 09:52:25 +00:00
Alessandro Portale
9c036fe393 ScreenRecorder: Offer saving of the current cropped frame
The "crop and trim" dialog gets two new buttons. The first offers to
save the current, cropped frame as png image. The second one copies the
image into the clipboard. Copyuing into clipboard is also triggered by
the QKeySequence::Copy shortcut.

The location where the last image was saved gets remembered in the
settings.

Change-Id: Id4ac93838d59f6a6fa801456fe8d9c17d1e74154
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-13 09:05:11 +00:00
David Schulz
f491d93d2a CppEditor: remove superfluous locker in model manager
This locker potentially results in a freeze since the called projectPart
might require to lock for writing, which is not possible if the read
locker is still there. Additionally there is nothing we would need the
lock for in projectPartFromDependencies.

Change-Id: If957edfb4ebc45e18141cb14a63bf9567242cc48
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-13 08:48:22 +00:00
Eike Ziller
1870501443 Delay modifications to MIME database until first use
Initialization of the MIME database takes time, and it is good to avoid
this during startup.
We nevertheless want to apply some modifications to the MIME database, so
we need to delay these modifications until first use. Allow registration
of additional initialization functions. Since the initialization
functions access the MIME database, which does locking for thread-
safety, we need to separate the initialization to outside these locking
functions.

Change-Id: I2b1706347768bcf081644e078ccfa45302d61641
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-13 08:05:21 +00:00
Eike Ziller
40273101c6 Doc: Update information about Qt Quick render backend
Qt 6 works different than Qt 5. Remove references to ANGLE.

Change-Id: Ie27922d7c9a26d29a1ad4a1f52daa3a1aff7b19a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-09-13 07:26:55 +00:00
Marcus Tillmanns
7200644f75 Utils: Syntax cleaning
Change-Id: If296e0240840f66c371106508f3f0046bc7a9a71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-13 07:11:52 +00:00
Leena Miettinen
b7800d9351 Doc: Turn "Activating Kits for a Project" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: I3545d29192176ba0a4377d77f51bc13155b46588
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-13 06:57:18 +00:00
Leena Miettinen
2d9aa27b61 Doc: Chop up the "Using Version Control Systems" topic
Turn the topic into Reference and How-to topics.

Task-number: QTCREATORBUG-29361
Change-Id: I2fd4050f712b61b3e4140a5bf93e968c02b36d36
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-09-13 06:57:07 +00:00
Leena Miettinen
097cb17af4 Doc: Replace "Getting Help" with "How To"
Move the topics to either "How To: Read Qt documentation" or
"Reference", depending on their type.

Task-number: QTCREATORBUG-29361
Change-Id: Ifa46192f7a15a71e8d3454010f6b96764776f82b
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-09-13 06:56:53 +00:00
Leena Miettinen
66fabd0c0d Doc: Turn some "Advanced Use" topics into how-to topics
Task-number: QTCREATORBUG-29361
Change-Id: Ie675e4d72ad524e0a7a4ba4adca8a477ff579d55
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-13 06:56:40 +00:00
Eike Ziller
155036a784 Doc: Remove acknowledgment of ANGLE, no longer used
Qt 6 no longer uses ANGLE.

Change-Id: I873adc0773a11b1b8d707ecd098aee549d4e6769
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-09-13 06:35:23 +00:00
Marco Bubke
22009b6967 QmlDesigner: Add PropertyNameLiteral
That hopefully makes it really hard to create a literal from dynamic or
automatic memory. Only global string literals should be used.

In header you should use:
MakeHeaderPropertyViewLiteral(foo, "Foo");
Makes foo constexpr and provides internal linkage.

In cpp files you should use:
MakeHeaderPropertyViewLiteral(foo, "Foo");
Makes foo constexpr and provides external linkage.

In a function scope you should use:
MakeCppPropertyViewLiteral(foo, "Foo");
Makes foo constexpr but does not add it to the stack.
All three provide a const QString& on demand. So no code is executed as
the program is started.

Change-Id: I924efbb1f5c2b2c811f3eeae042ff2eec8de3faf
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-13 06:35:04 +00:00
Thomas Hartmann
72a45dc2fb QmlDesigner: Fix update issues and reflection
* Whenever there are changes on the model we have to update the
delegate.

* Avoid reflection on source changes
* If the target changes the order of the model changes and we have to
sync selection

Change-Id: I34a87cd5ac329745bf48bb739fcf7555ee46b1c4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-12 18:44:08 +00:00
Thomas Hartmann
034f107851 QmlDesigner: Fix update issue
The cache has to be cleared fist

Change-Id: Iba2a6035becf0dc60f2bc95b94dd1b6ef59ad4d3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-12 18:43:50 +00:00
Mats Honkamaa
781e9dd5e3 Doc: Unify product naming
Unify naming for Qt Online Installer and Qt Maintenance Tool. Ass macros for theses
as well.

Task-number: QTBUG-116573
Change-Id: I90247956300607b852a17df96aa667bf55805e36
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-12 16:22:28 +00:00
Alessandro Portale
9a81e1270a ScreenRecorder: Make extra sure that "last opened directory" is written
Change-Id: Iae45c91d6934e50cec48849a455cd79e493c28e4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-12 16:11:57 +00:00
Andreas Loth
b8564b48c0 Axivion: Propagate cancellation form future to network reply (abort it)
Change-Id: Ibcad2410276dbf752f73fbc8c9091156892670ff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-12 15:59:12 +00:00
Ali Kianian
251e1cca4c QmlDesigner: Make shortcut accessible from the MenuItem
The shortcut property is accessible directly for the MenuItem.

Change-Id: I6d956859411a02dcd9c9610cfa4ccffb2e7867e7
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-12 15:42:17 +00:00
Eike Ziller
fcfe73d8f1 Nanotrace: Shutdown should do nothing if not initialized
Change-Id: I717296da4c9aea1e9dd28db3421a927f6bb8d332
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2023-09-12 14:52:58 +00:00
Ali Kianian
92363e1a49 QmlDesigner: Set the correct color for tooltips
A static palette is set for the QToolTip to apply the theme color.

Change-Id: I9d7dd2290c1ac4feb5cdebc8388a611bc2b38add
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-12 14:46:28 +00:00
Eike Ziller
5d02b4df71 Tracing: Fix assert when wheel zooming
The wheel handling code was triggering an assert in qBound when
calculating the newStart, when using a touch pad.

Rewrite the wheel handling to get rid of the assert and make it more
similar to the text editor wheel handling.

Change-Id: I0c1306d00be6b3054fb8dba9628b7758880675b0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-12 14:28:26 +00:00
Eike Ziller
305a1a6ed1 CtfVisualizer: Fix computation of nesting level
The computed nesting level (which row an event to show in) was solely
based on begin+end events and "complete" events were ignored.

Compute the rows afterwards, similar to the "parent" computation that
the timeline model already does. Find the first row that is free,
and use that for the row of the item.

Change-Id: I890138c10f5038508da9b286b35d7bcfdf0ab64d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-09-12 14:28:15 +00:00
Eike Ziller
f33f556598 Doc: Remove acknowledgment of three.js, no longer shipped
Change-Id: I857840f4bfe4ccac6d18f03efbb70e0ea9aafdc8
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-09-12 14:27:24 +00:00
hjk
bd6348fc20 ExtensionSystem: Reformat -profile messages
We have ReallyLongPluginNames nowadays.

Change-Id: I722095fea0e9214e1d4e0774399c5d16123e867d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-12 14:25:55 +00:00
Eike Ziller
3b6ad4517f CtfVisualizer: Do not crash/assert
Use QTC_ASSERT.

Change-Id: I621c607915f71246be1bdb02f2588ed08e37a1cd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-12 14:21:52 +00:00
Eike Ziller
c83047abb9 CtfVisualizer: Allow strings for process and thread id
While the format document only uses numbers for these in its examples,
the data type is not really specified there and chrome://tracing itself
handles strings for them without complaint. On trace-generating side
std::thread::id can't easily be serialized as a number, and strings can
easily be supported in the viewer.

Change-Id: I36c8497049d4933058b9f72a28f24e1d1cf0d5bb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-12 14:21:27 +00:00
Marcus Tillmanns
67aab38873 Utils: Add undo/redo to BoolAspect
Change-Id: Ie80e81c2ceef232278e2815ffa56bcbaef903eb2
Reviewed-by: hjk <hjk@qt.io>
2023-09-12 13:30:40 +00:00
Miikka Heikkinen
336912cf2f QmlDesigner: Fix crash when taking 2D view screenshot
If 2D view was hidden, taking screenshot crashed.

Fixes: QDS-10657
Change-Id: I96fe7a37793a902d517ad891fd7fe1914e681c30
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-12 13:28:41 +00:00
Christian Stenger
797e6d55a6 Minor fixes to compile for building with Qt6.2
Change-Id: I15ab9b92d19491bb0aca3d2389a589411e1fec8d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-09-12 13:09:01 +00:00