Commit Graph

80147 Commits

Author SHA1 Message Date
hjk
da7383387d Clangtools: More FilePath
Change-Id: I82057f1a9788043ee45a268ae57847caf6c994f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-09 10:00:45 +00:00
hjk
9ad60cd891 ClangTools: Use FilePath in AnalyzeUnit
Change-Id: Ic8e19053a60e7c4d801f32f9048b7c48d00b2a3d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-09 09:57:24 +00:00
Robert Loehning
15841807d5 SquishTests: Update createNewQtQuickApplication()
Change-Id: I4b5171b73e69d3b9d4b3acb1108df363220b6068
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-09 09:48:56 +00:00
Knut Petter Svendsen
4b9a60614c Utils: explicit constructor for QtcProcess
The constructor for CommandResult takes a reference to QtcProcess.
If by mistake a pointer was used this results in constructing a new
QtcProcess and using the copy as input for CommandResult.

With explicit constructor we will get a compiler error.

Change-Id: Ib3a61b9164bd7d5dfb0f567c2d03f16b7d12f2c2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-09 09:25:19 +00:00
Alessandro Portale
98b1fcb7b3 Translations: Use QCoreApplication::translate() instead of tr()
QCoreApplication::translate() takes a context parameter, tr() does not.
We want the first one.

Amends: 48affa1889

Change-Id: Ibca327a39097dfcdb81a30e561161d3275c61d1d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-09 09:05:43 +00:00
Christian Kandeler
a811afaeab CppEditor: Render forward decls less prominently in outline
Fixes: QTCREATORBUG-312
Change-Id: I9bb77add24737881eeee008620941b55118ee0e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-09 08:59:25 +00:00
Jarek Kobus
86a14c8b27 ClangGlobalSymbolFilter: Avoid downcasting to WorkspaceLocatorFilter
Store a pointer to WorkspaceLocatorFilter instead of base
ILocatorFilter and avoid later downcast to WorkspaceLocatorFilter.

Change-Id: I729f60356b287f3b4bddf016e21761a372993928
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-09 08:53:44 +00:00
Henning Gruendl
1b2328f4a7 QmlDesigner: Apply new theme on navigatior toolbar
Change-Id: I1e2448a2d8eea1bd3badf27ee02913d8470851c6
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-09 08:40:47 +00:00
Marcus Tillmanns
86750c5772 Utils: Don't check fileAccess before adding Devices
While a device is being added it may not yet have a fileAccess.

Change-Id: Ifa37911e4ba95c15b7462e6d63ae1929a99901a3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-09 08:05:15 +00:00
Jarek Kobus
78ae704d77 Utils: Enable internal documentation
Change-Id: I8531f7a85c8bee32a207f477e7ee9d3d9f14107c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-09 07:37:45 +00:00
hjk
b59e632ac3 ExtensionSystem: Another way to have plugin tests
This makes it possible to have plugin tests defined in the
plugin pimpl, like a lot of the other stuff we currently
have there. This is meant to replace IPlugin::createTestObjects.

The basic idea is to reduce the number of ways things can
or have to be done when creating plugins.

Change-Id: I137c66b91cdf461a502cf22063b6f63e6163e876
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-09 07:16:46 +00:00
Jarek Kobus
a01261d798 ClearCasePlugin: Fix runCleartoolProc
Don't pass pointer to QtcProcess into CommandResult c'tor.
Pass reference instead.

Amends 0b7ee32202

Change-Id: Icc779e6901faa2212609d52fad4bccbf7126a5c7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-08 21:16:31 +00:00
hjk
40b295cbab Utils: Move some translated strings from .h to .cpp
Default values shouldn't have complex initializations anyway,
these end up in each instance on user side.

Change-Id: I81394c3df353b34b19454130f58bd646318feccd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 19:36:07 +00:00
Thomas Hartmann
84d3fdc753 QmlDesigner: Set object names on QQuickViews
Change-Id: Icf2af2967a89b62e3328f7d523b8fc46f580314e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-08 17:48:05 +00:00
Cristian Adam
a6ccfb09e5 CMakePM: Copy auto package-manager to ${buildDir}/.qtc/ directory
By copying the ${IDE:ResourcePath}/package-manager to
${buildDir}/.qtc/ the problem with hardcoding paths
to old an Qt Creator version can no longer occur.

This also fixes the issue with remote projects by reffering
to the code residing on the host.

With the above issues fixed, enable "Package manager auto setup"
by default.

Change-Id: Ia49654a3b9059f83886e64d065019b2d55e9299c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-08 16:17:49 +00:00
Tim Jenssen
f766c2f5dc qmlprojectmanager: fix Cannot run Qt5 projects
qml2puppet only enables the qmlruntime feature if it
was built against a Qt 6.

Task-number: QDS-9088
Change-Id: If573cae305ef18c11101a591e6c1e38f133b7914
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-02-08 15:52:12 +00:00
Burak Hancerli
5ac46d46ba QmlProjectManager: Disable Cmake Generation for Qt4MCU
Task-number: QDS-7442
Change-Id: Ifc2239d5be7489e0fd7c5a778e5653d4266c0393
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-02-08 15:46:37 +00:00
Christian Stenger
f5bd330277 Qbs: Update some qbs files
List respective tr files and while at it shuffle some
of the listed files to match common sort order.

Change-Id: I73845ad1dae5e8c86d3741067f40b7b2b37e2a6e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-08 14:37:03 +00:00
Alessandro Portale
7cb309a2db Coco: Tr::tr()
Change-Id: I130fbc62eb839548a7667aace8287be3e6ef6254
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 14:22:54 +00:00
Knut Petter Svendsen
dbe411ca4c GenericProjectManager: Fix outdated comment
Change-Id: I9295380515c64da90a23f4fd95eae67273924d19
Reviewed-by: hjk <hjk@qt.io>
2023-02-08 13:51:36 +00:00
hjk
3f8240a7de TextEditor: Some fileName -> filePath renaming
Change-Id: Id0751f936666fa658226d62a1906b82e3bac1660
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-08 13:48:30 +00:00
hjk
a7bf65c288 Bookmarks: Use more FilePath
Change-Id: I8d4337f9dccaf26b37583eb87f364c9d995f94fd
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-08 13:48:17 +00:00
Alessandro Portale
a86299d573 Squish: Tr::tr()
Change-Id: I04d8d7c68c6b40e63e8e3de6690df8a051ef625f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 13:12:34 +00:00
Alessandro Portale
dbf017c11e Marketplace: Tr::tr()
Change-Id: Idbba28fd3057d634b5c5fb56f405c33d13d35332
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 13:12:26 +00:00
Alessandro Portale
74bf8fd5f7 GitLab: Tr::tr()
Change-Id: I1f51fbada9d18b6e6e2dae90801de472b3e086d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 13:12:18 +00:00
Christian Kandeler
bd2ca236e1 CPlusPlus: Check maximum include depth in lexer
We use a value of 200, which is also GCC's default.

Fixes: QTCREATORBUG-28770
Change-Id: Id02b324cd2ffa81a709441a5d93856bcd06501c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 12:53:31 +00:00
Christian Stenger
06b579a75b McuSupport: Fix handling of FilePath
..when expanding variables and macros.
Fixes the plugin unit test on Windows.

Fixes: QTCREATORBUG-28744
Change-Id: I8a047854d6d43e901b01b10660e29b7d6544d0b7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 12:21:40 +00:00
Leena Miettinen
ac252c2d49 Doc: Make the locator more visible in the other parts of the docs
Change-Id: Icdefa64f5874f14c6a9c6a24e4d73837c12b457f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 12:12:26 +00:00
hjk
85bed557f3 Utils: Use more FilePath in TerminalCommand
Change-Id: Ide9a09f61f3b2c10378d90a4a907e1e37d7407df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-08 11:59:09 +00:00
Fabian Kosmale
49561eaeb8 qtquickapplication wizard: Adapt to CMake API change
During API review, it was decided (and implemented) that REQUIRES is the
better/more descriptive keyword than MIN_VERSION.

Change Creator's wizard accordingly.

Change-Id: I831cdc956204b1e379c3815104698d3f881abf6c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 11:58:22 +00:00
Eike Ziller
075f39e543 CMake: Fix editing of CMAKE_PREFIX_PATH
When editing e.g. CMAKE_PREFIX_PATH in the initial configuration
settings it was resolving the path(s) in there, thinking that it was
relative to the project directory.

Fix that after editing the resolved file path was set as the new value,
instead of the raw unexpanded data.

Fixes: QTCREATORBUG-28779
Change-Id: I14d097e3a3a51b78006dd30a67b08477cfe0f2d8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-08 11:39:21 +00:00
Alessandro Portale
997655e669 ClangFormat: Fix build
Change-Id: I6197429ddd0aa10631d1ecbecd25154045a7004f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 11:33:17 +00:00
hjk
239f79fbec CMake: Use FilePath functionality to extract qml module files
Shorter and remote-capable.

Change-Id: If6b3a419eb78da2c2763bc45f4d1e33be7dbed17
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-08 11:22:57 +00:00
Alessandro Portale
389b9503d7 ClangFormat: Tr::tr()
Change-Id: Iabbe39bfdd3ae24d65610a00d792e16591a1b6ee
Reviewed-by: hjk <hjk@qt.io>
2023-02-08 11:09:12 +00:00
Alessandro Portale
48affa1889 Translations: Remove header includes of *tr.h in .h files
The wrong Tr::tr could be executed by code indirectly including a *tr.h
file from another module.
To Translate in a header file, use QCoreApplication::tr().

Change-Id: I30e67245991d2c2f0eeb01ab356555bdb9841af0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 11:08:48 +00:00
Ulf Hermann
ccbee9bf42 qmldir parser: Handle internal types with versions
There is no reason why internal types cannot have versions.

Fixes: QTCREATORBUG-28755
Change-Id: I419f2e052634b603dfc5b2bfff155167cf6f9304
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 09:50:00 +00:00
hjk
37488c69b8 Utils: Remove 4.8 compatibility code for reading terminal settings
4.8 was released end of 2018 and the setting is not critical.

Change-Id: I02856e98303debd3a1adc28d49b28c5d728ad553
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-08 09:25:59 +00:00
hjk
0bd52ea275 ADS: Fix SPDX-License-Identifier in advanceddockingsystemtr.h
Align with the rest.

Change-Id: I48ac1cae738b909d90fd123128c1959f3635278e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 08:58:38 +00:00
Alessandro Portale
4d8a18c07d ProjectExplorer: Fix build
Change-Id: I0f74162cf52173b26e06082ace4b55e68e18ea49
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-08 08:43:30 +00:00
Marco Bubke
ff3d4b44f1 QmlDesigner: Use Qt6_VERSION instead of Qt5_VERSION
Change-Id: I346f5d256468696076299f964022c0a2ec2d190d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 08:42:47 +00:00
David Schulz
c651a1e290 ClangTools: remove arrow from analyze current file button
This is now in line with the other menu buttons in the editor toolbar
like the language client button or the python interpreter and repl
buttons.

Change-Id: If22d3e9c87274eee2fefe8e30f6b0648be5d60c9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-08 08:40:35 +00:00
Alessandro Portale
9db70d8810 Translations: Fix stray QApplication::translate() calls
For references to the module-own context, use Tr::tr().
For references to other modules, use the right context name (with "::"
prefix).

Change-Id: I6dce8f1ceccb23c44d93f1826402cd3be8e98e5a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 08:32:42 +00:00
Alessandro Portale
2356f28647 Translations: Add missing "::" prefixes to QT_TRANSLATE_NOOP
Change-Id: I7589a2d4003394e38e58c095b510f8eff33263b8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-08 08:32:31 +00:00
hjk
8a8b50e8b5 ProjectExplorer: Proliferate Utils::FilePath use
Move the .toString() uses into  DeploymentData::addFilesFromDeploymentFile

Change-Id: Ic9ef22da1918ca105c92f0231960dab27b0d80bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-08 08:21:29 +00:00
Eike Ziller
5728f09fac Editors: Fix message box when opening broken code style file
The file name is not supposed to be the button label.

Fixes: QTCREATORBUG-28746
Change-Id: I45ee2a860da8f7ffefc6d72c0d85b7f6a261489c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-08 08:06:02 +00:00
hjk
432d918329 TextEditor: Use FilePath in Command
Change-Id: I0916204eefb49713f241dd43da662f258f8c99f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-08 07:34:30 +00:00
Eike Ziller
012a2a6cd8 Fix build on Windows / MSVC 2019
Change-Id: I265cd316426c76c76bfe18a62a9e5f35fbca3da9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 07:28:59 +00:00
Orgad Shaneh
f94b41313b Utils: Fix MSVC size_t -> int warning
Change-Id: I2732f7b9ad3c7ae96d2d213822f05f37dfcac0aa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-08 06:46:30 +00:00
Marco Bubke
d2bb27731d QmlDesigner: Add direct dependency on QmlDomPrivate
It adds an indirect dipendency to QmlCompilerPrivate too. We stick to Qt
6.5 because the private API changed.

Task-number: QDS-9049
Change-Id: Icb0b406fc47759763384e167c0cabbffc1c9e186
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-07 17:43:57 +00:00
Marco Bubke
befb49bbce QmlDesigner: Fix missing adaption
Change-Id: I307c9f236ee8ebd36d62b3fe9b0d4bbaea5699e8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-07 17:43:43 +00:00