Commit Graph

88653 Commits

Author SHA1 Message Date
Marco Bubke
6ebb7923b2 QmlDesigner: Deprecate optionally old node meta info API
If the project storage is activated the old API will be deprecated.
Hepefully people now stop to use the old API. You can still use it but
you have to write an implementation for the new one too.

Task-number: QDS-12102
Change-Id: Iac23da1648ff44e27a2ee7840e0d3eeb1fb8caf9
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-11 11:23:27 +00:00
Leena Miettinen
17f40221e0 Doc: Update the online doc sidebar according to structure changes
Some of the linked topics were removed and others are now how-to
topics. Added How To and Reference categories and fixed topic titles.

Task-number: QTCREATORBUG-29361
Change-Id: I96efb10baacc173c30c6d568589bc91b3ff381ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-11 10:53:45 +00:00
Christian Stenger
27c02d94af Debugger: Fix persisting of debugger settings
When triggering them from the context menu while debugging.
Fix used settings group when triggering writeSettings() on
the aspect instead of the AspectContainer.
Explicitly persist respective settings when triggering them
on the context menu.

Fixes: QTCREATORBUG-30491
Change-Id: I6f429bb54630cbe61c8b2ee063028f323a2d08f6
Reviewed-by: hjk <hjk@qt.io>
2024-03-11 10:46:22 +00:00
Thomas Hartmann
40821b4767 QmlDesigner: Bump version in project template
Change-Id: I6f8c63b56b9a8d6d635a9385b42e714f1e510e02
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-11 10:28:53 +00:00
Alessandro Portale
477f4e18eb Welcome: Design update round
User feedback was gathered and in part implemented in form of a design
update:

- Update dark and light tokens
- Add Token_Text_Accent and use it for session/sroject names, tags, etc.
- Change card hover from Token_Foreground_Subtle to
  Token_Background_Subtle
- Remove font-style changes on hover

Change-Id: Ia428d43828c9c76ea91d142356457846b932e2d6
Reviewed-by: hjk <hjk@qt.io>
2024-03-11 10:25:35 +00:00
Alessandro Portale
3e0c302a6c ScreenRecorder: Make Crop&Trim dialog maximizable
Give the dialog back its minimize and maximize buttons (on Windows),
without setting the Window flag.

Amends: 24796279f3

Change-Id: I2bca972c0351d0749ea3771e418449a052703329
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-11 09:51:57 +00:00
Miikka Heikkinen
572205691f Doubleclick on View3D item in 2D view will open 3D view
Also if the click was over a visible model in View3D, that model will
be selected. 3D view edit camera will be aligned to the scene camera
currently in use.

Fixes: QDS-12188
Change-Id: I25823dbbcf9d1706b2cdefb8c34aa78ecd93e407
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-11 09:19:41 +00:00
Robert Löhning
7813ce9335 SquishTests: Avoid warnings when reading build issues
tst_APTW01 explicitly disables the Clang Code Model
so there is no filter category of that name.

Change-Id: I7378e11582bb0231a24404cca212a234ef7f37ed
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 09:13:51 +00:00
Volodymyr Zibarov
5895ad5659 [cmake] Fix follow symbol for add_subdirectory to not jump to target
Skip targets list if function name is add_subdirectory

Fixes: QTCREATORBUG-30510
Change-Id: I8c601fb2134fc8a9b2814df01f6ec5eec380c51a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-11 09:00:51 +00:00
Christian Kandeler
8295f11576 CppEditor: Skip redundant check for large files
The only caller of refreshSourceFiles() is updateSourceFiles(), which
already does the respective filtering.
Amends 1960503ae9.

Change-Id: Ief7b2a728138c3693276edbd1912fa59cadaf4a6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-11 08:18:56 +00:00
Christian Kandeler
f4916b3125 Core: Lower the document auto-suspension threshold again
This was already done in 509600da99, but
accidentally reverted by a refactoring in
7f908d737b.

Task-number: QTCREATORBUG-29943
Change-Id: Ica3df46fa9610729629704746a8e1003bb89f465
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-11 08:18:13 +00:00
Alessandro Portale
2f290e6dc0 ProjectExplorer: Fix KitManager::deregisterKits
There were some problems regarding removal of the default kit:
  - A precondition of setDefaultKit() was violated.
  - The new default kit was set to a kit that was possibly removed later
    as well (and never updated afterwards).
  - The new default kit was only set if it wasn't null, leaving a
    dangling pointer in m_defaultKit.
Also turned some checks into assertions.

Amends e31a06a0f4.

Done-by: Christian Kandeler <christian.kandeler@qt.io>
Fixes: QTCREATORBUG-30493
Fixes: QTCREATORBUG-30502
Change-Id: I3283f02c90d0ec84b579d7cfdf845b03663f5768
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-11 07:43:53 +00:00
Eike Ziller
2484b50a99 Fix Fullscreen action text
On macOS the action was correctly switching between "Enter Full Screen"
and "Exit Full Screen", but on Windows & Linux the text was fixed to
"Full Screen" and the code tried to set the check state - but forgot to
make it checkable in the first place.

Actually it is unclear what the "correct" behavior is on Windows &
Linux. Neither on Gnome or KDE or Windows the action shows a check mark
when in Full Screen mode though. Either there is a tool button with an
icon, or some variation of "Exit Full Screen" or "Leave Full Screen".

Change the text of the action on all platforms, use "Exit Full Screen"
on all of them, but stay with just "Full Screen" on Windows & Linux (as
opposed to "Enter Full Screen" on macOS).

Fixes: QTCREATORBUG-30365
Change-Id: Ic55a30e32302ceb12f75449781b1aefecb370c97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-11 05:21:55 +00:00
Christian Stenger
db31db26dd Axivion: Provide some context menu for issues table
Provide actions to open the selected issue or table inside
the system web browser.

Change-Id: I43d31368444fd4664db7d908c40b898e430cede3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-03-11 05:21:24 +00:00
Mahmoud Badri
21299fe1f1 QmlDesigner: Generalize CustomComboBox
Make CustomComboBox only expose a component for its content so that any
content can be added. Not necessarily an item list.

Change-Id: Idc351351f35e5ca558a28422dd475cd5c800c27a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-08 15:18:36 +00:00
Shrief Gabr
836c0a11e4 EffectComposer: Open effectComposerNodes/images by default in UrlChooser
Task-number: QDS-11464
Change-Id: I96bb7e359bd41637f0b1906a523c8a5de190981d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-03-08 13:56:22 +00:00
Ahmad Samir
71e6916b37 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>
2024-03-08 13:32:59 +00:00
Ahmad Samir
5760654674 FileIteratorWrapper: remove redundant if statement
Change-Id: I5b9a50802adc3d2cfc48748235a7cd6ee01fa5a4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-08 13:32:40 +00:00
Ahmad Samir
2f78fd4358 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>
2024-03-08 13:32:20 +00:00
Shrief Gabr
d786001fa1 EffectComposer: Add color channels to the Opacity Mask effect
Task-number: QDS-11417
Change-Id: Ie35e4da6c12a78fd808a6264f643ce2b3b1f62d2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-08 09:31:37 +00:00
Mahmoud Badri
5d497a3b7c QmlDesigner: Add screenRect() and globalPos() to prop. editor context
...so that CustomComboBox's popup work. Also small tweaks.

Change-Id: I8c4638e6710db80aa59da326af868ab6f6917e55
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-08 09:23:03 +00:00
Alessandro Portale
24796279f3 ScreenRecorder: Fix widget colors in the Crop&Trim dialog
panelWidget() and isInUnstyledDialogOrPopup() in ManhattanStyle.cpp
would mark the contents of this dialog as "panel widgets". In order to
evade this, we don't set the dialog type of the Crop&Trim dialog to
Qt::Windows.

The author of this dialog did not leave us a comment on why Qt::Windows
was chosen, so we can assume it was done for no particular reason.

Fixes: QTCREATORBUG-29893
Change-Id: I90f653e39cee839203b8767cb30eadab69baaf09
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-07 19:26:46 +00:00
Cristian Adam
47018e59d2 Android: revert to using 'threads' in handleJdbSettled
But this time ignore unhandled exceptions which were caused by the
'threads' command in certain situations.

Amends db307978bf

Change-Id: I50819306eeb392ebae8dc869694ed588739c44fb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-07 17:18:57 +00:00
hjk
e71de0d0c1 Appman: Code cosmetics
Use less specific #include to get EnvironmentAspect.

Change-Id: I570c6a0871c63f5857d56ff640e95f10463fce5e
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-07 16:27:29 +00:00
hjk
ef569cc05d PerfProfiler: Un-export and de-Q_OBJECT-ify PerfRunConfigurationAspect
Not needed anymore.

Change-Id: Iadeed22e90ab98ae5db0a4305af7c862fc2a1810
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-07 16:27:22 +00:00
hjk
4c0991b25d PerfProfiler: Make perf record args accessible
... without creating a hard dependencies.

Change-Id: I07b40dd9f1a4f53c5279d36f44e2a9123a34fa74
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-03-07 16:27:08 +00:00
Mahmoud Badri
7f9f223aaf QmlDesigner: Match CustomComboBox's popup width with the ComboBox
Change-Id: Idc12775e2a886e469d73e3e1f0e678ec3ddbc62c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-07 15:26:56 +00:00
Artem Sokolovskii
b24acbc28b ClangFormat: Fix General tab is missing
Fixes: QTCREATORBUG-30501
Change-Id: Ic1f09e513114acf6fb6ee52c8b5f066a2071e202
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-07 14:37:15 +00:00
Pranta Dastider
e1c9720c09 QmlDesigner: Create a document to list Qt runtime versions
Qt Design Studio uses a specific Qt Runtime version to
run the projects. This document lists the Qt runtime
versions used for different Qt Design Studio releases.

Fixes: QDS-12052
Change-Id: Ia9411393db4d800945c85ac67e4a9872a611308c
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-03-07 14:35:42 +00:00
Eike Ziller
da9afa8cc7 ModelEditor: Remove multiline text from action text
It is supposed to be shown in the tool tip, so set the tool tip instead.

Fixes: QTCREATORBUG-29174
Change-Id: Ib2572b71dfccf18276e63fadb7dbe386949b0275
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-07 13:52:00 +00:00
Christian Kandeler
2524e2adb3 CppEditor: Let users provide statement macros
Like ClangFormat has.

Fixes: QTCREATORBUG-15069
Fixes: QTCREATORBUG-18789
Change-Id: I0ffb70be502d1c73aaaf436484ddc6704f152621
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-07 13:45:31 +00:00
Christian Kandeler
cdd85477fb ClangTools: Put a clazy setting to its proper place
We do not go out of our way to retain the old settings value, as the
setting affects only the UI behavior in the same widget it is displayed
in.

Change-Id: Ie0d66b3909364e15a05013eddaf742b161941f67
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-07 12:48:41 +00:00
Marcus Tillmanns
22f41fb751 ModelEditor: Fix crash when selecting items
Fixes: QTCREATORBUG-30413
Change-Id: Ie637e20d6308da2e1afcf3ff710f29c6a1695d58
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-07 12:16:31 +00:00
Mahmoud Badri
47dd925730 QmlDesigner: Add HelperWidgets FlagsComboBox
Change-Id: I05294aa1483926d943f8a40d1d9702298110fe94
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-03-07 12:08:43 +00:00
Alessandro Portale
c936fc5982 Welcome: Determine maximum width for Core::Button text for all states
Button states can have individual text tokens assigned. Depending on the
used fonts and platform-specific renderer, any of these states may have
the highest widts. Consider all of them and use the maximum.

Change-Id: I51caccef9e34c1911c2773b8836dba722ad63c47
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-07 12:00:04 +00:00
Christian Kandeler
256105d75f Update qbs submodule to HEAD of 2.3 branch
Change-Id: I0e97c91701030674cba363a692c2c9765a4aedbd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-07 11:51:54 +00:00
Robert Löhning
43b54e8c3a SquishTests: Update button type in Welcome mode
Amends 9832af9701

Change-Id: I8840748e3bcb2c0993f93411b324e04a7f81960d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-07 11:12:28 +00:00
Robert Löhning
498625520a SquishTests: Don't try removing packages directories
Seems they are not being created anymore.

Change-Id: I8b48a848793fb73ea193918c14c322d6166b2053
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-07 11:12:04 +00:00
Miikka Heikkinen
74761b0e64 QmlDesigner: Add fly mode for 3D view
You can now activate fly mode in 3D view by pressing right mouse
button. In fly mode, cursor is hidden and mouse controls edit camera
rotation directly, and WASDQE can be used to move the camera around.

Fixes: QDS-12030
Change-Id: I52550502632af19de36a1557d9aac84ff3cb18cc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-07 10:37:26 +00:00
Jarek Kobus
d32a5ebb35 Axivion: Suppress the network error logging on unauthorized access
This is a valid path to try the unauthorized access first,
and when it fails we automatically try the authorized access.
So we shouldn't bother the user with an error on a failure
on unauthorized access to the dashboard info.

Change-Id: Ia27686f804415741da614e36802551f8d8d610ed
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
2024-03-07 09:08:32 +00:00
Marcus Tillmanns
10da1ef3ff Android: Make errors visible
Change-Id: Ic0a1ebbc932c5854f7b41572a96a1c6b6c8896a0
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-07 09:00:29 +00:00
David Schulz
876159cea9 Revert "Revert "TextEditor: Use synchronous highlighter by default""
The crash in the syntax highlighter was resolved so we can switch the
default back to synchronous highlighter.

This reverts commit 0539e2a0f6.

Change-Id: I2e9cdb818420a14d01565d58def14f88cf5e895d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-03-07 08:37:59 +00:00
Jarek Kobus
2cf2843b38 CreateSimulatorDialog: Skip explicit call to waitForFinished()
This is done by the FutureSynchronizer d'tor, so no need to call
it explicitly. Move the FutureSynchronizer as the last field of
CreateSimulatorDialog so that its d'tor is executed first.

Change-Id: I861e4c6498b63909fe52965ca16343ef82d20b42
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-07 08:20:26 +00:00
David Schulz
2428db2a30 TextEditor: Fix crash in SyntaxHighlighter
The SyntaxHighlighterRunner is deleted by deleteLater in the
TextDocument destructor. This makes it possible that the
SyntaxHighlighter inside the runner lives longer than the document
itself. Avoid this by making the document the parent of the
SyntaxHighlighter like before the async highlighter patch series.

Fixes: QTCREATORBUG-30494
Change-Id: I6ce9c35ab400b17f2a1a6f3c3bd98df23f41c71e
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-03-07 08:20:07 +00:00
Christian Stenger
f35962cfb3 Core: Fix handling of high dpi for self provided cursors
When using the cursors provided by QC we should scale them according
to the pixel ratio otherwise the icons appear too small.

Task-number: QTCREATORBUG-29980
Change-Id: Ia9de8a5adf4bbd457971260edc52f824ddb7564f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-07 07:49:33 +00:00
Christian Stenger
c87435f971 Core: Tweak cursor handling of mini splitter
It is possible that the internal signals are missed which
results in a stale cursor until it gets changed again.
Explicitly handle the hover event and set the cursor there.

This also makes the need to restart QC obsolete when toggling
the respective option.

Task-number: QTCREATORBUG-29980
Change-Id: I51dfa6fda018a325d43cddae99f395cd8c0accde
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-07 07:49:18 +00:00
The Qt Project
71a02b4f02 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-03-07 07:34:23 +00:00
Alessandro Portale
9832af9701 Welcome: Derive Core::Button from QAbstractButton
Enable a hover effect on macOS and remove the need for the setFlat hack.

Change-Id: Iea77ccaddcff0e9ad9299ffda8584160dca6413a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-07 06:57:51 +00:00
David Schulz
0539e2a0f6 Revert "TextEditor: Use synchronous highlighter by default"
This reverts commit 1c47a0a301.
Changing the default revealed a crash that seem to be caused by the
async syntax highlighter infra structure changes. Revert the default for
now to figure out the cause of the crash.

Task-number: QTCREATORBUG-30494
Change-Id: I1d0388c29d206cb25f2d58e4b305aa8303db2a60
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-06 21:04:56 +00:00
Alessandro Portale
cc30e923ff Welcome: Also hide separator lines when collapsing top- and side areas
This moves the separator lines into the respective areas, so that the
lines also disappear when their area collapes. Looks cleaner (for pixel
obsessed people like me).

Change-Id: I314c2c462767666638eae57087606f2a6ca4ae4a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-06 19:40:24 +00:00