Commit Graph

82976 Commits

Author SHA1 Message Date
hjk
20700feb84 VcsBase: Proliferate FilePath use a tiny bit
Change-Id: I78929f6036702fe0b5384f4324f6283c2129d91b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-07 12:19:56 +00:00
hjk
299fdb9b80 Nim: Use aspects more directly in nimble related runconfigs
Task-number: QTCREATORBUG-29168
Change-Id: Ib5ee6d3941903d600adda628ff856b072c8fee4d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 11:43:28 +00:00
hjk
dbb1e04c77 Terminal: Use new settings creation pattern
Does not delay much yet, as settings() is accessed in
Plugin::extensionInitialized()

Task-number: QTCREATORBUG-29167
Change-Id: I8f7c7fbef78c4ce0f92302e57a81f6216456c27b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 11:38:11 +00:00
hjk
2a731003cf Core: Guard against pages that forgot to create their widgets
This should not happen, but when it happens, the resulting crash is
quite cryptic. Make it a bit more obvious.

Change-Id: Icbe40206cfdbae93ccb072d7027fcaf109f2f39f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 11:35:21 +00:00
hjk
57b6b8630c Core: Make IOptionPage::m_widget private
The last irregular use was removed with e1e491d08.

Change-Id: I2e483bd40c31c3d88ab28d7c8be0caad3b89ef0d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 11:32:00 +00:00
David Schulz
f0bb7e8bfa Editor: modernize line column label
This change contains various adjustments to the line column label:
 - Display the number of selected characters
 - Show the number of cursors instead of the position when multiple text
cursors are present in the current editor
 - show detailed information for each cursor in the line column tooltip

Fixes: QTCREATORBUG-29381
Change-Id: Ib4f36b290797f1d84f268deeb9556e78ae921c37
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-07-07 11:23:49 +00:00
Christian Stenger
942a9d0519 SquishTests: Avoid different type structures
On Windows the read content will be bytes instead of str. To have
a unified code path we need to convert it to str.

Change-Id: I16004968d8fed7bb2336ad594c31b38100f773cd
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 11:16:28 +00:00
Thomas Hartmann
a88db905e3 QmlDesigner: Remove import for QtQuick3D in case of Qt 5
Change-Id: I0b3079e2e79699291dec7b5273badcb07cb03edb
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-07 10:53:05 +00:00
hjk
4c8c793c06 ProjectExplorer: Use aspects more directly in desktop runconfigs
Task-number: QTCREATORBUG-29168
Change-Id: Ib191270e0cc1d192a25bf9f41e3315a6e6e79e24
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 10:26:14 +00:00
Christian Stenger
01d6afbcf6 Haskell: Fix missing include
Amends 9888e1982e.

Change-Id: Idef1f1e8cf4922d72e3894da0cee626551e369ab
Reviewed-by: hjk <hjk@qt.io>
2023-07-07 10:16:36 +00:00
hjk
04162ba291 Utils: Move some FilePath specific functions
... from StringAspect to FilePathAspect.

Task-number: QTCREATORBUG-29167
Change-Id: I6fc3bc22f905825443ebc31ebe44e7c27fdbcb56
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 09:59:01 +00:00
hjk
9888e1982e Haskell: Use aspects more directly in HaskellRunConfiguration
Task-number: QTCREATORBUG-29168
Change-Id: I7b10c001d1a4cc03d69298e59c4eb1097930816a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-07 09:52:49 +00:00
Thomas Hartmann
9a11fa3ef8 QmlDesigner: Add QML front-end for ConnectionView
This is still disabled by default until the UI gets polished.

Add roles to models. ConnectionModel, BindingModel and DynamicPropertiesModel.
In QML roles are used in the ListView to "mimic" columns. The columns are only
relevant for the "old" cpp QTableView and can be removed.

Making currentIndex part of the model. If rows are removed and added
again we have to "reset/keep" the currentIndex as part of the model, because
the index is temporarly invalid on the view.

Implementing DynamicPropertiesModelBackendDelegate as reference.
This is a pure "backend delegate" that exposes all relevant properties for
a current row to QML.

Adding StudioQuickWidget and exposing the backend.

Adding StudioQmlTextBackend and StudioQmlComboBoxBackend to
StudioQuickWidget (should be moved into their own files).
Those helper classes make is easy to expose a property to a combobox or
textfield. The backend has to know nothing about the actual frontend
and those classes act as a mini-model for a view in QML.
The API is similar to UI controls.

Change-Id: I7a2c6ad951306fbca1d586fb8f278acdd91a064b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2023-07-07 09:36:34 +00:00
Christian Kandeler
67f23f331f Update qbs submodule to HEAD of 2.1 branch
Change-Id: Ic104a5c3339ee42a59bdda3c83c9631057e38395
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 09:11:06 +00:00
hjk
91513a53dd Utils: Make aspect settings access implicit
Generally, aspects should use fromMap/toMap, but some older pages
use {from,to}Settings with always the same ICore::settings().

To make that less intrusive on the user code side, make that globally
implicit.

Task-number: QTCREATORBUG-29167
Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 09:02:29 +00:00
Christian Kandeler
6bf6c093cd CppEditor: Fix parentheses mismatch on comment followed by backslash
Apparently, it was mistakenly assumed that a non-zero lexer state
implies that the comment continues on the next line when it can also
mean that the line ends in a backslash. Adapt the check accordingly.

Fixes: QTCREATORBUG-29339
Change-Id: Ib239aca86dae9983d920f7715ae628ab4bf80220
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-07 08:55:20 +00:00
Eike Ziller
29ca86ce65 Haskell: Update dependency for manual test
Stack didn't want to install that old stuff anymore.

Change-Id: I8e196bca92b2a6100c8e4d1431f7588c6efad946
Reviewed-by: hjk <hjk@qt.io>
2023-07-07 08:33:18 +00:00
Robert Löhning
e92c61441f SquishTests: Update tst_SCOM04
Change-Id: Ic41d30987069e9040a20838db1a55876f610a203
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 08:29:06 +00:00
Jarek Kobus
9f1b56e91a ProjectExplorerPlugin: Use expected_str for canRunStartupProject()
Change-Id: Iddc9abcb1b9ef02c6a8188d2eb82cc30a0ba4c22
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-07 08:23:29 +00:00
Jarek Kobus
714b5963f7 BaseFileFind: Some cleanup, also in derived classes
Change-Id: I1fb3d3937543f9c4fd8ca723410494cfc76322ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-07 08:22:50 +00:00
Leena Miettinen
ea59db0167 Doc: Edit how-to topics
- Add links to missing ones about managing plugins
- Add step lists and screenshots

Change-Id: I49446020b7d81b6ce5a5e4ad5268ef587df6d20b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-07 08:02:11 +00:00
Christian Kandeler
d0a34587ac ClangCodeModel: Fix suppressing warnings via textmark tooltip
This functionality was never properly converted when we switched to
clangd.

Fixes: QTCREATORBUG-29385
Change-Id: Ie06c9ec8bbed6a539ce9f9bf5ba512ae1a7f4b98
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 08:01:26 +00:00
David Schulz
5bf78e9955 Utils: simplify Text::textAt
Change-Id: Ibada4af8b7bf76bb61fa45b00ac37bb8ed8a56b2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 07:57:26 +00:00
hjk
e75b81b0a8 QtSupport: Use current aspect ctor pattern for Qml related aspect
Task-number: QTCREATORBUG-29168
Change-Id: I3779ed4075dc98ccafc2490009d1217e908ad83c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:55:32 +00:00
Tasuku Suzuki
4991d4b16c Fix crash in ProgressView during boot up
In the code below min can be bigger than max.
qBound(widget->rect().height(), bounded.y(), parent->height())

Change-Id: Ia65b1ba5917bf3333606e16263ac30819a07a587
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-07 07:39:51 +00:00
hjk
382e003deb BareMetal: Use aspects more directly in run configurations
Task-number: QTCREATORBUG-29168
Change-Id: I28c90ab76a34e652f6cc8d56aa326b7ee8634cb2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:33:36 +00:00
hjk
a98e6f63b7 BareMetal: Adapt DebugServerProvidersSettingsPage to latest changes
Task-number: QTCREATORBUG-29167
Change-Id: I14c7330b3ede0fc550291412791cb69fedefe62c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:23:19 +00:00
hjk
f9a8e4b62d Beautfier: Fix layout of ClangFormat page
Broke with the removal of the special BoolAspect-in-FormLayout handling
in the latest aspect revamp.

Change-Id: I61465b0a3318192ff8b7c92ebf45491c4b298b6c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-07 07:19:16 +00:00
Christian Stenger
d3e649b10b AutoTest: Fix scan for Quick Tests
Partially reverts a85d7ef538.

Change-Id: Ib928ba2aee8b82d8204939b16070dbf806cafaf9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 07:18:04 +00:00
Marcus Tillmanns
d18768b53a CMakeProjectManager: Use more FilePath
Change-Id: Ifa3e754c224cd6ec315d49cd825aa78ac59b5ad9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-07 07:08:36 +00:00
Marcus Tillmanns
9d6597105b Terminal: Fix process staying alive
When starting a Terminal Process with TerminalMode::Detached,
the Process object was not deleted on app exit and therefor
created warnings on exit.

This patch changes it so that the osascript does not wait for the
process to exit and therefor exits pretty much immediately which
deletes the Process object.

Fixes: QTCREATORBUG-29375
Change-Id: I08e8b753c98011fdafc32f03886b5c0be7aec801
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-07 07:08:22 +00:00
David Schulz
2a61736264 Utils: make select at column 0-based
Change-Id: I514611cbd887eec6e46c80e5a2964c04ad05fdf2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 06:53:26 +00:00
David Schulz
78630dac07 Editor: simplify RefactoringChanges::openEditor
Change-Id: Ia095ab3d24f8f5822954976db5353c925f0b4256
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 06:49:04 +00:00
Orgad Shaneh
5bd2cd0115 Git: Fix crash when fetch is done while context menu is active
Blind shot.

Task-number: QTCREATORBUG-29266
Change-Id: Ie9e8be9e6ead7a3c49cdde7c3b80b4735f7b19af
Reviewed-by: hjk <hjk@qt.io>
2023-07-07 05:52:34 +00:00
hjk
b3df9a4fcf Python: Centralize interpreter specific function in the aspect
... and expose that instead of the PythonRunConfiguration.

This makes the PythonRunConfiguration more the container of aspects,
similar to where the other runconfigs move.

Change-Id: Ibc76b706f2d4d334640ea8f3b91343f9e7c0f566
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 05:20:48 +00:00
Christian Stenger
e5acc8b072 SquishTests: Fix verification of debugger detection
There are now generic debuggers registered - adapt the test accordingly.

Change-Id: I102ac0ac44666c4da17ff6ea01f048abba66e6e7
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-07 04:28:25 +00:00
Jarek Kobus
7a28ed76b8 BaseFileFind: Make searchDir() non-virtual
Replace FindInFiles::pathChanged() with
BaseFileFind::searchDirChanged().

Change-Id: I3cbe507968391fe45f513490424a7fe6fbbffee1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:45:26 +00:00
Jarek Kobus
bf09d17992 BaseFileFind: Replace additionalParameters() with searchDir()
The FileFindParameters::additionalParameters,
holding QVariant, was ambiguous. Since GitGrep and
SilverSearcher need a search directory input
unconditionally, replace the additionalParameters field
with searchDir of FilePath type. For Internal
search engine, this field isn't used - the searchDir
is already passed in FindInFiles::fileContainerProvider()
with lambda capture; for other BaseFileFind subclasses,
not combined with non-Internal search engine, the field
isn't used anyway.

This change closes the chain of patches to eliminate
the usage of ambiguous QVariant type inside FileFindParameters.

Change-Id: Icddd1cfe46e86ea892221862d9d267f9c9fa173c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-06 18:45:19 +00:00
Jarek Kobus
cf7a41e963 BaseFileFind: Get rid of executeSearch()
Use FileFindParameters::searchExecutor directly instead.

Change-Id: I03e5018c8094b69d3b21a4630956514b3abc7a1d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:45:11 +00:00
Jarek Kobus
453452864f FileFindParameters: Get rid of searchEngineParameters field
Get rid of ambiguous searchEngineParameters QVariant.
Pass the custom parameters through the lambda captures
of the SearchEngine::searchExecutor() overloads.

Change-Id: I971a3871199a17200ec662392dfd7095a7a56a50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-06 18:45:02 +00:00
Jarek Kobus
51beff5644 FileFindParameters: Get rid of searchEngineIndex field
Change-Id: I75301de5fff471cf914da1bbbf8a2f526810ab0e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:44:54 +00:00
Jarek Kobus
731f61c30d SearchEngine: Replace executeSearch() with searchExecutor()
Change-Id: Icce615d0cedef35ff4278f9ecfffa415b1aa0386
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:44:44 +00:00
Alessandro Portale
e02e122991 Vcpkg: Generate CMakeLists.txt code
Provide the contents of the "usage" file for copy & pasting into
CMakeLists.txt. If the "usage" file is not available, provide the same
heuristic code that vcpkg generates.

Task-number: QTCREATORBUG-29333
Change-Id: I3daba7616451a43f93fd8f2e0353542ec5a2c48b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 17:46:29 +00:00
Alessandro Portale
2df86fee6a Vcpkg: Parse dependencies from vcpkg.json manifest
Also, extend the tests accordingly.

Task-number: QTCREATORBUG-29333
Change-Id: I24104b6b0bdbbd47c36cc4d43f4647169fa619d8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 17:41:49 +00:00
Jarek Kobus
619c49958c ClangTools: Get rid of ClangToolRunWorker
Task-number: QTCREATORBUG-29168
Change-Id: I07ae5cd23124e43878d2f929d7dcb4fe84e8b28c
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:25:03 +00:00
Jarek Kobus
e5ed299fa9 ClangTool: Some cleanup
Change-Id: I60258c79262a33062617ac0179147fc4ef1b1a6e
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:24:58 +00:00
Jarek Kobus
f9fb3f4872 ClangTool: Transform ClangToolRunWorker into runRecipe
Task-number: QTCREATORBUG-29168
Change-Id: I1b42de2d148c84393b44c84730c8535a1d2a389c
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:24:52 +00:00
Marco Bubke
635e0d6969 Utils: Make ssize and usize more generic
It now works for all container which implement std::size like C arrays.

Change-Id: I9ccf2c50b4e7518e44890b52686d5561358bcf8d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-06 14:29:32 +00:00
hjk
552b325072 Vcpkg: Compile fix
Amends 573f3e7185 which went in too early.

Change-Id: Ied93fd585aa26cb931f3acf13b55fbf7dbe0c163
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 14:29:22 +00:00
Eike Ziller
b1423c5818 German translation: ProjectExplorer
Change-Id: I514f163cb7e0489a06ac6d684630b40cf18e7f39
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-06 14:23:49 +00:00