Commit Graph

76686 Commits

Author SHA1 Message Date
Eike Ziller
8e0bc89e64 Mimetypes v3: Fix build with Qt 5
Change-Id: I871952c5c4ed97d04bd7acdb9f4af225f1550b69
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:47:14 +00:00
Eike Ziller
d8be61343a Mimetypes v3: Add dummies for API that was added for Qt Creator
Change-Id: I6216f3f109893bb40ffa06bc0de10965fa7904e2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:47:07 +00:00
David Schulz
98a9dcfeea LanguageClient: show snippets only completion proposals again
This reverts commit 5f1e6b15bf.

We already prevent inserting snippets in some unwanted contexts in
ClangdCompletionAssistProvider::createProcessor.

Fixes: QTCREATORBUG-27051
Change-Id: I292d2816b366df6f0d0b070b7d732c199742fc7e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-23 13:47:03 +00:00
Eike Ziller
f8d7542fe6 Mimetypes v3: Add static wrappers for MimeDatabase
Avoids "MimeDatabase db; db...." everywhere in user code.

Add overload for FilePath.

Change-Id: I68d07f20159d970cd5ee2eab995bab46ef0da669
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:46:54 +00:00
Eike Ziller
f112fd0572 Mimetypes v3: Rename classes
- fix includes
- use pragma once
- use namespace Utils
- rename QMime -> Mime
- fix exports
- don't use QFileSystemEntry
- don't use QT_REQUIRE_CONFIG
- disable QT_CONFIG(mimetype_database)

Change-Id: I3e27b7644a9db987ad213efada3b0d8c7199cfd9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:46:42 +00:00
Eike Ziller
88d892c13a Mimetypes v3: Rename files qmime... -> mime...
Change-Id: I0e36b52124295d07c3ca2d16aa4593dbde3a888d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:46:37 +00:00
Eike Ziller
e2ccf20c66 Mimetypes v3: Copy version from Qt 6.3
State from qtbase/67b2eb8b302c19c9b3a80028e20141bde9aef01a
from 6.3 branch

Change-Id: If1be497af3907f31f1388e9db42150cf9ae60d66
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 13:46:23 +00:00
Maximilian Goldstein
05d34a7e1a tracing/MainView: Fix broken MouseArea signal handler
onCancelled tries to trigger the signal pressed() which is shadowed
by the property of the same name. Properly handled this by moving
the onPressed handler into its own function.

Change-Id: I8ed966e256acdd8dc76d9ee5b244682217323a0d
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-02-23 13:11:53 +00:00
Mahmoud Badri
ed21e25e14 CrashPad: Remove the 1 crash per hour limitation
Change-Id: Ie7634012f15059fd204cb03e37afd3d63d7bfb29
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-23 13:00:59 +00:00
Thomas Hartmann
a62aef2438 QmlDesigner: Set proper size if there is no project import
Change-Id: I29d8dbbac49c694439a600cfe393c6a475362714
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-23 12:39:49 +00:00
David Schulz
22dda4f8a5 ProjectExplorer: only use local files for size comparison
Change-Id: Ifbf218d4e459462ec6a115e69a5f3688642fddda
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-02-23 12:15:29 +00:00
Leena Miettinen
6e366c0823 Doc: Replace "New File or Project" with "New Project" or "New File"
We missed the .qdocinc files.
Update the screenshot.

Task-number: QTCREATORBUG-26610
Change-Id: Ic5a86c94e995a209c2139976ed645b7f71556b37
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-23 11:56:50 +00:00
Christian Kandeler
cf90264971 ClangCodeModel: Fix more false output arguments with clangd
For some reason, we never checked the actual matching AST node for
const-ness.

Change-Id: Icb58ba169d82e1ec02c9ff8d17f0170f0a78f99d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-23 10:54:32 +00:00
Christian Kandeler
7b82b55b73 ClangCodeModel: Don't highlight streaming operator args as outputs
... with clangd.
As with operator++ etc, it's immediately obvious to a developer which
arguments are modified.

Change-Id: Ia2b15d5eef7848b7ed284f8d544f039fe2927292
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-23 10:53:52 +00:00
Mahmoud Badri
08d1f30d4a QmlDesigner: Clear assets search when adding assets
Fixes: QDS-6195
Change-Id: I80c078d3b182bfa76980191bd875d76cb5683854
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-23 10:32:12 +00:00
hjk
4af9842a51 Docker: Remove local file access
I gave up on the idea, and even leaving the dead code in only
complicates the codebase.

Change-Id: If144c69adc8e9aa9b2c88050909e7a20b7218f18
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-23 10:29:02 +00:00
Christian Stenger
4d7c2ae54e Nanotrace: Fix compile on Linux
When using older compilers with Qt5.15.

Change-Id: Ib3d05efaa22b22af202fec8940f774af0029ca24
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2022-02-23 10:10:29 +00:00
Mats Honkamaa
527074c7bd Doc: Update welcome screen documentation
Updated screen shots and examples instructions.

Task-number: QDS-6214
Change-Id: I0d35dd5efa034dc5e5d3ec7746a61a688ac88d5a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-02-23 10:07:05 +00:00
Christian Stenger
21f1c1a5e4 Update qlitehtml to latest master
Change-Id: I22fe7e28a0d2ba4848585ec62e1ac3ec904aaff9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-02-23 09:34:47 +00:00
Jarek Kobus
f1e0ca643e Protect the access to IDevice::sshParameters()
May be called in non-gui threads while it may be
changed from settings widget at the same time.

Change-Id: I2897fc2e54336b9043213411cb620896bbecde86
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-02-23 09:10:13 +00:00
Alessandro Portale
477ebd3b61 Android: Fix crash on exit
m_adbDeviceWatcherProcess can be 0 if Android is not set up.

Amends: c43ba1ae32

Change-Id: I90aef197c098f279a6bd3adb0485df74b8be1961
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v7.0.0-beta2
2022-02-23 09:03:16 +00:00
Christian Stenger
3efec2b887 Tests: Add build files for qml-ast2dot
Change-Id: I5d439be4442ab5c41935534b93ebc9d6868cb880
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-23 08:44:36 +00:00
Alessandro Portale
cc139b768f Utils: Cleanup logging to qtc.utils.qtcprocess + elapsed time
Always write the process number on the same column of "started" and
"finished" line, for easier reading.
Do not quote the command line.
Write out only count of bytes for stderr (like for stdout).
Add extra logging categories qtc.utils.qtcprocess.stout and *.stderr for
verbose outpout.

Add the elapsed time in ms to the "finished" line.

Change-Id: I493279c1b4cdaf8f4c292df4777befc7f6c50753
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-02-23 08:35:45 +00:00
Eike Ziller
629ecc4f34 Mimetypes: Remove unused API and move one function to DocumentManager
Change-Id: I97b104a75c91ce6dc4a05146b3e10c1b674f3ff0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-23 08:32:33 +00:00
Leena Miettinen
b0a7fe31c0 Doc: Update Options > Environment > System screenshot
- Mention "Auto-save files after refactoring" in Opening Files.
- Include the screenshot in Specifying Environment Settings.

Task-number: QTCREATORBUG-26610
Change-Id: I05eaf85244ba1f1acf870bbcd37ba81f616b17a4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-02-23 07:48:58 +00:00
David Schulz
505358cb82 LanguageClient: support sorting outline combo box items
Fixes: QTCREATORBUG-26976
Change-Id: I6ec31072629c62a007bc27381f4adba597307057
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-23 06:54:33 +00:00
David Schulz
46a012bc11 LanguageClient: support sorting outline widget items
Change-Id: Idbe10ef1117aa2a62dd97aeff56da9978f9baa6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-23 06:54:28 +00:00
David Schulz
b97204ebb6 LanguageClient: select innermost outline widget item
Reuse the code that selects the innermost item in the outline combobox
also in the widget so the behavior is consistent.

Change-Id: I8a4758296d2d44294e2b1e11b6bb18acca2c7e32
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-02-23 06:21:02 +00:00
Assam Boudjelthia
c43ba1ae32 Monitor Android devices in non-polling method
Use ADB's track-devices command to watch for device
events which would replace the current polling method
with a timer. For AVDs, a QFileSystemWatcher is used
to watch for changes in the AVDs home folder which
would allow updating the AVDs only when a change is done
like edition, deletion, start, stop, even from outside
Qt Creator.

This method would also make device updates faster,
instead of unexpected waits due to timer use.

Task-number: QTCREATORBUG-23991
Change-Id: I08a92252c99c02bc111e597d671f2350817458c7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-02-22 21:21:53 +00:00
Jarek Kobus
fd7bf831ba Introduce processImplHook
Call new hook from inside QtcProcess::start().
This hook calls new virtual method
IDevice::createProcessInterface().
That's all what should be needed from device
to setup properly device specific process.

Make QtcProcess::createProcessInterface() private now.

Change-Id: I2136698063bafc846ebc2d3db6cc11376902eff0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-02-22 17:28:31 +00:00
Thomas Hartmann
d8b5d2b7a5 StudioWelcome: Download examples to home on macOS
Task-number: QDS-6305
Change-Id: I7e80ec6a8d5d79b75412fee975efaedd92e048d0
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-22 17:10:19 +00:00
Tapani Mattila
7dd05f8937 CMake project converter: Automatically open new project after creating it
Task-number: QDS-6249
Change-Id: I5ba1a396c7812a6aa736751fd0e7d7155d2de2d8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-22 17:08:11 +00:00
Thomas Hartmann
12f690b8a9 QmlDesigner: Remove DesignerActionManagerView::instancePropertyChanged
This can be pontentially very expensive and the notifier should not be
required.

Change-Id: Idf1096fb69efb08196b192596353bf544783d23c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-22 17:03:44 +00:00
Thomas Hartmann
dfd9d4804e QmlDesigner: Track if QDS was opened from QtC
Task-number: QDS-6315
Change-Id: I4109e9c98ff5c27b4096b1af32ae945aec10c123
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-22 16:59:38 +00:00
Thomas Hartmann
c1c0dab2a9 Move dynamiclicensecheck.h to QmlDesigner
Change-Id: Ic49a18a6ed164d3878e69d157edd83773c93959c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-22 16:50:03 +00:00
Henning Gruendl
872a93447b QmlDesigner: Update import version wizard qml.tpl
Change-Id: Ie1cdc6bd18cec1f6e0d1492033f43c23717d68a9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-02-22 16:47:13 +00:00
Thomas Hartmann
d913f5d886 QmlDesigner: Add comment to .ui.qml files
Add comment to the beginning of .ui.qml files that explains that
.ui.qml files are declarative.

Task-number: QDS-5964
Change-Id: Ie49bae33fb18ee42d4ab20986b72c2deadd5b734
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-22 16:11:11 +00:00
Thomas Hartmann
456a949244 QmlDesigner: Add comment to all .ui.qml files in wizards
Add comment to the beginning of .ui.qml files that explains that
.ui.qml files are declarative.

Task-number: QDS-5964
Change-Id: I040443b42a0e2907452d5b6d9d056746d3b75ff3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-22 16:09:30 +00:00
Thomas Hartmann
a998790c74 QmlDesigner: Center on item on initialize
Change-Id: Ib68c2b1a651497f9092d390b1a5b3a59c85d21ce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-22 15:34:22 +00:00
Thomas Hartmann
78f77f4ef4 QmlDesigner: Do not mark document as dirty if zoom changes
Change-Id: I85824f695a77d107dfa1f6c8d7d3a8dbeb6bae43
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-02-22 15:34:11 +00:00
Thomas Hartmann
4cc94375d8 QmlDesigner: Rename custom className property to classNamePrivateInternal
This property is used for the class name, but "className" could be also
used by the actual application.

Task-number: QDS-6309
Change-Id: I752fafbcae434a8b2b96646e2473b6fedd93a160
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-02-22 15:26:19 +00:00
Henning Gruendl
e714b04242 QmlDesigner: Fix shift in component type TextField
Change-Id: I5dc4f7b0887405082456b511b57598e3e6e38ec0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-22 14:08:19 +00:00
Christiaan Janssen
7d9bb3f7e8 McuSupport: refactor McuPackage
rename 'type' to 'toolChainType' in McuToolChainPackage
'addToPath' and 'relativePath' set in McuPackage constructor
put McuToolChainPackage methods together in same source file
'detectionPath' type changed from QString to FilePath
renamed boolean getters

Task-number: QTCREATORBUG-26897
Change-Id: If59c299901a169d08efa8f39614ef7c6d48d44ed
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-22 13:48:54 +00:00
Andre Hartmann
d979bd8da9 DocumentContentCompletion: Work with non-ASCII words
Fixes: QTCREATORBUG-26165
Change-Id: I9a72d36cf64accc32f71dfd5627302960558c69c
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-02-22 13:17:19 +00:00
Christian Stenger
ec80ae2322 Tests: Fix dumper execution on macOS
macOS may print warnings on stderr when running qmake which
in turn stops the test before starting to build.

Change-Id: I01750e984916b3e16f5d5737e44cd5a2c6e0433b
Reviewed-by: hjk <hjk@qt.io>
2022-02-22 13:14:17 +00:00
David Schulz
d73fbbcb97 LanguageClient: send exit notification after failed shutdown
Despite receiving an error in the shutdown response continue to exit the
server. Otherwise we end up with an unusable client.

Change-Id: Iacff38699cb4e5bcc5610eba1654047bf7f8ce80
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-22 13:12:44 +00:00
Eike Ziller
8259df00d0 Merge remote-tracking branch 'origin/7.0'
Conflicts:
	src/plugins/mcusupport/mcupackage.cpp
	src/plugins/mcusupport/mcusupportoptions.cpp
	src/plugins/mcusupport/mcusupportoptions.h
	src/plugins/mcusupport/mcusupportoptionspage.cpp
	src/plugins/mcusupport/mcusupportplugin.cpp
	src/plugins/mcusupport/mcusupportsdk.cpp

Change-Id: Ib423e9f23877176f01b188104b0a179ed32c4770
2022-02-22 14:06:41 +01:00
Thomas Hartmann
7e3585a64e QmlDesigner: Introduce dependencies for imports
QtQuick3D is added as a prefix dependency.
This means that if any import, that starts with QtQuick3D
is added we add QtQuick3D first.

Task-number: QDS-6199
Change-Id: Ic105bf0fb53a7beaa80be69f99e6bc55edd140c1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-02-22 13:01:05 +00:00
Henning Gruendl
08668e71da QmlDesigner: Disable fill type outside base state
Disable fill type ComboBox in ColorEditor when not in base state. Add
tool tip to make user aware.

Task-number: QDS-6184
Change-Id: Iee5644fff16fe93f2090e1cb117e96bb436fe1dd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-22 12:22:13 +00:00
David Schulz
05e102fbac LanguageClient: forcefully delete client after timeout
If the client does not react within 20 seconds on the shutdown or exit
message delete the client.

Task-number: QTCREATORBUG-27064
Change-Id: I9680242e471989ea820c4e28d28c500c27a20bb7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-02-22 12:17:08 +00:00