Commit Graph

89152 Commits

Author SHA1 Message Date
Leena Miettinen
6aebad8f80 Doc: Fix typo "righ" > "right"
Change-Id: I45966029de3b55d2be9ec0b9de85a6e3259d162e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-11 13:44:42 +00:00
David Schulz
6988462cd5 TextEditor: fix highlighting whole words matches
... at line start and end.

Fixes: QTCREATORBUG-31020
Change-Id: I3b26089ef72a34dedfe8846119f672e75bf03215
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 12:42:38 +00:00
Marcus Tillmanns
bca0adca30 LayoutBuilder: Add splitter set functions
Change-Id: If45c6e5cbef1d5368168102790188659924d0912
Reviewed-by: hjk <hjk@qt.io>
2024-07-11 12:13:20 +00:00
Semih Yavuz
60b0d88df9 Fix warning message due to incorrect qmlls path
Don't try to start qmlls if the found path doesn't exist.
When there is no Qt version found in the project (this happens
when you open a qml file without providing its build folder, or
open it without the project info so no linked Qt version is found)
we might end up with incorrect path where no actual qml executable
exist for that path. Check the existence of the binary before assigning
it as the path for qmlls.

Fixes: QTCREATORBUG-31207
Change-Id: I626ace796401e72462eb850d4bd88c1ef51cf53a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2024-07-11 11:50:24 +00:00
Jarek Kobus
7f79bec02c Android: Make m_androidABIs field local in AndroidDeployQtStep
Change-Id: I7107470ddd8b8cd2e6039e8d230b516f8eb3004e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-11 11:40:57 +00:00
Jarek Kobus
1c409022b4 Android: Drop m_manifestName field inside AndroidDeployQtStep
Change-Id: I14a3b92928ceabf2d634d9bf2bc6e7b81402b4d0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-11 11:40:49 +00:00
Jarek Kobus
abdce9e73a Android: Refactor filesToPull
Replace QMap with a list of FileToPull struct.
Rename gatherFilesToPull into filesToPull and make it a static
getter.
Simplify for loops.

Change-Id: I74208a60efb8f00676c1b72c807ba9c7bd6ef587
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-11 11:40:40 +00:00
Leena Miettinen
ad07577e1f Doc: Update docs for project-specific Axivion preferences
Task-number: QTCREATORBUG-30604
Change-Id: I668f1e9cc89a1a138071f3bf103dde7abc6c696d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 11:25:55 +00:00
Leena Miettinen
ea3deac2d2 Doc: Add subsections for global and project-level Copilot preferences
Task-number: QTCREATORBUG-30604
Change-Id: I88a75726bb3cca6bb533001f5b65d5c244db2a81
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-11 11:18:36 +00:00
Eike Ziller
42a8b5b432 Merge remote-tracking branch 'origin/14.0'
Change-Id: Id00d72a8707d122b72d89ed0ecf03ad5ed8230d2
2024-07-11 12:10:59 +02:00
Leena Miettinen
02ef7186e3 Doc: Add missing introductory text for Debugger preferences
Change-Id: I45a7fd99a7ad262bce389243d5fc177ce75b8041
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-11 09:45:07 +00:00
Eike Ziller
2098053095 German translation: Android, Autotest, Axivion
Change-Id: I1b3f5e768b687851430c4bf48d2b6b5a6e38b26b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-11 09:44:56 +00:00
Christian Kandeler
3557afe805 qbs build: Update types metadata
Change-Id: I0e48dd91c5c625d8f3391c2fea498f55cc828266
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 09:42:27 +00:00
Eike Ziller
a13635ca6b Application Output: Fix name of output file
If a tab is re-used for a different application, the output file name
must change too.

Fixes: QTCREATORBUG-31099
Change-Id: I3413fca3a99757777db8cb771f0947f655d20ea4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-11 09:37:35 +00:00
hjk
c0d86751dd Welcome: Use ActionBuilder to set up the UI Tour action
Change-Id: I6b7590d7923da7dc5cd92c59a678fe031f6752c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 08:55:46 +00:00
hjk
0ca17351d4 AutoTest: Use new SelectionAspect::setUseDataAsSavedValue()
Change-Id: If5ec39b5d2488994e678d2fe76cd9ad3232442ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 08:51:01 +00:00
Christian Stenger
04bb6b95fe QmlJSEditor: Fix order of initialization
Enabler need to get set after reading the settings.
Silences soft asserts.

Change-Id: I7e70279537a87462e607e51a40d9fef565b46fa8
Reviewed-by: hjk <hjk@qt.io>
2024-07-11 08:36:00 +00:00
Christian Stenger
88d31a6f0e Shared: Remove files from qbs build
Amends f6e99a6235.

Change-Id: I3fe022577c60cfa3f9f76281f4fb89814aa257cc
Reviewed-by: hjk <hjk@qt.io>
2024-07-11 08:35:47 +00:00
Marcus Tillmanns
15c5337649 CmdBridge: Improve error handling
The message result type was checked, but the promise
was still finished without an error.

Change-Id: Ib5ba5f48202073a82bfbcb871e0d5a5277ea9f2a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 06:29:31 +00:00
Eike Ziller
e46ee312dd Add some key event logging for OpenEditorsWindow
On some platforms/configurations the popup for switching documents does
not close when releasing the modifier key. Add some debug output to try
to find out what happens.

Task-number: QTCREATORBUG-27378
Task-number: QTCREATORBUG-31228
Change-Id: Ia882ce6be1bd235601f9c869b79fb8c15ab72a3a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-11 06:27:33 +00:00
Marcus Tillmanns
580e2c379a CmdBridge: Fix removeall result type
Change-Id: Idd428d2eb1f3a41a72b4cd90b4669b381c729d3b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-11 06:03:44 +00:00
Alessandro Portale
d134b7b5ce Android: Remove obsolete AndroidQmlPreviewWorker
This change remove the AndroidQmlPreviewWorker which was only used in
QDS and is now (QtC 15 development cycle) obsolete in that context.

Fixes: QTCREATORBUG-31221
Change-Id: I2e361c8245f70178fb0f0e3e1c0a9499d783856d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-10 18:11:09 +00:00
Jarek Kobus
2d480f45da Android: Use task tree for startAvd() action
As a drive-by, lower some timeouts from 2s into 1s.

Change-Id: I495ad20058b0f97b6cdd5271a390b779c66b4864
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-10 16:14:20 +00:00
Alessandro Portale
a7dec9f327 ProjectExplorer: Use LayoutBuilder for AbiWidget
Change-Id: Icea50ff1f3a076c860712d3f08d669fde58b7102
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-10 16:10:15 +00:00
Alessandro Portale
3775750a80 CMakeProjectManager: Use LayoutManager in CMake tools settings page
Change-Id: Ied210a8311e8d83cb44056d544308c19930b479f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-10 14:46:48 +00:00
hjk
386e3c3c12 QmlJsEditor: Use a SelectionAspect for the open mode choice
Change-Id: Ieac7371bfa71dfc5387e442d717eb53a4fae6fb8
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
2024-07-10 14:33:36 +00:00
hjk
32547b47a7 Utils: Add a way to use SelectionAspect item data as settings value
These can be more descriptive than the index integer.

Change-Id: I0d992fdcfa13258c62f66056d61d9a4659272563
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-10 14:13:07 +00:00
hjk
04f309f760 Utils: Fix two deprecation warnings
QSize actualSize(const QSize &size, Mode mode = Normal, State state = Off) const;
    QT_DEPRECATED_VERSION_X_6_0("Use actualSize(size) instead")
    QSize actualSize(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const;

Change-Id: I6f70d148afb5b3fb4f3ab7ee86f2d5eba6618ac5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-10 13:54:01 +00:00
hjk
9454c5c0e6 Welcome: Hide most of UI tour implemenatation in .cpp
Also, de-Q_OBJECT-ify, for slimmer interface.

Change-Id: Icfa80430c95318351f3ab9bfb46c3d03d9d02af3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 13:53:45 +00:00
Eike Ziller
f6e99a6235 Remove Linguist related external tools
They do not work with CMake projects

Fixes: QTCREATORBUG-28467
Change-Id: Ic656c28d0e6bdde976bf7ffd75796b51c1aba06a
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-07-10 13:50:33 +00:00
Eike Ziller
e7e0f80d01 Fix tab order in find toolbar
Explicitly add the options button to make sure that is at the correct
position, and do not use multiple conflicting methods to specify tab
order. This adds the various buttons back into the tab order.

Fixes: QTCREATORBUG-30791
Change-Id: I5d1fbcd213b57bf4d7af98ba5d21b09e408e84b7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 13:50:12 +00:00
Alessandro Portale
0222dd7066 Core: Use LayoutBuilder for change log dialog
Change-Id: I0b0678dadd57b2873cf0c8ea2c6fe1cb3370d8ae
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 13:48:55 +00:00
Jarek Kobus
9e3e3241ca tst_SubDirFileContainer: Simpify init / cleanup test case
Use For elements instead of constructing big recipes.

Change-Id: I44a01987ed02a0ccb44c31568d12c2aaeeb95f69
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 13:40:21 +00:00
Jarek Kobus
5aea1a817a TaskTree: Make most of TaskAdapter subclasses final
Change-Id: Ie6652c6f327b5a47b3a4cab58e64fbea0cb71276
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 13:39:54 +00:00
Jarek Kobus
779390829c TaskTree: Introduce For element
Improve code readability by requiring iteratable Group
to be named For.

The For's c'tor requires an iterator element as a first arg.

The For's c'tor allows for passing exactly one iterator element.

It's not possible to place iterators inside Group element anymore.

Change-Id: I9dfe2c0da058abac161f66c4e336da2417c383f1
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 13:39:40 +00:00
hjk
c841a99db9 ExtensionManager: Streamline mode widget setup a bit
Change-Id: Ic6ec02c07cd37ee2a3b3b2d45b9239b22873a6cb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-10 13:19:51 +00:00
hjk
1c17370146 Core: Add a way to delay-construct mode widgets
... and use it for edit mode.

There's currently no real effect as the mode bar population in
ModeManagerPrivate::extensionsInitializedHelper() accesses all
IMode::widget() and triggers the creation, but in principle we
could pass the functor instead of the widget down to and store in
FancyTabWidget and only use it when a mode gets activated.

Change-Id: I4c4a276bc025abce1ff47c68b060c67b5c8e5170
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-10 13:19:17 +00:00
Christian Kandeler
978042b582 CppEditor: Use a timeout in waitForRehighlightedSemanticDocument()
As in all the other wait() functions.
This makes sure we never hang indefinitely in tests.

Change-Id: I119cc0d6d6146f193ffde37207a94f61b3c70d87
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 13:10:26 +00:00
Jarek Kobus
6c39e136fd Tasking: Introduce TcpSocketTask
Change-Id: I9640a7016dd833394a1e62be93af129f517ae1a2
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 12:39:58 +00:00
Jarek Kobus
c9aec06723 TaskTree: Simplify Group construction in DataExchange example
Change-Id: I911f41da0f719471a324e190f4a77c0c8f58fd67
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 12:39:10 +00:00
Cristian Adam
e451f42fc7 CMakePM: Use FilePath::path() instead of toString()
Amends 412eeefafa

Change-Id: I82fa1eadd61a4acc2ab25499ef16dd40ef284942
Reviewed-by: hjk <hjk@qt.io>
2024-07-10 12:00:05 +00:00
hjk
b17b6f61e5 QmlJsEditor: Further aspectify settings gui
Change-Id: Ia14289a414e23c6e830d88bbfe0a69577c0f2a31
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 11:49:39 +00:00
Marcus Tillmanns
13f8c3841e CmdBridge: Disable Go version info embed
Since the git repository is removed on coin, go cannot fetch
version information from the git repository. We need to tell
go to ignore this information.

Change-Id: Icd1066efc7eabfdf82aba41b4f3a06202b581518
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 11:05:53 +00:00
Christian Kandeler
b8534db8dd ProjectExplorer: Fix missing model -> editor sync
... when enabling/disabling an environment variable via the buttons.
This was forgotten in 8ef85e481a.

Fixes: QTCREATORBUG-31222
Change-Id: I02f2840cd0dadc628120275585245f8d1c23cec8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 10:18:17 +00:00
Christian Kandeler
112e93b1be RemoteLinux: Allow transferring directories
Fixes: QTCREATORBUG-31136
Change-Id: Ic9e5d57ba5f5e85efe5db58719f38f0702ac3492
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 10:17:37 +00:00
Alessandro Portale
d9f48dab27 CppEditor: Use LayoutBuilder for InsertVirtualMethodsDialog
Change-Id: Ie9c03508f2d60f66b55591deb5fdfdf1be8e27df
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-10 10:01:17 +00:00
hjk
317a985dd6 Debugger: Create separate class DebuggerModeWidget for mode widget
Change-Id: Iaf8d2f2b9bfaf80f2b3b231638c1609503f7850f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 09:29:24 +00:00
hjk
6c7a7db87b Core: Create an EditModeWidget class
A step towards having delayed mode widget construction.

Change-Id: I1d400e058d17aaebfc784000d8b2705debea6a51
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-10 09:28:40 +00:00
Marcus Tillmanns
0405801f17 CmdBridge: Implement clean exit
Change-Id: I248fbe5a24f55f6d7ba9ea8e0093eda702baaad1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-10 09:26:15 +00:00
hjk
495418d4c4 CMake: Simplify CMakeBuildSettingsWidget::kitCMakeConfiguration()
Change-Id: Ie64500c42128f5e38ebdd83b0853a016e36cfc0d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-10 09:21:53 +00:00