Commit Graph

81484 Commits

Author SHA1 Message Date
Christian Kandeler
ba3299f0d2 ProjectExplorer: Do not treat a starting run control as finished
... when assigning tabs in the app output pane.

Task-number: QTCREATORBUG-29044
Change-Id: I49e3d3ac3822692ffacd9821a0dd61377aae02cd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-19 08:57:05 +00:00
Christian Kandeler
1d364880f9 ClangTools: Do not abort a running build when starting to analyze
Task-number: QTCREATORBUG-29044
Change-Id: Iec6259d1734f809aba9da00f3f6a63fea2b93967
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-04-19 08:56:41 +00:00
Jarek Kobus
ee140a8231 LineNumberFilter: Use Acceptor for LocatorFilterEntry
Change-Id: Id7da6d01a412633600c3ef905a5ddb18e9587bd7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-19 08:52:53 +00:00
Jarek Kobus
39b8bdab17 BookmarkFilter: Use Acceptor for LocatorFilterEntry
Change-Id: Idc3e0541b53277ab8e0cdc8626df7f9095f24ba9
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-04-19 08:52:27 +00:00
Jarek Kobus
a5ad722184 QtVersionManager: Fix a warning about missing initializer
It fixes the following warning:
warning: missing initializer for member
‘QtSupport::Internal::ExampleSetModel::ExtraExampleSet::qtVersion’

Amends bdfa412b14

Change-Id: Ieb984664953f53d458297970e09678c499a26197
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-19 08:45:44 +00:00
Jarek Kobus
9eb826f393 JavaScriptFilter: Use Acceptor for LocatorFilterEntry
Change-Id: Icceb830a391809cc760adf106e6c9e8b71dcb176
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-19 08:02:51 +00:00
Jussi Witick
f98a03a28d Fix namespace usage in QSR project wizard template
Consistently use namespaces with different feature if/def's in main.cpp

Task-number: QSR-2079
Change-Id: I0609f7eb8cb18d270e59c11025850e6369e5db87
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
2023-04-19 07:52:56 +00:00
Leena Miettinen
e441648259 Doc: Replace libSM-dev with libsm-dev
Which is the correct way to write the name of the package.

Fixes: QTCREATORBUG-29031
Change-Id: I860051b8e5f94a800d6f7b448daf02ae01611f9d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-19 07:24:13 +00:00
Ali Kianian
795aae8e7c QmlDesigner: Enable transient ScrollBars for StudioStyle
- Transient scroll bar is available for StudioStyle.
- Some changes are applied to slider style, because scrollBar and
sliders have some common usages within the style.

Task-number: QDS-9283
Change-Id: I7a8b7997cf4d20142a0524c4a071b93dfd06321d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-04-19 06:48:25 +00:00
Henning Gruendl
17feb6c352 QmlDesigner: Add insight plugin
Move insight plugin from qtquickdesigner repository to this in order
for it to be available in all QtDS editions.

Task-number: QDS-9626
Change-Id: I42ac804636d59930c4534df951455f864282986b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-04-19 06:44:13 +00:00
Ali Kianian
f5da6d2eac QmlDesigner: Fix shortcut text clip for the context menus
Task-number: QDS-9662
Change-Id: I7f9385e99c65b2201e36625b2094f04e6f6b701f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-04-19 06:40:45 +00:00
Ali Kianian
bcb89dc900 QmlDesigner: Enable mouse click events for the crumble bread tooltips
The tooltip of a crumble bread will behave the same as the crumble
bread itself when clicked.

Task-number: QDS-9572
Change-Id: I7bd29887a08a0e6fea2732198a92ca75ebce0bd2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-04-19 06:40:35 +00:00
hjk
dd7020d690 ProjectExplorer: Postpone Kit widget creation
... at least conceptually. This has not visible effect yet, as they
widget-creating code paths are triggered quickly.

Change-Id: Ibef3a4221885fa76cf5c1c327dcb3c2e6bdcbd1b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 16:31:24 +00:00
Jarek Kobus
b30983d3c7 CppLocatorFilterTest: Add locator matchers tests
Change-Id: Ifc9b25bd8503c75724ffec2a0ebd855e61a19bc6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-18 15:50:28 +00:00
Christian Kandeler
778d7a9819 ProjectExplorer: Redo the TaskView
- Make it a tree view.
- Use the default delegate for top-level items.
- If the task has details, show them in a child item.

Fixes: QTCREATORBUG-28850
Change-Id: Iafd65496f916b9e382ef2c6ade0f9b3a323f63ed
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-18 15:29:00 +00:00
hjk
e7d6501553 ProjectExplorer: Postpone ToolChainConfigWidget creation
... until they are actually used, i.e. when the respective
tool chain is selected in the Toolchain tab. Some of them
(QNX) can be expensive to set up.

Previously all of were created when the Kits settings page
was opened.

Change-Id: I80e4238269b9f08788c330e2052c525dcf41d1ba
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 14:33:40 +00:00
hjk
0ab7a14731 ProjectExplorer: De-O_OBJECT-ify IPotentialKit
Change-Id: Ic7718b249375ae74bec2092ae7b0be80b6d574ee
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 14:28:11 +00:00
Jarek Kobus
fadbc55cdf OutputDataProvider: Fix workingList initialization
Broken in patchset 57 of the amended change.

Amends 2eba3584a1

Change-Id: I92c54793c8a31dd0f3f9a1e0b2cf8c4efde741ec
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-04-18 14:11:31 +00:00
Marco Bubke
87e7829eaa QmlDesigner: Fix code view is empty
Fixes: QDS-9702
Change-Id: I23591db266e779a83e2b6df4156fae8c79e0d06d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-04-18 13:51:27 +00:00
David Schulz
aa0c9bc741 Editor: skip painting selection path out of clip rect
Change-Id: Ieec7afbec729708884c24d8de2b4a6c488220a69
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-04-18 12:52:41 +00:00
David Schulz
f316614450 Editor: fix selection path for empty selections
Especially targets the painting of empty snippet replacement placeholder
like in the default "if" snippet.

Change-Id: I42d9fb901c66cddf4eab9dd7275b42a8f4e81282
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-04-18 12:44:21 +00:00
Jarek Kobus
9f78ca6f11 Reapply "CommandLocator: Use Acceptor for LocatorFilterEntry"
This reverts commit 20a4954cbd.

Change-Id: I52a969ee8a26a9835ef15f906e4e418af5352aab
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-04-18 12:16:02 +00:00
Jarek Kobus
9388ab252e LocatorFiltersFilter: Use Acceptor for LocatorFilterEntry
Change-Id: I917ce346bf66cb18890d7d055501218d12a2c3ad
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-18 12:12:19 +00:00
Ali Kianian
886cbcde1d QmlDesigner: Fix the height of the menubar items
Task-number: QDS-9684
Change-Id: Ic9cc89b209440b46bcfa66c0449250e4fef4a267
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-04-18 12:10:16 +00:00
Jarek Kobus
0c3789726d LocatorMatcher: Introduce LocatorMatcherTaskCreator
Register cpp and lsp matchers for all symbols,
classes and functions.

Change-Id: Id85c8164077ec395dac7e6ff45acc89db9e6ae08
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 11:40:16 +00:00
Christian Stenger
c3715883ee AutoTest: Improve handling of Qt Quick Tests
Qml files must not get declared inside the project files which
makes it hard to correctly determine the correct project part
they might belong to.
The recommended and correct way of using Quick Tests is to
have QUICK_TEST_SOURCE_DIR defined which is used internally
anyhow to find the respective qml files.
Make use of this fact also when determining the correct
project part.

Fixes: QTCREATORBUG-28716
Change-Id: I45371242ce931ee83b7bfbdd07a0848c7fd86abb
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-04-18 11:33:28 +00:00
hjk
dde4a7ebf5 Qnx: Re-work item store
This reduces the number of updates from the env* files and
overall simplifies the architecture.

I actually believe that it would be better if the whole configuration
settings page would not exist but be part of the device settings page.

Change-Id: I4184b74fc2c9695356752903c861f3758a6d7c73
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-18 11:33:21 +00:00
Christian Stenger
610c0fee87 QtSupport: Fix handling of tutorials
Amends ac17e0e2ad.

Change-Id: I9c0ffdb01ef446a76bfcbbdb8b5c560dd9f26e8d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-18 11:33:19 +00:00
Artem Sokolovskii
178c0abbd3 ClangFormat: Fix preview updating
Fixed the behavior when the preview does not update when the Override
checkbox was not enabled initially. Currently, the preview is updating
when Override the checkbox is enabled.

Fixes: QTCREATORBUG-29043
Change-Id: I8a2a6f3cd5890b66d4bffd0c84aeafb5a29fba48
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 11:21:58 +00:00
Eike Ziller
5adb656550 Show locator filter descriptions more prominently
- Sort items in the menu.
- Disable items for disabled filters.
- Show a tool tip when hovering over the magnifying glass menu.
- Add descriptions to all filters and make them more consistent.

Change-Id: Ic03e303c50422f9de5dd3c512fe32bbdc958d2ba
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-18 11:19:17 +00:00
Eike Ziller
4e6877753a Merge remote-tracking branch 'origin/10.0'
Conflicts:
	src/plugins/android/androidrunnerworker.cpp
	src/plugins/qtsupport/exampleslistmodel.cpp

Change-Id: I1628528dbc0ffe874b49bbe022da5933b1348057
2023-04-18 12:53:45 +02:00
Mahmoud Badri
fcf3370202 QmlDesigner: Prevent scrolling when a section's context menu is open
Fixes: QDS-9619
Change-Id: Ic278cda058b179bfed08b2ce6e2def7ca9131d69
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-04-18 10:41:25 +00:00
Christian Stenger
ebfcb8af65 QmlJS: Fix compile with Qt6.2
Amends 15a06b77c0.

Change-Id: Iefac198e1d566fcbda77e22bcab289dda15fa1ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-18 10:27:32 +00:00
Eike Ziller
f2c6af064b Update qbs submodule to HEAD of 2.0 branch
Fixes build with Qt 6.5

Change-Id: I9aaae5ade6b9165e54c248d246d20dd0665967bf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 10:24:31 +00:00
Jarek Kobus
07b1e1c5fe LocatorFilterEntry: Add Acceptor field
Add also AcceptResult structure, returned by acceptor.
The Acceptor, being a member of LocatorFilterEntry,
is going to be used instead of virtual ILocatorFilter::accept()
method. By default, when no Acceptor is provided, the
locator widget is going to call EditorManager::openEditor()
with a LocatorFilterEntry instance.

Change-Id: Ic9697492738d65fd1331bbd0872bc374285c4e53
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-04-18 10:08:42 +00:00
Artem Sokolovskii
0c37fc356e ClangFormat: Fix wrong indentation numbers with separator
Fixes: QTCREATORBUG-29033
Change-Id: I70ba12828d3805cb8087a797d14e0ee24611418f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-18 10:07:35 +00:00
Ali Kianian
c98eb99957 QmlDesigner: Update material browser view model after state changes
Task-number: QDS-9485
Change-Id: I65e650b6929b9c83b1de968ef1d77ec46c027c88
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-04-18 09:28:35 +00:00
Eike Ziller
abf7dd23ed Show filter description in locator settings
Directly in the items, instead of just in the tooltip.

Change-Id: I631598ef3e38967a6fcf84fd70f22bccc8b97ea7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-18 09:19:43 +00:00
Jarek Kobus
ed120516f6 DocumentLocatorFilter: Get rid of the arg from c'tor
It's always LanguageClientManager::instance().
Pimpl LanguageClientManager's filters, so that they are
constructed after the managerInstance is being assigned.

Change-Id: Ib1f6f0c96d57d0e4cb7332ce322f6c4e9ef9fdb1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-18 09:03:14 +00:00
Jarek Kobus
c8ac10b4c1 LanguageClient: Introduce workspace matchers
Change-Id: I958e83f140ce5d12a5fb6734b9fbfd8a5f95a787
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-04-18 07:20:15 +00:00
Christian Stenger
bb551f4b60 Android: Fix compile with Qt6.2
Just removed redundant check.
Amends 2d01003c4e.

Change-Id: Ie7ce3836804199bcb561b8c34a70814856a4033a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
2023-04-18 04:25:40 +00:00
Thiago Macieira
8db29850b1 Clean up legacy content from Qt 5's QProcess::setupChildProcess()
We needed a derived class because in Qt 5 we needed to override the
setupChildProcess() virtual. Now have setChildProcessModifier(). The
actual subclassing was removed in a prior commit; this merely cleans
stuff up.

Drive-by fix the arguments to setpgid: processId() always returns 0 in
the child process.

Change-Id: Icfe44ecf285a480fafe4fffd174d1073c0e1ddc3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-04-18 00:20:49 +00:00
Tim Jenssen
a73358b3aa Merge remote-tracking branch 'origin/10.0' into qds/dev
Change-Id: I9520e55c8b7248afb297168395d7099829ed42c7
2023-04-17 20:59:36 +02:00
Thomas Hartmann
c609baf73b QmlDesigner: Set QML_DISABLE_INTERNAL_DEFERRED_PROPERTIES
Task-number: QDS-8545
Change-Id: I3ef92bba9c488586a85bb81ba9a244645b748dd8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-04-17 16:15:02 +00:00
hjk
cacc4aeede ProjectExplorer: Run toolchain autodetection on startup
... explicitly only for the Desktop device. This was implicitly done in
some cases by assuming 'no device' == 'desktop'. Make that explicit now.

Change-Id: I2ce86702a9b5b795fb4832301a11a8c8b40e77ea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-04-17 16:08:42 +00:00
Cristian Adam
bbe61a965d CMakePM: sanitize preset initial configuration values
The task-number below has a sample where CMAKE_C|XX_COMPILER was set to
"cl.exe" and the CMAKE_PREFIX_PATH was set to "C:/Qt//6.5.0/
msvc2019_64".

These values would cause "red" values in the CMake configuration, which
is not that nice.

This patchset will make sure that everything is nicely configured.

Task-number: QTCREATORBUG-28982
Change-Id: I21289d1936ef075ce02364fc675709c52c76c3ed
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-17 15:03:59 +00:00
Cristian Adam
45faec05e5 CMakePM: expand macros for all configure cacheVariables
Fixes: QTCREATORBUG-28982
Change-Id: Iabbf39b815ed7477a9d272a320308f320a31adbc
Reviewed-by: hjk <hjk@qt.io>
2023-04-17 15:03:53 +00:00
Marco Bubke
d14c38e873 QmlDeesigner: Add feature to disable error on warnings
Change-Id: Idc0cbf2c6fd4069d84fe18de190d91ed94610a8a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-04-17 15:01:13 +00:00
Marco Bubke
86e2426ac6 QmlDesigner: Improve ownership of text editor
Handling raw pointer can easily lead to mistakes. So it's better to
remove unique pointer. In this case a deleteLater pointer is added.

The pointer has not be tested for null  because of:

23.11.1.2.2 unique_ptr destructor [unique.ptr.single.dtor]

2 Effects: If get() == nullptr there are no effects. Otherwise
get_deleter()(get()).

Change-Id: I97eeb86b7316fc93fbed89707644ab7dde7f89f6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-04-17 14:59:38 +00:00
Marco Bubke
49c85bbf70 QmlDesigner: Let ~LibraryInitializer() throw exception
Because LibraryInitializer has no state it should be fine if it is used
like intended. The exception is anyway fatal.

Change-Id: I397e5b03e63d69f1468b46a8f333522629f1d882
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-04-17 14:59:31 +00:00