Commit Graph

81631 Commits

Author SHA1 Message Date
Marco Bubke
e204af5cac QmlDesigner: Modernize Enumeration
Save some allocations and return a view instead of a new value. If you
want a value because you depend on a null terminated string you have to
use toScope() and toName().

Task-number: QDS-10290
Change-Id: Ia87b8d559fc1fe9bb1992e61da0aa86c68d53535
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 13:16:44 +00:00
Marco Bubke
194b7d49b0 StudioWelcome: Fix more warnings
Change-Id: I1c1fa8fdfd33b50d47afe4eab82347cf3c0eff08
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 12:16:53 +00:00
Burak Hancerli
98c32d2043 QmlDesigner: Soften asserts on invalid URLs
Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-18 19:44:17 +00:00
Marco Bubke
90b0fd2869 UnitTests: Fix warning
Change-Id: I834095e1e8f40cb063b6014e98bf79ae8d8e439b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-18 15:12:22 +00:00
Marco Bubke
fa28c29781 QmlDesigner: Optimize ModelNode a little bit
The functions are doing not much but are called often. So they are a
good case for inlining.

Change-Id: I755c63287d7d518b55d4f131077b98dd0345930c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-18 15:11:13 +00:00
Ali Kianian
6f78cd1a3c QmlDesigner: Select the correct text editor for paste action
The text editor was declared changed even in non-design mode. Now it's
notified only when the design mode is selected.

Task-number: QDS-9953
Change-Id: I64d0d7c1eec0e56d00f91e9522325ecb8660cd2d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-18 14:33:28 +00:00
Ali Kianian
a34b991448 QmlDesigner: Cleanup designer plugin for show/hide designer methods
Change-Id: I824ced5f1bf921d7336b3c4fe86ac37060129cd3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-07-18 13:47:23 +00:00
Marco Bubke
2322313baf QmlDesigner: Remove typeName usage in binding editor
Task-number: QDS-10266
Change-Id: I91232c1296c4ed3b3148af9053d3db0f43a08e24
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-07-18 09:00:14 +00:00
Knud Dollereder
db78fa9cf8 Update the curveeditor when changing keyframes in the text editor
Fixes: QDS-10062
Change-Id: Ie0364d095f17ba6b5f16bd8fbf9abddfca2f26db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-17 09:49:03 +00:00
Marco Bubke
3d5ceb795d QmlDesigner: NodeMetaInfo can now get exported type names
You can get all exported names. That can the C++ names too for C++
types. If you only want the types name which are imported in a document
you can provide the source id for the document and get only that. If
there are different version exports you get them too.

Task-number: QDS-10274
Change-Id: Iefc0b68ebfd65998cf0481961f8c7643cdf9e5b9
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:58 +00:00
Marco Bubke
f7f65b9ea4 QmlDesigner: Get exported type names for type id and source id
It is matching the document imports with the exported type names.

Task-number: DS-10265
Change-Id: I0623cd0b3d04fa1a8c05354a194f10f3d8948b21
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:49 +00:00
Marco Bubke
e7bc9846d1 QmlDesigner: Add exportedTypeNames(TypeId) to project storage
Task-number: QDS-10265
Change-Id: If440f87b6719b865216e3890c8492c3682cf42dd
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:39 +00:00
Marco Bubke
12d0098bf1 QmlDesigner: Disable NodeMetaInfo::importDirectoryPath() for project storage
We can add a different interface later if the modules save there source
ids.

Change-Id: Iafc6cefec0bfd8703328074b31932b0472164ec4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-17 09:36:26 +00:00
Vikas Pachdha
2321d7f1f7 Docs: Update the plugin screenshot and add start sceen docs
Change-Id: I3bde8ffc7ef6251c32cd78f7a90fb6f56f3c0b2a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2023-07-14 07:24:59 +00:00
Vikas Pachdha
5aa720f6a9 Docs: Document snippets for QtBridge plugins
Fixes: QDS-10177
Change-Id: Ibede8ffcaef6251c32cd78f7a90fb2f56f3a0824
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2023-07-14 07:22:38 +00:00
Vikas Pachdha
9218c36d8a Docs: Improve properties documentation
Fixes: QDS-6801
Change-Id: Iced78ffc7ef6251c32cd78f7a90fb6f56f3ca826
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2023-07-14 07:22:30 +00:00
Ali Kianian
c3dee68573 QmlDesigner: Unmark the reflection flage for valid Qml property changes
The reflection flag is unmarked for valid Qml property changes in order
to be updated in the puppet side.

Task-number: QDS-9881
Change-Id: Ibd36fb1ee844f08efa256d28514a3f0debd467e2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-12 09:49:18 +00:00
Marco Bubke
fb9a7e2d3a QmlDesigner: Fix missing project storage include
Change-Id: Ifb7439e5998ef8d9fb89f3d21a20ed49c46cbe35
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-07-12 07:23:58 +00:00
Marco Bubke
e7a7914aa8 QmlDesigner: Fix skip auto moc
Actually the syntax was wrong.

You can use

SKIP_AUTOMOC foo.cpp

or

PROPERTIES SKIP_AUTOMOC ON

SKIP_AUTOGEN is skipping AUTOUIC and AUTORCC too.

Change-Id: Id4afdc2572fc287ae66368ba0fd70b3ce7fc04ba
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2023-07-12 07:15:50 +00:00
Marco Bubke
98cff9e097 QmlDesigner: More test for NodeMetaInfo
Task-number: QDS-10055
Change-Id: I23a9d7ea87dff9f3e07f5beeb734cea7d01d2e94
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-12 07:13:39 +00:00
Marco Bubke
8ab4968278 QmlDesigner: Introduce origin flags
metaInfo.isProjectComponent() is signaling if a file component is
directly part of the project. metaInfo.isInProjectModule() otherwise
shows if a type is inside of the project as a qmldir module. Both cannot
be true. If a type is not part of either it is a system type.

Task-number: QDS-10251
Change-Id: Iae2270827a500ad6393e3751b3af276f9b030679
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-11 15:42:48 +00:00
Marco Bubke
e1171359ab QmlDesigner: Disable auto moc for non-qobjects
Change-Id: Ibca60ac262a4d43f8963b23ab6c2de5fa0098b27
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-11 15:42:41 +00:00
Marco Bubke
a3f990d713 QmlDesigner: Add type lookup
Task-number: QDS-10246
Change-Id: I607f72e29734a3c59b7b5b33d96735d708cd18ec
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-11 15:42:06 +00:00
Ali Kianian
f7a7f55df5 QmlDesigner: Handle placeholder color for navigator line edit
Task-number: QDS-10099
Change-Id: Ieede8ffc7ef6251c32cd78f7a90fb6f56f3c0824
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-11 10:15:13 +00:00
Ali Kianian
c3f3f85354 QmlDesigner: Prevent showing background contents for widget comboboxes
A rectangle filled with the same brush as the parent widget makes
a blank cover just behind the combobox to prevent showing the contents
of the behind widget.

Task-number: QDS-6298
Change-Id: I4b2014a60282e109086351d3bd4694ae7c519e8d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-11 09:21:59 +00:00
Ali Kianian
8f3fd958ef QmlDesigner: Escape button press clears the search boxes
Task-number: QDS-7838
Change-Id: I1ed283846ba87eb2dbd786a560aaf940cb6f8132
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-11 09:20:49 +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
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
Thomas Hartmann
b85eb8aa04 QmlDesigner: Keep context as background
When drilling into components we keep the context as an image
in the background.

Change-Id: I12c291ab1cff02d30f53f92ccd9a551a9dd63704
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-06 14:08:06 +00:00
Mats Honkamaa
ccdf0730df Doc: Update camera align buttons docs
Task-number: QDS-10096
Change-Id: I3c513cfdf2f71df7f465c37ec6e007455ec6b67b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-07-06 06:10:38 +00:00
Henning Gruendl
13c0fd2a0c QmlDesigner: Add title bar icons to icon font
Change-Id: If4b094723f0638f4e09f9b42312e0d14400e6067
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-05 09:31:51 +00:00
Mats Honkamaa
aa7628f754 Doc: Add info about Effects in Content Library
Task-number: QDS-9841
Change-Id: I9830b87961ea9f650f02526e0a6f26c4787db6f8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-07-05 06:42:17 +00:00
Tim Jenssen
7fada70e8f unittest: fix linking problem on windows
Task-number: QDS-10245
Change-Id: Ie6baee6c9e5c8351fe67b2dd49ad4e80147ec48a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-04 16:49:43 +00:00
Tim Jenssen
48230d63b8 Merge remote-tracking branch 'origin/11.0' into qds/dev
Conflicts:
 src/plugins/qmldesigner/CMakeLists.txt
 src/plugins/qmldesignerbase/CMakeLists.txt
 src/plugins/qmlprojectmanager/CMakeLists.txt
Change-Id: If706ae3fe7a7d0e17036ce6285bec772d1f6127d
2023-07-04 16:22:32 +00:00
Robert Löhning
1487f1a0c0 SquishTests: Make sure tst_git_local cleans up properly
Creator still writes gitProject.pro.user after cleanup() ran.

Change-Id: I78c8247090a7032b21ee3a763fd390bb16f3d24b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-04 12:27:45 +00:00
David Schulz
5c7cbe802a Python: reduce the timeout of version check commands
Task-number: QTCREATORBUG-29363
Change-Id: Id7583c876dc2a8c92eae4dd68bda47dffafd6e3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-04 11:59:12 +00:00
Leena Miettinen
a23b933308 Doc: Combine "Working with Sidebars" and "Show and hide sidebars"
- Sidebars are hidden in QDS and the views can be added to
  workspaces, so hide references to sidebars on the QDS side.

Task-number: QTCREATORBUG-29361
Change-Id: Ic468f6f818bddb391bd9514d273ecf8b6b412187
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-07-04 11:12:30 +00:00
Leena Miettinen
1956b0f698 Doc: Combine two topics about selecting modes into one
Move information from "Selecting Modes" to "Switch between modes".
Hide it from the QDS Manual because modes are hidden by default in QDS.

Task-number: QTCREATORBUG-28996
Change-Id: I6d281fe9364e191616af3a8ac484dd0a7d6a3156
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-07-04 11:12:20 +00:00
Leena Miettinen
0f409b7ae8 Doc: Move details of managing plugins into How-to topics
...from Configuring Qt Creator

Create "Enable and disable plugins" and "Install plugins" topics.

Task-number: QTCREATORBUG-29361
Change-Id: I51fdfad1cd7d210a72cf08ef3e82f08ae8c6ecac
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 11:06:13 +00:00
Leena Miettinen
95074bf2a3 Doc: Update screenshots of output views
The Next and Previous icons were changed.

Task-number: QTCREATORBUG-28996
Change-Id: Ic90a458fdc500f8978ff1d51e293928c322c3091
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 11:05:23 +00:00
hjk
9f44032840 QtSupport: Use better value for remote QTDIR env variables
It does not really seem to be used in earnetst anymore, but
it shouldn't contain the scheme://host decoration.

Change-Id: Ieba416e0a73d247d80d1c5cce79858b1896e13ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 10:30:37 +00:00
Eike Ziller
0c31474ed3 Wizards/CMake: Make sure GNUInstallDirs is included
Qt 6.4 automatically includes GNUInstallDirs, but before that it didn't.
And for the "plain" projects Qt isn't even used. Since the project
templates use CMAKE_INSTALL_LIBDIR etc, they must ensure themselves that
these are actually available.

Fixes: QTCREATORBUG-29067
Change-Id: Id304b829301a33720d8f6c4a9c89157e8fc1c4a9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-07-04 09:29:20 +00:00
Christian Kandeler
20cb9b6e69 ClangCodeModel: Do not call FilePath::exists() on random strings
Fixes: QTCREATORBUG-29356
Change-Id: I6f4d89a6823829a7ecf16200786621321fea61a5
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 08:36:40 +00:00
Leena Miettinen
7977d3ac37 Doc: Update Copilot docs
- Update screenshot
- Add disclaimer
- Describe rejecting suggestions

Task-number: QTCREATORBUG-28996
Change-Id: I5b30c8f8760f5684e31beb534754d03684d3c394
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 07:29:54 +00:00
Christian Stenger
acad4b6b2e AutoTest: Improve QRegularExpression usages
Use static const if possible to avoid re-initializations.

Change-Id: Ibee9e320dccb90cd928737b809db3b56369961ec
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:50 +00:00
Christian Stenger
a85d7ef538 AutoTest: Avoid some unneeded fetching of snapshot
Change-Id: I002b3537c2f1b468c52b08017e30efd4c969aeb2
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:44 +00:00
Christian Stenger
91bdbb61ec AutoTest: Avoid some snapshot copies
Change-Id: Idc57027029c0f399a031bc716b9cba731cb34590
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:38 +00:00
Eike Ziller
cedd37fc01 COIN: Use https
because http is now broken for master.qt.io.

Change-Id: I861e86e7a1f345a2810883b707d9392b101516d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Patrik Teivonen <patrik.teivonen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-04 06:05:40 +00:00
Christian Stenger
a213de7a50 AutoTest: Fix seed ranges
Tweak the default range of 0..99 resulting from using
a QSpinBox to some wider range.

Change-Id: Id1a64e283bee96d31df8bbad2f6e8039675df817
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 05:19:34 +00:00
Marco Bubke
c572855b95 Utils: Use _cpp_lib_constexpr_string to test for constexpr std::string
Seems not all compiler already implemented constexpr std::string.

Change-Id: I588ef56767125a38fd80d0798ea954c11c8f6237
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-07-03 15:58:16 +00:00