Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
8a727b5948 GitLab: Use new construction pattern for project panel factory
Change-Id: I7a52d1a914daf64cb74214628c7f4728d32dbf5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:37:13 +00:00
hjk
6a8d7edd6f ProjectExplorer: Temporarily leak ProjectPanelFactories
The follow-up changes will remove dynamic allocations for
ProjectPanelFactories one-by-one, so the leak will vanish in the end.

For now this prevents double deletion during shutdown in the
transition period.

Change-Id: I24d3ad4a2f300a7af782e1973d9817061af39c18
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-16 09:36:58 +00:00
Jarek Kobus
ec722b9132 DeviceShell tests: Use ProcessLauncher for shell process
It looks like after recent switch to QProcess impl for
Utils::Process, the DeviceShell::m_shellProcess blocks
in DeviceShell::installShellScript() on a call to
m_shellProcess->waitForReadyRead(5000). Until it's solved,
bring back the ProcessLauncher impl for the shell process
to unlock the CI tests.

Amends a53dfaf623

Change-Id: I085ea5c1ae4f169c7c77acb8702ed48de0a95bac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-16 09:06:02 +00:00
Eike Ziller
f0f4780ec0 Merge remote-tracking branch 'origin/12.0'
Change-Id: I22e6a20e5a6fc84f777b6cffbd9fb484c90bc51d
2023-11-16 08:45:30 +01:00
Thomas Hartmann
b7657a8d23 QmlDesigner: Add source property to MediaPlayer
Change-Id: Ie70e6f8c0e8d3ac316b98bc43f3cb7baecbb9d1b
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-11-15 16:57:00 +00:00
Thomas Hartmann
9958987be7 QmlDesigner: Allow QtQuick 6.6 import
Change-Id: I5f16c6dbd96a22fba540a3877c7eb3ebf2b61734
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-15 16:32:43 +00:00
Christian Stenger
e38c84d5db Tests: Fix warning and test execution on Windows
Avoids

 warning C4566: character represented by universal-character-name
 '\u23F0' cannot be represented in the current code page (1252)
and the resulting test fail on Windows.

Change-Id: I2bdd43b0648a954faa9e444df79a91027e6e891f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-11-15 16:32:24 +00:00
Jarek Kobus
37ed2ce42f TaskTree: Add tests for ConcurrentCall
Change-Id: I493ab170656a61a841614dff87495fa324336c45
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 16:21:43 +00:00
Alessandro Portale
6c57c51981 Use StyleHelper::UiFont()
Change-Id: I0c09578b76c48ddb255f44bb6117089dd092a72c
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 15:02:13 +00:00
Alessandro Portale
f8671f3e3c Utils: Introduce StyleHelper::UiFont() for centralized font definitions
Custom font sizes of UI texts like titles and subtitles were usually
defined on the spot in code. With the upcoming focus on unified fonts
and colors in Qt Creator, a centralization of font styles in needed.

This adds the font getter function StyleHelper::UiFont() and the enum
UiElement that specifies types as H1..H6 and some custom ones.

Change-Id: Ie0d6e6fb51fe24d8aee6b4242941cbff45fe3853
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-11-15 15:02:06 +00:00
hjk
b6569b9333 QmlProjectManager: Allow opening remote .qmlproject
This get rid of two instances of FilePath::toString and allows now
to opens the default wizard-generated "Qt Quick UI Prototype"
.qmlproject.

As the QmlBuildSystem is still heavily tied to the local file system
this here is only a baby step towards fully functionial remote
.qmlproject support.

Change-Id: I940f99472d45d9ade4966cf4f15b0692a51f2e7b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 15:00:37 +00:00
Jarek Kobus
62ad0014f1 TaskTree test: Simplify subprocess name
Fix the qbs build.

Amends 63bfeba87f

Change-Id: I271e5059ba8becf4aade8ce21ff9f40201f3734b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 15:00:26 +00:00
Amr Essam
306ce4ab35 EffectMaker: Open saved compositions
- Also fixing issues related to image paths
- Composition name is shown in save dialog when re-save
- Clear current composition for reset or open a new one

Task-number: QDS-11192
Change-Id: I97aad4b5216e6b116343bb274db0f9abd1275fec
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-11-15 14:29:52 +00:00
Marcus Tillmanns
1049f8d329 Utils: Remove unnecessary flag
Change-Id: Iae99b5fd6d3740015deb0e30d45d480ffb54c4a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 14:18:46 +00:00
Marcus Tillmanns
7819fc5dfb Terminal: Only unlock exit on macOS
Fixes: QTCREATORBUG-29902
Change-Id: Ifbb1f12c874f2f68483a34ac6e117214211e5be4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 14:13:48 +00:00
Christian Stenger
5fcf404846 TextEditor: Consider angle brackets as braces too
When performing "surround with brackets" allow this feature for
angle brackets as well.

Change-Id: I4192fd832aa3e692d9287b5b873e9ea31ec2b7e3
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 14:11:33 +00:00
Christian Stenger
8ae0e3dbf8 Bazaar: Make create repository a global action
Also initialize text of parameter actions when defining the parameter action.
Avoids empty items if the setParameter() call is done too late.

Change-Id: I5e3398e5e537fc65f5c9c43cd62345b322f3143d
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 14:11:25 +00:00
Marcus Tillmanns
35a2d598ab Utils: Add SynchronizedValue<T>
Change-Id: I0af6998f540ba688fa54d9e43e33cb3cb0fc54e8
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 14:00:03 +00:00
Karim Abdelrahman
de4c871655 QmlDesigner: Fix isQtForMcusProject() bad if condition
"if(activeTarget && activeTarget->kit())" will always
return true for both Qml & CMake build systems.

The value of McuSupport.McuTargetKitVersion has to
also be checked as the third condition for Cmake
build system.

Task-number: QDS-10599
Change-Id: I5904e34082d1d81cccc4dd43b6911f9160eb5ea1
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-11-15 13:50:35 +00:00
Cristian Adam
3939ba93af qtcreatorcdbext: Deploy lldb on Windows
Starting with LLVM 17.0.1 we include lldb in the list of packages
compiled on Windows.

This commit deploys lldb.exe and its Python required machinery.

Fixes: QTCREATORBUG-14539
Change-Id: I7f44c537cbaf31bf2f065762bdc9a48dd5efc64d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 13:47:46 +00:00
Esa Törmänen
031e23edbe Doc: Update QDS version compatibility with Qt for MCUs SDKs
Modified the QDS version compatibility with Qt for MCUs SDKs page
so that it's up to date with the latest/upcoming releases
(Qt for MCUs 2.6 & QDS 4.4).

Task-number: QDS-11228
Change-Id: I21ca6e5e7362c8bab756d1adcd81954deea48784
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Maija Metso <maija.metso@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-15 13:09:26 +00:00
hjk
f9e2942a80 Bazaar: Use Core::ActionBuilder to create menu entries
Change-Id: Ibae72a912dee82ef8a0b7865d69f87fd65ee8f43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 13:05:04 +00:00
Andreas Loth
5639a3424c Axivion: Use signal/slot to start reading the network response
Prevent use-after-free when QtCreator is closed while a network request is still
on the way.
The previous future approach will try to use reply despite reply being destroyed
by networkAccessManager's destructor.
Now, the connection gets automatically disconnected when reply gets destroyed.

Change-Id: I7a00006a2f38d3a774eb2769e6faeb339d18025a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 12:46:21 +00:00
Alessandro Portale
aabf03ec06 Core: Add "Copy and Close" button to About dialog
For the quick way to copy "I use this version" information.

Fixes: QTCREATORBUG-29886
Change-Id: I0431c969a48b80438e07388d223477b5b3f56069
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-15 12:24:29 +00:00
Alessandro Portale
1f5f76cdf9 Core: Move generation of "about" text to ICore
This introduces ICore::aboutInformationCompact() and
ICore::aboutInformationHtml() and moves the existing code there. The
former is used in the "System Information" dialog, the latter in
"About".

aboutInformationCompact() will be used for the "Copy and Close" feature
in an follow-up patch.

Task-number: QTCREATORBUG-29886
Change-Id: Iec818e376b3f02f52da00428285ad69b94d8adea
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 12:24:17 +00:00
Alessandro Portale
ac121149b1 Core: Make strings in ICore::versionString() non-translated
Change-Id: I462bab0160cb4b574da5a5ae6147915706a9f43e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-15 12:07:48 +00:00
Christian Stenger
4f7865eb4d Python: Limit detection to unique python
In case we are having symbolic links on python or its parent
path(s) we added an interpreter for each of these.
Resolve the python path explicitly and only add them if they
are unique.

Change-Id: I21b9d7d85e82c5ec3a18e182dfcde2b98936a8af
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 12:02:40 +00:00
Christian Stenger
737c9ce41e LanguageClient: Fix missing default context menu
Change-Id: I7a3ae4f0af01cf05efd31082e3ac888a4613bb25
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 11:29:25 +00:00
Christian Stenger
cf6b6b5a8a QmakePM: Improve performance of import
Shuffle order of parse and add short cuts in case we can
stop parsing early.

Change-Id: If03a5cbc0e51dc77f4b03b1cf1d07243f5b2a70b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-11-15 11:29:05 +00:00
Jarek Kobus
5a2df08ae0 TaskTree: Add a new example showing input / output data exchange
This example shows how to separate the business logic of the recipe
from the GUI and how to write a reusable recipe.

It shows how to feed the recipe with the initial data and how to
retrieve the final result from the recipe using onStorageSetup()
and onStorageDone() handlers.

Change-Id: I04c0c0c9bd6cf25ac4e91317e527ad12832e9143
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 10:54:05 +00:00
Aleksei German
5b90cbc29a QmlDesigner: Disable State Groups for Qt for MCUs
Task-number: QDS-10355
Change-Id: I1b26b8e5b9ef3ed3176b7d6cd34bc1e27879ce1c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-11-15 10:40:45 +00:00
Jarek Kobus
a53dfaf623 Process: Switch the default implementation into QProcess
Task-number: QTCREATORBUG-28811
Change-Id: I5647b760998a80f59583b478a65de6d615e1ca55
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 10:26:09 +00:00
Thomas Hartmann
f199755cfe QmlDesigner: Adjust display strings for jump to code
Change-Id: Ia1f976491be0834ce936092429ebceee360be2df
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-11-15 10:11:20 +00:00
Jarek Kobus
e5b7f474b3 TaskTree: Get rid of unused data
Change-Id: I60f38e7a0efeb02615d81181a9884963a66be39b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:54:24 +00:00
The Qt Project
1a44647d1e Merge "Merge remote-tracking branch 'gerrit/12.0'" 2023-11-15 09:45:00 +00:00
Jarek Kobus
6da404fa2c TaskTree: Keep list of unique_ptr for owned children
Change-Id: Ib6bc1efa647b4e48b1a4188de480f06bc4e7699e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 09:36:22 +00:00
Jarek Kobus
2a1abb4143 TaskTree: Create more data on stack
Use std::optional instead of std::unique_ptr.

Change-Id: I5b182a10ebbd47c02de113c8d317ad531d603661
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-15 09:36:14 +00:00
Jarek Kobus
be1c072157 TaskTree: Delete runtime data earlier
Delete the runtime node just after the task / container is finished,
instead of when all other tasks in parent container are finished.

Change-Id: I5fa3bc92324e8274b023fbc20e4bbede9824f47a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:36:06 +00:00
Jarek Kobus
3ae0185817 TaskTree: Split completely const and runtime trees
Separate completely const tree (data taken from recipe)
from runtime tree. Build runtime tree incrementally, on demand.

The const tree is created on TaskTree::setRecipe() and
the runtime tree is created on TaskTree::start().
The const tree serves as a kind of template for creating
the runtime task tree later, dynamically.

Prepare for the implementation of the loop functionality
(3rd point on the master task below).

Task-number: QTCREATORBUG-28741
Change-Id: I80382e5ef43d53b36ca3c70472b193c5949f5ab9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-11-15 09:35:59 +00:00
Eike Ziller
056168beca Merge remote-tracking branch 'gerrit/12.0'
Conflicts:
	src/plugins/texteditor/texteditor.cpp

Change-Id: I76620975760a8f9e64f6d381c948d457e949a87c
2023-11-15 10:32:59 +01:00
Eike Ziller
0269626a17 Make LineColumnButton re-usable
Change-Id: I34e755018eef41e7e7cf254ccba72a1ec5a1c5ff
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-11-15 09:30:17 +00:00
hjk
a252ea0205 CMakeProjectManager: Use Core::ActionBuilder in a few places
Change-Id: If2e852e744a070805a542ad62291ad791b1bddf5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-11-15 09:13:19 +00:00
hjk
879b9b8803 Core: Let ActionBuilder build a ParameterAction
Simpler overall interface with only slight overhead when not used.

Change-Id: I4846df70df0d442a264d81ac5f351407b2d5e40f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-15 07:17:50 +00:00
Eike Ziller
90e6fb54b6 COIN: Update to Qt 6.6 provisioning
That Qt version is used for building as well

Change-Id: Idae06324532b0dc2f453b802ca3d817fe3d41593
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-15 07:10:35 +00:00
Thomas Hartmann
c1edcc5d9f QmlDesigner: Do not allow invalid imports
For example: import QtQuick '-1.-1'

Change-Id: Ia63be5471f4fa69b7f798876239fb57db7806f91
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 20:16:51 +00:00
Tasuku Suzuki
b19a26b135 ProjectExplorer: Not create Manage Kits button if Kit options are hidden
Project window doesn't use the button anywhere else.

Change-Id: I97537524b615b9fd523828bc540b5412578c69c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-11-14 18:19:59 +00:00
Alessandro Portale
f25702ec0d Core: Use LayoutBuilder in the About dialog
The GridLayout code was hard to read. Let's use LayoutBuilder.

Change-Id: I90a2113e12541061fbf699f36328bb326bd1ebd9
Reviewed-by: hjk <hjk@qt.io>
2023-11-14 16:58:46 +00:00
Henning Gruendl
6239b079f8 QmlDesigner: Fix insight view sections
Task-number: QDS-11220
Change-Id: I97471ccc3362617b7f1613c77e5cc86ae81d7e15
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-11-14 14:54:41 +00:00
Alessandro Portale
f96feadad0 Fix missing overrides and redundant virtual
Change-Id: Id2a247b6032602c2295d928067c2462d3f9b5221
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-11-14 14:27:45 +00:00
hjk
6491e378e4 Core: Use ActionBuilder to set up find menu entries
Change-Id: I93784d6c571988be5476f0f8e9cce7411ae392be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-11-14 13:56:42 +00:00