Commit Graph

88653 Commits

Author SHA1 Message Date
Cristian Adam
a51380c2fd CMakePM: Add policy support for help and code completion
Change-Id: I82d291639fe890602bba61eded9d1dfd7d38ca41
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-20 21:11:10 +00:00
Cristian Adam
a998269d7e CMakePM: Expand help for variables, properties and modules
Not only CMake functions.

Change-Id: Icd21eb39a55533261f2b5c170a9dbd38a640e3e9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-20 19:54:03 +00:00
Pranta Dastider
e4c96428c7 QmlDesigner: Update Tooltips for Connection view titles
This patch update tooltip texts for titles directly under
the connection view.

Fixes: QDS-10626
Change-Id: If0eb948143536702df0219e64db8a7370ba8cb42
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-20 15:12:50 +00:00
Sami Shalayel
77b368045c qmljs: use qmlls for 'go to definition'
Use the language client in qmljseditorWidget to do 'go to definition'
aka 'findLinkAt', when the language client is enabled.

Also move static helper method getQmllsClient up in the file.

Task-number: QTCREATORBUG-29567
Change-Id: I4f9132ba5f6bffc5090f3b1f7f6ccfd0c7b40e2a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
2023-09-20 12:59:27 +00:00
David Schulz
726cc7f5cd PE: Make GccToolChainFactory::autoDetectToolchains static
In preparation of running it in another thread.

Change-Id: I2cbac1bd45885416f8ee0dfdc95a4998e87d2f8e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-20 12:02:32 +00:00
Christian Kandeler
1a64a179aa ProjectExplorer tests: Do not use QVERIFY2() for std::expected values
QVERIFY2 evaluates its second argument even if the first one is false.
Uncovered by 768f12e033.

Change-Id: I57a175791c21fe416efaabd69920cdcb5e6da38c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-20 11:29:43 +00:00
Tor Arne Vestbø
4b29b43a2a lldb: Add summary providers using consistent module name
When the lldbbridge is imported from the debug_script.py in qtbase,
it's imported using the module name 'qt', to distinguish it from
when Qt Creator imports the bridge.

So when we add the synthetic child provider, we need to use the
'qt' module name. This fixes the warning:

  The provided class does not exist - please define
  it before attempting to use this synthetic provider

If for some reason the lldbbridge.py is imported into a LLDB session
directly, we mirror the 'lldbbrdige' module name to 'qt' as well,
so that the class reference still holds.

Change-Id: I531b10fd5e10eb0c2acd6014169a02ba3157c704
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-20 11:20:57 +00:00
Alessandro Portale
8af902b5b7 ScreenRecorder: Turn lambda into member function
m_rect has otherwise invalid data at some point.

Change-Id: I325522123ca4b0240235cf95cd6fb026f4ab9c98
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-20 10:44:30 +00:00
Christian Kandeler
fca94a8366 qbs build: Fix manual tests
- Remove dependency on project.withAutotests by adding local
{Qt,Cpp}Application overrides that alias QtcManualTest. This way, the
respective products are a QtcManualTest when inside Qt Creator, while
also working outside the source tree.
- Rename QtcManualtest to QtcManualTest. (The reason QtcAutotest is not
camel-cased is because "autotest" is a single word.)
- Plus some minor clean-ups.

Change-Id: Idd77191f0b433d6d7443c639eebda383ab110082
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-20 10:22:21 +00:00
Christian Stenger
9f7f175124 Sqlite: Disable before Qt6.4.3
Does not build before Qt6.4 and cmake build only builds
it from Qt6.4.3 onwards.

Change-Id: Ie3ffa37eb1c164b4fd151e2cf73918cfd4740175
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-20 10:22:08 +00:00
David Schulz
871162bd1c ProjectExplorer: remove unused functions
Change-Id: I4a860d5e2e24a4e5de84e2186a3b4ac6dca3bfd4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-20 10:21:26 +00:00
Eike Ziller
13c12f33e5 Merge remote-tracking branch 'origin/11.0'
Change-Id: I397dde2f95f62eb4843c39dd861522ae63d7f2c9
2023-09-20 10:43:54 +02:00
Marcus Tillmanns
189cf8054f Docker: Add network option to settings
Change-Id: Idb18435aa668f9219ae0eb2db6bd55d040ba5243
Reviewed-by: hjk <hjk@qt.io>
2023-09-20 08:02:04 +00:00
Jussi Witick
881c48fbe7 Add Qt Saferenderer 2.1 application wizard
Qt Saferenderer 2.1 application requires some changes compared to the
previous wizard template application. Mark the old wizard for 2.0 only
and create a new wizard template for QSR 2.1 (and newer). Additionally
CMake support is added for the new wizard, as QSR 2.0 did not support
CMake yet.

Task-number: QSR-1990
Change-Id: Iddac903374cf3e044d8a8804b9a935077de1e88a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-20 07:45:22 +00:00
Ali Kianian
ff02efe541 QmlDesigner: Fix the crash on visiting callExpression
Fixed the bug for visiting a callExpression outside of the statement.

Task-number: QDS-10708
Change-Id: Iebe8c1c8d73f1d601e1fba6adaca1ce89d89d0ff
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-20 05:38:50 +00:00
Christian Stenger
d83c740784 Utils: Add files to qbs build
Change-Id: Ica376eb4361ea8de480f3b38aec640a2e73f067f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-20 04:37:59 +00:00
Alessandro Portale
afc424cd23 ScreenRecorder: Make Selection not movable if fully selected
Change-Id: I0f2737fdaef44a649a3e1576554f0abcd304c272
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 18:47:38 +00:00
Cristian Adam
d3dcb894e8 Git: Use a hyperlink for the git sha1
This way it's clear how you should get to the commit.

Change-Id: I6131ffab1855d686828137fb608d3edc57846cf5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:52:13 +00:00
Thomas Hartmann
83c7c0d31b QmlDesigner: Add missing qualification
This was leading to random errors.

Change-Id: I51ec0c71ac1bd3ea7bd966eeb4d3a2b9cfeb0159
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
(cherry picked from commit 5ff6fe0eba)
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:50:56 +00:00
Alessandro Portale
e4d2046145 ScreenRecorder: Use better icon for "copy image"
The same icon is used in other places to copy an image tnto the
clipboard.

Change-Id: I094bd885f1efac3d35c57bbd4c5905e26b8f0c40
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-19 17:48:22 +00:00
Alessandro Portale
a2c44e5512 Utils: Introduce non-toolbar "Snapshot" icon
Change-Id: I07b66f128c5eea91768aeef54bbc03ec89b8014a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-19 17:48:12 +00:00
Cristian Adam
957fa89315 Core: Set the SH_Slider_AbsoluteSetButtons style for QSlider
This way when the user clicks on the slider with the mouse the slider
jumps under the mouse and not left and right according to the slider
page.

Change-Id: If36f9d8ea82f5b200e2322758f4fc25aef5e1a04
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:11:44 +00:00
Cristian Adam
7de97c7a7f CMakePM: Add CMake snippets
Added four CMake snippets.

Change-Id: I5f6f16ff8fd1a7ddd9647431f2f72529b882d603
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:11:38 +00:00
Aleksei German
949612c23e QmlJsEditor: Fix crash on mode switch after save
Task-number: QDS-10709
Change-Id: I0eceef3815b6358d88329828d199d5918a273edf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 17:00:46 +00:00
Alessandro Portale
3f4ed3e890 ScreenRecorder: Make crop selection movable
Change-Id: I95a6227c268bfeb7e0ea57a02c6cfd86fe99361b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-19 17:00:42 +00:00
Thomas Hartmann
f2343b417e QmlDesigner: Close the popup when model is detached
This happens when leaving the edit mode or the document
is changed.

Task-number: QDS-10707
Change-Id: I4b4e2511674d38c2d733db29070c01252c27c386
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-19 16:35:20 +00:00
Cristian Adam
52e3ab5272 CMakePM: code completion changes for cmake_print_variables|properties
They are CMake module functions and need only certain parameters.

Change-Id: I6e49359470cd228fec985fca2297a50d44c76ded
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 16:35:18 +00:00
Mahmoud Badri
ffe3670d90 QmlDesigner: Implement changing effect maker preview image
Fixes: QDS-10625
Change-Id: I48ef68fd4b64a37de3dc60f5decfcda1b43496dc
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 14:17:12 +00:00
Tim Jenssen
9ab6c7186d fix transientscroll.cpp compile against older Qt (tested 6.2.9)
Change-Id: I417aa1e0ef7c00181e85d8250e04b12ff6a24512
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 14:15:11 +00:00
Christian Kandeler
a217fa0c22 qbs build: Clean up testing infrastructure
- Rename ambiguously named "testsEnabled" property to "withPluginTests"
  and fix the wrong uses.
- Move AutotestRunner out of main project file and into tests.qbs.
- Move "withAutotests" property into qtc module. We cannot remove it
  from the main project file just yet, because some manual tests do not
  make use of QtcManualTest at the moment.
- Do not remove the autotests from the project tree if autotests are
  disabled. Instead, just disable the products.

Change-Id: I74a4cc717d9adbe53d37536b2565111e1617115b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 13:16:28 +00:00
Christian Kandeler
ef00a7e28b ProjectExplorer: Allow more entries in the MiniProjectTargetSelector
Make the maximum height dependent on the total window height, rather
than the height of the action bar.

Fixes: QTCREATORBUG-29580
Change-Id: Id2bd568febbb3e16cea05d9d54834a9c0b309ea1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-19 13:15:09 +00:00
Eike Ziller
ea47e6cbd7 OutputPane: Show "manage" menu as context menu for the buttons too
Simply makes sense.

Change-Id: I2f68b0bfdea66185c0c70d8e888fe0965276a7ab
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-19 13:12:38 +00:00
Eike Ziller
8a72318c97 OutputPane: Fix wrongly checked button with "Reset to Default"
We only want to set the button "checked" if the Output panes are
visible.

Amends b72f9dc8ef

Change-Id: Ia6fd461338086e141dac09ebf47de09c0635b28b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-19 13:12:22 +00:00
Marcus Tillmanns
768f12e033 Expected: Add upstream changes
Change-Id: I4fcf728200f50775c631c8a1399cd17643e3d519
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-19 12:47:50 +00:00
Christian Kandeler
7e43895e81 qbs build: Remove the group enumerating the qmake project files
The qmake build is gone.

Change-Id: If2c9948ab08201efb1696dc9ea6eea0e59e31412
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 12:44:33 +00:00
Christian Kandeler
2f80ef7f23 qtc-askpass: Quit after retrieving the password
Task-number: QTCREATORBUG-29619
Change-Id: Ib279ec43b7f67b8eac593d9e2f9800a65db024b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-19 12:44:12 +00:00
Henning Gruendl
da92e16a92 QmlDesigner: Add tooltip on elided pills
Change-Id: I4a40070b958a46e46009ba8f141fd5c286858ab7
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:43:34 +00:00
Brook Cronin
37c4937d6d QmlDesigner: Add new icons
* Add new icons
* Change position code editor button
* Add eliding to the code preview

Change-Id: Ib47b0e28ae9b4deebc7bace942f43d8249f46299
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:43:04 +00:00
Thomas Hartmann
0ef6c184c1 QmlProject: Add new options to cmakefiles.txt template
If the template was regernated (which is not the default), it
was missing features.

Change-Id: I446dd454127795e0e7edcb6669dc7025ce37be01
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:26:30 +00:00
Thomas Hartmann
096c825084 QmlJSCheck: Do not warn about visual properties in Connections
Change-Id: I1b8d9374021d337d87025290fd025dd600fc3967
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-09-19 12:25:44 +00:00
Thomas Hartmann
e156854fc3 QmlDesigner: One more missing qualification
Change-Id: I394e58b2cccdfbfcacd13ff2c5cefba8d4719ef4
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:24:47 +00:00
Cristian Adam
263b1e70ef Clang/LLVM: Update to version 17.0.0-rc4
Change-Id: Ica6c5db764db8c3b8105c168f9001d7de3c6c5c1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-19 11:41:22 +00:00
Marcus Tillmanns
5da1f14903 Core: Revert unintended change
Amends: e34762c844

Change-Id: I024b6ae5b65dffe45bacc1f44bba5e8ce41fe49d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 11:39:24 +00:00
Brook Cronin
f5e01b8b09 QmlDesigner: Fix Pill eliding logic
Change-Id: I573251001b2e77ff3f3fb0046615d65de814c21d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 11:25:10 +00:00
Miikka Heikkinen
5d7808f95b QmlDesigner: Don't show context on 2D view when editing 3D component
Fixes: QDS-10664
Change-Id: Ia4436b942ce79e0abe622adbba914903ab6a72bc
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>
2023-09-19 10:31:59 +00:00
Thomas Hartmann
f227dbf041 QmlDesigner: Fix appearance main toolbar
Using _q_custom_style_disabled had slight unwanted impact on appearance.
Introducing _q_custom_style_skipolish instead in studio style.
Using studio style whenever we are Qt Design Studio for all themes.

Change-Id: Iee460cfc0a62122b1aeb6d97746808658c4f3ebf
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-19 10:31:52 +00:00
Henning Gruendl
560b77d64b QmlDesigner: Fix Connections in ConnectionsEditor
Fix Implicitly defined onFoo properties in Connections are deprecated.

Change-Id: I0f2460dd4b69c070f4982ca0ec13b19cfda0342b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 10:20:37 +00:00
Christian Kandeler
d00d056b32 qbs build: Remove compatibility code for outdated qbs versions
Change-Id: I2667e0e76dbcf692a25a5d4d5f020ac90f0be478
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 09:56:39 +00:00
Christian Kandeler
621902d485 qbs build: Remove left-over "dev package" functionality
This is no longer relevant.

Change-Id: Ib9d851d69c5fc33d4808d883f6bec24fb3d1c4a7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 09:56:26 +00:00
Christian Kandeler
24f0732d3a qbs build: Do not set minimum OS versions
These requirements come from Qt these days; anything we specify here is
redundant at best.

Change-Id: Ib52d4e80d77cc05ea6d9baa4aa0c88cac2c1a132
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-19 09:56:07 +00:00