Commit Graph

74059 Commits

Author SHA1 Message Date
Christian Kandeler
0c60370f3e ClangCodeModel: Fix Qt header completion with clangd < 14
The problem is fixed upstream, but this must work now.

Fixes: QTCREATORBUG-26482
Change-Id: I3b2e863efec0edf7eaa74d73eb94705aa28723cf
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-11 13:15:11 +00:00
Thomas Hartmann
9d90715752 QmlDesigner: Refresh items if state is changed
We have to paint each item after a state change. This seems
to be a regression caused by the swtich to Qt 6.

Task-number: QDS-5462
Change-Id: I10a1e0e03c7e887c0998864f397fcbe429364ec7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-11-11 13:05:59 +00:00
Jarek Kobus
c9012704cc ApplicationLauncher: remove unused bringToForeground()
Surprisingly, it was also unimplemented.

Change-Id: I7845d321fd11c34cf70c944000657d9f782f0a5e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2021-11-11 12:22:29 +00:00
hjk
0781379345 Core: Use FilePaths in IVersionControl::additionalToolsPath()
Change-Id: I3c7d03b8695152f0830e809ce7a0709f48d8178b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-11 12:19:27 +00:00
Eike Ziller
164aae53d2 Merge remote-tracking branch 'origin/6.0'
Conflicts:
	src/libs/utils/theme/theme_mac.mm
	src/plugins/android/androiddeployqtstep.cpp
	src/plugins/debugger/lldb/lldbengine.cpp

Change-Id: I5f2c62e0bce6c91a53a554b3278dbe23ff7dde36
2021-11-11 13:04:42 +01:00
Thomas Hartmann
5cc183e0f7 StudioWelcome: Always initialize new project dialog
If the SplashScreen was disabled the new factory was not registered.

Change-Id: I3ab04510c33cb4ccfd2d85d3059ecafcc41fa654
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-11-11 11:32:27 +00:00
Tim Jenssen
2d1e4bcc5f qmldesigner: add ShowDebugSettings variable
also, enable it in debug mode always

Task-number: QDS-5461
Change-Id: I254bbcd081ee38b57e27bcb39ddb02506b1a2d4b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-11 11:12:36 +00:00
Samuel Ghinet
5d3b0f78e7 Fix: the wizards must use font icon constant names rather than codes
At every change made to the .ttf file, the unicode codes for the font
icons will change. Therefore, we can't use hardcoded unicode values for
the icons in QDS. We need to use constant names and translate those
names to unicode codes later, when passing to QML.

Change-Id: If032ae3defabc65319b4ebf5c1ed43c376eaea0a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-11 11:03:46 +00:00
Antti Määttä
4a510f7f6f Allow selecting particle system as root
Not allowing this causes selection problems.

Fixes: QDS-5371
Change-Id: I99d2591a3beb07e39413ba046f3f25e81f0cef50
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-11 10:27:08 +00:00
Leena Miettinen
c073810ba5 Doc: Describe options for running tests without deployment
Add screenshot of CTest options tab.

Task-number: QTCREATORBUG-26278
Change-Id: I5edc97f32724946486d04965323ee81180857e9d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-11 10:13:29 +00:00
Christian Kandeler
084dced9be ClangCodeModel: Provide signal/slot icons for clangd completions
Fixes: QTCREATORBUG-26555
Change-Id: I3b647f6fdbeed69bc453d64a69fb57731d92231e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-11 10:09:12 +00:00
hjk
aac740f127 Utils: Make Utils::is64BitWindowsBinary operate on FilePaths
Change-Id: I8ef840219bc93f77f5a55e38013facf892de759d
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-11-11 09:49:37 +00:00
Christian Kandeler
c97a144034 CppEditor: Move static variable to function
Following the principle of scope minimization.
Also, we got a reproducible crash-on-exit with MSVC with the original
code.

Change-Id: I465f4376fa7928de9bb878aee5faac992f75bf08
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-11 09:28:18 +00:00
Christian Kandeler
8d47a2f1e9 CppEditor: Add more logging to semantic highlighter
Change-Id: Ib862d0290700e4e3ed42e7359b3ac902d64ba650
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-11 09:27:49 +00:00
Christian Kandeler
af647841cf ClangCodeModel: Fix erroneous marking of lambda parameter
... as output argument when using clangd.

Change-Id: I35ef2da235cb317bb7eb1f08b865ea62c27d3b76
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-11 09:27:08 +00:00
Miikka Heikkinen
9ba2d2758a QmlDesigner: Adjust ComponentTextModifier offsets for whitespace change
Whitespace change can also occur inside the subcomponent code when
new nodes are added into subcomponent and the document is saved.
Changed the text change handling to adjust for whitespace changes both
before and inside the subcomponent code.

The new handling is simpler and doesn't require subcomponent to have
id to work. The downside is that non-whitespace changes before
subcomponent code are no longer adjusted for, but that was just a
hacky workaround for a small part of a much larger issue that needs
to be tackled properly anyway (i.e. supporting arbitrary
undo/redo/manual edits), so losing it is not a big deal.

Fixes: QDS-5362
Change-Id: I1ca1084baf78709727b1b4726b4c034558063401
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-11 08:52:22 +00:00
Miikka Heikkinen
dcf09bbf2c QmlDesigner: Use disabled color for disabled add module button
Fixes: QDS-5366
Change-Id: Ibfd761ad9c425c0a05a8668927121084dcfc5b64
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-11 08:51:51 +00:00
Miikka Heikkinen
305c91f42a QmlDesigner: Reset ComponentTextModifier when changing to doc model
A dangling ComponentTextModifier would still handle signals, so delete
it when it is no longer needed.

Change-Id: I67a70cf8b5e304a627ef92f9b4b8beecdd63cf0f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-11 08:51:35 +00:00
Leena Miettinen
b7bae45d12 Doc: Rename "Using Other Build Systems" to "Build Systems"
...now that qmake is not the default anymore, but you can choose
the build system when creating projects.

Change-Id: I52098059e1d32ba2c43c48af7df9dd4c2daff09e
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-11-11 08:09:51 +00:00
Cristian Adam
9d6b8727ee ClangCodeModel: Enable big object flags for building on Windows
Fixes problems with debug builds that link too many symbols into
the binary.

Change-Id: I6e95d6abd99a4f2a9a78764d8155a6e7b7fa8571
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-10 15:37:09 +00:00
Christian Stenger
730a1e6e42 StudioWelcome: Fix warnings regarding unused parameters
Change-Id: I56d0a9c18c963d1a505e8d40daa058f66d984d77
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-10 14:44:41 +00:00
Tim Jenssen
bf7cc1fa02 qmlpreview: enable language combobox
Change-Id: Ie1719d620608b94360a3831d138e1be25bae7b10
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-11-10 14:11:49 +00:00
Jarek Kobus
a3ae60d729 Uniform ApplicationLauncher API: get rid of finished()
Use existing processExited() signal instead.

Change-Id: I1eecaa05fa8b3a97d8585fca4ca89e8e1acecec3
Reviewed-by: hjk <hjk@qt.io>
2021-11-10 14:07:29 +00:00
David Schulz
d2ff57309b Client: make sure to reset project for client
Change-Id: I23860ee07c4f5793ce3247f46e8d925eae2b2bea
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-10 12:50:07 +00:00
Jarek Kobus
15edfc85cb Remove unused m_exitStatus member
Change-Id: Ice572b27964b4c9a3977091caa3224585bc08879
Reviewed-by: hjk <hjk@qt.io>
2021-11-10 12:47:41 +00:00
Jarek Kobus
94c70d1933 Uniform ApplicationLauncher API: get rid of reportError()
Use existing error() signal instead.
Implement errorString() and processError() in non-local case.

Change-Id: Ibdd6cec19ffa5efa0dad330515988da80e86e35b
Reviewed-by: hjk <hjk@qt.io>
2021-11-10 12:47:22 +00:00
Christian Stenger
335f85c525 StudioWelcome: Fix qmake build on Linux with Qt5
Change-Id: I88fea1b3730e22866e1f365a6e605c375f5320c7
Reviewed-by: hjk <hjk@qt.io>
v6.0.0-rc1
2021-11-10 11:59:05 +00:00
hjk
a8afa5c65c Debugger: Fix setting of Qt version fallback, again
Change-Id: I6b6cd448884800cb6d08dbdce15cb99f4ea8ba2b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-10 11:50:21 +00:00
Jarek Kobus
971b1b2269 Uniform ApplicationLauncher API: get rid of remoteProcessStarted()
Use existing processStarted() signal instead.
Replace isRemoteRunning() with isLocal().

Change-Id: I58d0204888116c00e793fa43f969707013db06eb
Reviewed-by: hjk <hjk@qt.io>
2021-11-10 11:38:48 +00:00
David Schulz
a0fba57508 LanguageClient: remove unused variable
Change-Id: I0910a0b75fe727c40c0249437895eb9d3566f7a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-10 10:41:08 +00:00
Alessandro Portale
f84f430caf Debugger: Set "PYTHONHOME" for Androids lldb as native path
The correct path separators in this case make the difference beween
breaking on a breakpoint or not.

Change-Id: Ia33682e559ffe172a571bec6b78b32fca14d98f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-11-10 10:30:00 +00:00
Christian Kandeler
02dbed75b4 ProjectExplorer: Take only changed toolchains into account
... when updating after the user pressed "Apply" in the compiler options
page.

Fixes: QTCREATORBUG-26460
Change-Id: Ibb7774547b36bf64a85a733b54d7927ff09df861
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-10 10:21:34 +00:00
Christian Stenger
4303e62c50 Dumper: Fix passing fallback Qt version
We nowadays have an additional token there.

Change-Id: I65e5a55792802ae2ab7da6f7c6d8d1b109bf55a0
Reviewed-by: hjk <hjk@qt.io>
2021-11-10 10:20:08 +00:00
Piotr Mikolajczyk
f45e68d28d Fix to qmlpreview failing to upload files
Return to correct function call order when preparing
and uploading data to the device.
(Manual pick from master)

Change-Id: I0a78b6614765bfae5c3accd99c1c150540871aac
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-10 09:51:14 +00:00
Alessandro Portale
96f60fa123 StudioWelcome: Fix build, add target QmlDesigner as condition
If QmlDesigner is not built, also StudioWelcome cannot, since it now
depends on QmlDesigner.

Amends: a850b1b866

Change-Id: I79edfbd0a3d6f922f7a7e03b64e02777b181b3bc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-10 09:39:25 +00:00
Christian Kandeler
397cbd77ab ClangCodeModel: Fix highlighting problem with template types
With clangd, we mis-detected variables of template types as output
parameters in certain contexts.

Change-Id: I906abd489f987351793f4ef676e4af59cdfdbf97
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-10 09:04:52 +00:00
Henning Gruendl
401219bb07 QmlDesigner: Fix SVG paste action
* Add support for line and polyline
* Convert "none" color value to "transparent"
* Fix group item if viewBox attribute not present

Change-Id: Iafef04e58114d0a9859e0c08a951f953228ed518
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-10 09:00:51 +00:00
Jarek Kobus
e3acfcbe60 Remove unneeded includes of ApplicationLauncher
Touching applicationlauncher.h caused recompilation of 455 files.
This reduces it now to 250 files.

Change-Id: I4f347d67695db40ea139faf7d36cfe02f1c32258
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-10 08:27:32 +00:00
David Schulz
d511f1798a LanguageClient: add logging to the manager
Change-Id: I953ffd8f281702c3032ce48cd620dcac983b5b25
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-11-10 08:18:50 +00:00
hjk
652b9844e6 Utils: FilePathify Environment::{ap,pre}pendOrSetPath etc
Change-Id: Idfa5ec247337570936b0236cab9d3a5669792ca0
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-11-10 07:26:31 +00:00
Christian Stenger
c8e4b32ee1 StudioWelcome: Fix build for qbs and qmake
Amends a850b1b866.

Change-Id: I80da98f264020ab803c711d1bdf2eeb691fa60af
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-10 07:09:01 +00:00
Samuel Ghinet
a850b1b866 Implement the New Project creation wizard for QDS
Task-number: QDS-4490
Change-Id: Ie8073e8838ec14a7f11ad972acc6fca4456adf58
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-09 18:21:22 +00:00
Jarek Kobus
d14e68eac2 Uniform ApplicationLauncher API: get rid of remoteStderr/out()
Use existing appendMessage() for this purpose either with
StdErrFormat for remoteStderr() or with StdOutFormat for remoteStdout().
In case when device process is used in ApplicationLauncher
no appendMessage() was emitted so far with StdErrFormat or StdOutFormat.

Change-Id: I2f6603aaf28113fea2a8bb6bd1738320cc39be75
Reviewed-by: hjk <hjk@qt.io>
2021-11-09 16:46:40 +00:00
Jarek Kobus
9739ded573 Uniform ApplicationLauncher API: get rid of reportProgress()
Use existing appendMessage() for this purpose with NormalMessageFormat.
In case when device process is used in ApplicationLauncher
no appendMessage() was emitted so far.

Change-Id: I96041ad19fe16066ea31d92f52253e0aa864f96d
Reviewed-by: hjk <hjk@qt.io>
2021-11-09 15:21:34 +00:00
Eike Ziller
e7d682e1b0 Update change log for 6.0
Change-Id: I3eb8f028ee9eef063101ac6938db7956333e9084
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-11-09 15:18:21 +00:00
Tuomo Pelkonen
5e5ff9fa0d Avoid QmlPuppet crash when translation database is locked
Task-number: QDS-5365
Change-Id: I0be2aaa4d64334273ce03f5bb692b8ed8597c266
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-09 14:39:25 +00:00
Leena Miettinen
05d74d000e Doc: Update information about Git Commit and Amend commit views
Describe the options in the views and add a screenshot.

Task-number: QTCREATORBUG-26278
Change-Id: I434af29f8486b7fa523cca151243a53019e92a42
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-11-09 14:24:08 +00:00
Henning Gruendl
047292cf46 QmlDesigner: Add translation font icons
Change-Id: Ie6ca22bd51997e8a0d9aadd73dd44935e824bb73
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-11-09 14:06:09 +00:00
Samuel Ghinet
7e035d9436 Fix warning when creating hidden wizards
QDS uses hidden wizards as backend for the New Project dialog.
When creating a hidden wizard we shouldn't add window support for it.

Change-Id: I28e8848f654f2fdee4e00a4906aa3d82b96ee786
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-09 13:57:04 +00:00
Assam Boudjelthia
072d658166 Android: fix missing argument in UI string
Change-Id: I9a02be25429b444704eb6864d59b2f4311ae75ea
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-11-09 13:33:46 +00:00