Commit Graph

76860 Commits

Author SHA1 Message Date
Artem Sokolovskii
e8f1d97a3b EditorSettings: Move Restore Global buttone
Change-Id: I58729f868a214e7ad15d4960e28d4b7bb0c3cf98
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-08 11:12:32 +00:00
Alessandro Portale
9f469cef11 Android: Don't show 2 issues per Android Qt if unconfigured SDK
Only call registerNewToolChains() and updateAutomaticKitList() if the
Android SDK is configured and the required environment for the mkspec/
qmake parsing is set.

Fixes: QTCREATORBUG-27805
Change-Id: I66eca659074afeea97a894cc418a95675e46ff1e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-08 10:40:55 +00:00
Assam Boudjelthia
f079479756 Android: Look for latest JDK version and not 1.8 specifically
Recent SDK Manager that is used by Qt Creator works with JDK 11+,
and JDK 11 is needed by Qt 5.15.7+, so look for the newest JDK
instead of 1.8 as currently being done.

Change-Id: I6ff415aa300d742735e8636b24a03116d5bfe2b6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-07-08 10:40:43 +00:00
David Schulz
d3a40b1d04 CodeAssist: Fix disapearing completion list after update
Change-Id: I3e35fe53a69e7806c0c8a5959ef8c16344aace8d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-07-08 10:19:23 +00:00
David Schulz
8170501502 Editor: visualize indent
Paint a horizontal line every indent size in the whitespace at the start
of each block.

Fixes: QTCREATORBUG-22756
Change-Id: I044ccb4adefa4c8c9a3a610f0e996a810487fa1e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2022-07-08 10:12:42 +00:00
Brook Cronin
574d4cb108 add material editor and browser to 3D essentials workspace
Change-Id: I32cab4ce1ffd0d7d42d442389652ce67ec2f4cfe
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 09:37:22 +00:00
Eike Ziller
173363b616 Meson: Fix settings saving
Amends c24291648b

Change-Id: I0f80e1483c0550d7ec3add0f9869eb96c758052b
Reviewed-by: hjk <hjk@qt.io>
2022-07-08 09:11:31 +00:00
Leena Miettinen
c4b02fab05 Doc: Fix path to Text Editor Preferences
The > character and spaces were missing.

Task-number: QTCREATORBUG-27560
Change-Id: I005a57eb6b5f95766d052fcdf7b7906b61e1388c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 09:06:34 +00:00
Eike Ziller
10163afae0 Merge remote-tracking branch 'origin/8.0'
Conflicts:
	share/qtcreator/translations/qtcreator_ja.ts

Change-Id: I436b8f60971f11a5fb7962a57600ad075135f397
2022-07-08 10:21:30 +02:00
hjk
5b2ae8bdd0 Translation: Remove duplicates in Japanese translations
Amends 290c86f55c.

These slipped through earlier as Qt 6 based lrelease was flagging
wrong messages as duplicates, leaving no good hint on the true ones.

Change-Id: Ic9d94cc35d588dca0e0b1f0c34e00c4a7ee4ceee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-08 08:19:26 +00:00
Christian Kandeler
1fb4737d0d ClangCodeModel: Move quickfix functionality to dedicated set of files
Change-Id: I7cc55afa7aa50ba584593457b6c1393794866c56
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:45:30 +00:00
Thomas Hartmann
ce6083992b QmlDesigner: Remove hex label
Change-Id: I9bb5ba47cdbc286544417b95cc9cf9c6ca3943cb
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-08 07:39:33 +00:00
hjk
14216fdf73 QDS: Doc fixes
Change-Id: I67f3c8477ace46c55499c73bf3a7eb1779c9f964
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-07-08 07:37:23 +00:00
Thomas Hartmann
6f0d2e6565 QmlDesigner: Add unusedProperty() as public member
Change-Id: If24e0d09145f0bb9e5459cae1b13302610818913
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 07:22:06 +00:00
Christian Stenger
674cca18a7 GitLab: Use IntegerAspect instead of QSpinBox
Change-Id: I06e9d907a6a65f8cf135031f0aed3cd3eca9281b
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:17 +00:00
Christian Stenger
ae1e006426 Utils: Allow programmatically change of IntegerAspect
Using setValue() on an IntegerAspect only had a visual effect
if it happened before adding it to a layout.
If the aspect had been added already the value silently got
changed (internally) but this was never reflected on the
respective SpinBox.

Change-Id: I60297d9d38835842b3b02a36787c0a2001477427
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:08 +00:00
Christian Stenger
fe07f7962c Squish: Move ownership of SquishTools into plugin
Change-Id: I9b5ed4ea37c2945642d644ec672f6e8cd2986c29
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 07:00:00 +00:00
Christian Stenger
eb22c0c615 Squish: Prepare handling of server settings
Change-Id: I3495eb82eb6c02901d4a05d40516c6088f9374dd
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 06:59:43 +00:00
Thomas Hartmann
8f141a8e26 QmlDesigner: Add instance to ConnectionView and make methods public
This allows to use the model from the property editor.
We do not implement the instance as singleton but use the View Manager.

Change-Id: I2d95235a31d4a776411336ef82ace0f230c9971f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-08 06:38:53 +00:00
Christian Stenger
bf0f2604c0 Squish: Extract functions for re-use
Change-Id: I3243619c8bb6a9ac6c4c9bfc6a438b23cc8bd37f
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 05:38:24 +00:00
Christian Stenger
abbc429395 QmlDesigner: Fix qbs build
Change-Id: I23c9a805742a493125afdaefa69051f0ce18d832
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-07-08 05:18:26 +00:00
David Schulz
7c79e18831 LanguageClient: cancel running semantic token request
... when we are about to send a new semantic token request.

Change-Id: Ibd421dd29bf3ea0e2b502c227341ff03259b2370
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-08 05:05:23 +00:00
David Schulz
457c88343f LSP: define a MessageId invalid if it contains an empty string
Change-Id: I90852b4f17a465d562cb402b46de5266aeba9b28
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-08 05:05:13 +00:00
Thomas Hartmann
99c8706a95 QmlDesigner: Remove QML_DECLARE_TYPE for QQmlPropertyMap
This is not required and can create issues, when including this
header file.

Change-Id: I2472ecf45c1c8f1faf0d44c8ee97cfbb4736c6c8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 19:26:00 +00:00
Thomas Hartmann
58e0d76a61 QmlDesigner: Make views in viewmanager public
The views can be accessed anyway via the model.

Change-Id: Id87d3f1bdf3e9ec84a68cfd3035a05f59b85fc7c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 19:06:02 +00:00
Marco Bubke
180bcbef8a Sqlite: Fix locking
Change-Id: I32a1435db21f6d891dd9bed4faada704aeaf43af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-07 17:50:55 +00:00
Marco Bubke
936ae86598 QmlDesigner: Add ImageCacheDispatchCollector
Instead of creating a new cache for every collector we now use a
collector dispatcher which is dispatching the request to different
collectors.

Tsk-number: QDS-7258
Change-Id: I024622d4b757e1ff10f7cab4204d1742ef5926da
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 17:50:06 +00:00
Marco Bubke
8fbd703974 Utils: Add endsWith to SmallStringView
Change-Id: Iea8286b46c28a68b26904e256b9f084c32c79909
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-07 17:49:34 +00:00
Marco Bubke
659dabd1a6 QmlDesigner: Fix unused warnings
Change-Id: Iacf067b772b7beda0e9cb27aa173115d4bcced38
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 17:48:48 +00:00
Marco Bubke
bcd9c2e8f2 QmlDesigner: Improve Has*TypeName interface
Instead of putting some strings into a list let the compiler to his
job and put it in a compile time tuple. This has the advantage too
that it can be of different types.

Change-Id: Ic4e7a9da8994d2a43ca115c1d69eab622c610437
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 17:48:35 +00:00
Marco Bubke
fe50af151d QmlDesigner: Simply property type name check
Move some repetitive pattern to PropertyMetaInfo

Change-Id: Iba8722d3d95881c1db85c12cbc2b2b8c4b629f2c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-07 17:48:23 +00:00
Thomas Hartmann
ee08375384 QmlDesigner: Export spacer and combobox as alias
Change-Id: I6fdd192974263df1d963b7847a2713c551783d2d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 17:13:33 +00:00
Thomas Hartmann
97afa4a91a QmlDesigner: Export spacer as alias
Change-Id: I9890d1533de8b3f27bb94c0bccb6d2ed52c21f8f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 17:07:41 +00:00
Jarek Kobus
c17214c53f ClangClient: Receive done() signal only once
Before this change the done() signal was emitted 3 times
in a row. The reason was that first one was coming
synchonously from handleGotoDefinitionResult(), while
2 others were scheluded with queued connections.
So, the handler for done() signal was called 3 times.
The first invocation calls deleteLater() and clears
the pointer, while the object is still alive.
Before the request to delete later gets dispatched,
the 2 remaining done() emissions are dispatched,
so the handler is still called 2 times.

One possible solution would be to disconnect from
done() signal inside a handler. However, the done()
signal shouldn't be called many times, so this fix
ensures the done() is emitted only once.

This fixes the following prinouts:
"QCoreApplication::postEvent: Unexpected null receiver"
issued twice on every follow symbol interaction.

Amends 650bc260c6

Change-Id: I9b440a80386aca3462eda323e51a76696e53fa6b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-07 15:28:03 +00:00
Christian Kandeler
6a6ea17a16 Update qbs submodule to HEAD of 1.23 branch
Change-Id: I801afa6044871db3f9689ee9277562e04096bfee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 15:07:38 +00:00
hjk
87dfe4725a Adjust coding style to C++17 nested namespaces
Change-Id: I34376108d77e0faeb6498cefedb563276f42fefa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 15:02:33 +00:00
Marco Bubke
9bd6bbb1f3 QmlDesigner: Don't use #pragma once in .cpp files
Change-Id: I0b8969ae489616416e5c9a426793b78cb3a77558
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-07 14:14:51 +00:00
Leena Miettinen
8d1fd930b1 Doc: Convert Qt Widgets tutorial to use CMake as build system
- Describe adding resource file to CMakeLists.txt
- Update screenshots

Fixes: QTCREATORBUG-26686
Change-Id: I2b06a9753ee73b736982923e3b2a5bb6b4dd8861
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-07-07 14:13:53 +00:00
Christian Stenger
b9ceefe918 Core: Fix build with Qt5
Amends 5b683c53c3.

Change-Id: I80b8b6d1b508e42f81e022fee19117285a4c9687
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-07-07 14:07:09 +00:00
Eike Ziller
c857644c14 Bump version to 8.0.0
Change-Id: Ibf884cf0128e6e24e09c0b04e20a4a8ba26313d7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 13:26:34 +00:00
Marcus Tillmanns
6003fe9b36 docker: Fix StringAspect default value handling
The StringAspect needs to return a possible default value if
no value was set by the user. Otherwise it would write an
empty string when ::apply was called.

Also a small improvement for docker error logging is added

Change-Id: I85f80253894d2c3e726da714616e5275039febcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-07 13:09:02 +00:00
Cristian Adam
5b683c53c3 Change log browser: Use the markdown renderer for the .md files
Change-Id: I8a419b746b4b88a89ea77de8bd160acebd595655
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 12:52:11 +00:00
Marco Bubke
f26379c850 QmlDesigner: Fix property string order
Change-Id: Ib205c96eaf926f1b4852e11748f0e632ef613aeb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-07 12:44:52 +00:00
Thomas Hartmann
e45ab20bef QmlDesigner: Sort names of views in menu
Change-Id: I24f260ad74c0df5ccc979fa3c21c6edba8eff9fc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-07 12:36:36 +00:00
Marcus Tillmanns
06be8a4325 lldb: Fix type inspection for QMetaType template types
lldb's FindFirstType() expects template types to have specific
whitespaces set. QMetaType's "name" parameter does not contain
the necessary whitespaces.

This solves that by changing e.g.: "T<A,B<C,D>>"" to "T<A, B<C, D> >".

Change-Id: I7505db96b01d433408af1942cd81e50094833c06
Reviewed-by: hjk <hjk@qt.io>
2022-07-07 12:21:38 +00:00
Eike Ziller
b33a1c62ed CPlusPlus tools: Fix build with Qt 5
error: reference to type 'CPlusPlus::ClassOrNamespace *const'
could not bind to an lvalue of type
'const CPlusPlus::ClassOrNamespace *'
    if (interfaces.contains(u)) {

Amends f7097cef19

Fixes: QTCREATORBUG-27806
Change-Id: Ia5c27260f71bf35c87352545fff42dcaef1f2649
Reviewed-by: hjk <hjk@qt.io>
2022-07-07 12:21:21 +00:00
Eike Ziller
f950a5d86c Merge remote-tracking branch 'origin/8.0'
Conflicts:
	src/libs/utils/terminalprocess.cpp
	tests/auto/qml/qmldesigner/coretests/CMakeLists.txt

Change-Id: Ifc5b37dadd46af752f0771a2685da1ac9a6260bd
2022-07-07 13:47:12 +02:00
Christian Kandeler
fae3ba1a1b RemoteLinux: Switch default value for "clean install root"
... in MakeInstallStep.

Fixes: QTCREATORBUG-27724
Change-Id: I5999ace2a9653c103b9b974bc9e58bdfdfa4f780
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 11:40:42 +00:00
Alessandro Portale
777ae87779 Android: Update devices list after creating an AVD
Ensure that a freshly created AVD is properly listed and is usable. By
forcing a AndroidDeviceManager::updateAvdsList() after successful
creation.

Fixes: QTCREATORBUG-27804
Change-Id: I1ef0fb23d2c13b99d285f07505189f37929f4ed7
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-07-07 10:33:47 +00:00
Cristian Adam
9b8fd63cd0 GitHub Actions: (re) Enable running of tests
The precheck tests have only a few cases which should not block the
runners anymore.

Change-Id: I00bea0d208aa646dbdb4c146f46fdb853bc8aa5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-07 09:32:02 +00:00