Commit Graph

82976 Commits

Author SHA1 Message Date
Christian Kandeler
32e6b4d66d CppEditor: Improve createContentProposal()
- Limit iterator scope
- Replace if-else chain with early continue
- Save an unneeded look-up

Change-Id: If90f726ddb21a516ed3d438379382a2e4cd248a9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-19 11:26:26 +00:00
Leena Miettinen
6c8913e229 ADS: Fix punctuation in UI text
- Use full stops in end of messages
- Use double quotes for emphasis (instead of single ones)

Change-Id: Ie891dea536f267a12eae5e47c79421b820d0b5ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-19 11:22:24 +00:00
Leena Miettinen
c9df4f94a4 Terminal: Fine-tune tooltips
And add full stops to ends of tooltips and messages.

Change-Id: Ieacb17069fc45591089eebb610d4824195adb660
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-19 11:06:03 +00:00
Leena Miettinen
942f30d461 Docker: Fix UI text
- Write Docker with an initial capital letter
- Rewrite a tooltip to add reasons for adding a flag first, and
  then the flag.

Change-Id: I8b4f3775ad618999faddec90b62ba7bb11ac23ae
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-19 11:05:45 +00:00
Leena Miettinen
7da84e1734 Python: Use double quotes for emphasis
And write Python with an initial capital letter and UI with
all caps.

Change-Id: I5c7a85aa4ae9e5af1f4cc66e8705db126fbec23b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-19 09:53:51 +00:00
David Schulz
8ea70c5185 CppEditor: Fix crash on proposal creation
The assumption that all items are CppAssistProposalItem is wrong.
Snippets items have been AssistProposalItems, and since
22c72f9999 they are SnippetProposalItems.

Change-Id: Ic483741f6e7eb5382d327702600c88d6ec6e30ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-19 09:30:09 +00:00
Leena Miettinen
8e9f34662e Git: Add full stop to end of message
Change-Id: I66b67d2be82812efaf84bd8150e44fd097abe0cf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-19 09:25:15 +00:00
Leena Miettinen
03e1f5ac54 Axivion: Use sentence style capitalization for labels
Even though these are technically rows, they are used as labels
in the UI.

Change-Id: Ic9378cff61c49e7f5ee709d93660d7a55be45558
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-19 09:15:22 +00:00
Leena Miettinen
d81b3c6131 Copilot: Fix UI text capitalization and punctuation
Change-Id: I49a38633a8df1b4d65ee02bebecf270287c800d9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-19 09:05:01 +00:00
Christian Kandeler
021f0108cb qbs build: Do not declare a Qt dependency for the Ctrl-C stub tool
Change-Id: I75f4a1775b7718ee8d38937557be3bf71efade1f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-19 08:43:47 +00:00
David Schulz
8b16e40858 ClangTools: Utilize TaskTree to parse diagnostics from file
This reduces the time the main thread is blocked for reading the diagnostics
from the result file.

Change-Id: If6cc5671c709cb519b651c2b7ce3e8067e0b5f39
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-19 08:38:06 +00:00
Eike Ziller
f88db30319 Merge remote-tracking branch 'origin/11.0'
Change-Id: Ibb433d3e1ea2c0632dd2f710c8ec995de7599978
2023-06-19 10:08:56 +02:00
Christian Stenger
d30689c9a9 QtSupport: Fix handling of kits
Allow creation of kits without a Qt.
Broke with ce7677a7d7.

Change-Id: Ia6ab9746beab9f4c48b72930c32d5068bb7c733b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-19 06:48:14 +00:00
Eike Ziller
1df36cac5a Fix that run configurations lost their executable
Prevent QmlDesignerProjectManager messing with projects in Qt Creator.

Change-Id: Ife5a9a8c3a80a9aa1b6e1c5526fb1705996b1b3e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-19 06:33:45 +00:00
Aleksei German
c0ef0895b3 QmlDesigner: Cleanup MCU template
Change-Id: Id75b042921fd2e3c6644abfce10a752ca20ff0a4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-16 13:38:59 +00:00
Eike Ziller
fc236d4534 Build: Avoid building Qt Creator when running translation targets
The "project sources" contain lots of generated files that we are not
interested in, simply exclude anything from the build directory.
The *_tr.h header that we generate for the wizards and external tools
are handled separately.

Change-Id: I2ab1d6ac4312b1140ee475f8f16ba82d8488c43e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-16 13:20:17 +00:00
Tim Jenßen
b6fc485a43 qds: increase version to 4.3.0
Change-Id: Ic6d8ac48aa5d89309450add8042fada7c55e0044
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-16 12:15:44 +00:00
Esa Törmänen
2926d4feab Doc: Add MCU column to the Summary of Design Views table
This update is a follow-up to the comments received during the review
of the Qt Design Studio Features on MCU Projects page.

The MCU column content follows the 'fully supported' content agreed
during the review of the Qt Design Studio Features on MCU Projects page
with the following views marked as being also supported for MCUs:
- Projects
- File System
- Open Documents

Task-number: QDS-10100
Change-Id: Ia3561ccf958dad1b2f1ca7f1782263d032ab8733
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-16 11:50:45 +00:00
David Schulz
5ba10671da CppEditor: fix highlighter tests
amends 9091c99429

Change-Id: Iaa64d51aa0dad1d63c88a51bfa55afa2367e65ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-16 11:05:00 +00:00
Cristian Adam
db8842a0d4 App: Allow usage of "windows" style if enforced
Currently the code checks if qFuzzyCompare(qApp->devicePixelRatio(),
1.0) and if the condition is true it will always set the "fusion" style.

If the user sets a "-style" option we shouldn't override it.

Change-Id: If9a20a1b38f4a5aa3c2ccaf53cb01aafb45077f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-16 10:36:58 +00:00
Alessandro Portale
850f1ce66c Android: Don't pass duplicate ANDROID_PLATFORM to CMake
This makes sure that one unique argument "-DANDROID_PLATFORM:STRING=..."
is passed to CMake. An entry in a kit's CMake configuration has the
precedence over the ANDROID_PLATFORM defined by Qt's build system.

Fixes: QTCREATORBUG-29112
Change-Id: I1c4d80be9ddfc7a00a5a7eff476497f08d87b741
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-16 09:30:52 +00:00
Christian Kandeler
118c493c6c CppEditor: Make generated function const, if necessary
... in "Add member function" quickfix.

Fixes: QTCREATORBUG-29274
Change-Id: Ie939389ac2336f70fd216f29ce0d38e495786b3e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-16 09:11:31 +00:00
Cristian Adam
64cd1df74b CMakePM: Add Qt SDK ninja to configure environment
Fixes: QTCREATORBUG-29032
Change-Id: I1aebd11ba85ad6a363ecf1ab6406cdec20753e9d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-16 09:10:52 +00:00
Eike Ziller
562c5774e3 Debugger: Fix automatic source mapping for Qt
- The QtVersion::sourcePath() was wrong because QT_INSTALL_PREFIX/src
  doesn't return the right path. Work around by checking if sources are
  found, and otherwise trying the location that we know the installers
  to put them.
- Pass the sourcePath along to the debugger run control, and use that
  instead of looking for qmake in the PATH (which fails because it is
  not in PATH).

Fixes: QTCREATORBUG-28950
Change-Id: Iffa262d6c87dbc979c449d43cd4a85e1320bcd37
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-16 07:15:16 +00:00
Miikka Heikkinen
a2b2a2eaa1 QmlDesigner: Copy extra files regardless of the way component is added
ExtraFile property of item library entries was only handled when
item was dragged to navigator. Moved the handling to QmlVisualNode
so it would be done regardless of how the item is created.

Fixes: QDS-10058
Change-Id: Ied0c418a731104cdf727b1e2a0fe15a8e3b6ff5e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-06-16 06:32:01 +00:00
Jarek Kobus
6f6f6d3f97 Solutions: Add a common Solutions page
Add also The Tasking solution page. Add some hints into README.md file.

Change-Id: I4e355c95977d668fbc2f7bd286f9446e4e4b1f69
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-15 14:58:42 +00:00
Leena Miettinen
be6e31d119 Task-number: QTCREATORBUG-28996
Change-Id: I13ed29e3d4b742771f94849f87c1a461efa40ffa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-15 13:42:16 +00:00
Tim Jenssen
053e970c4d QmlProjectManager: use qml2puppet only if it is QtSudio Qt
Task-number: QTCREATORBUG-29259
Change-Id: Ib05737368c224fa28b2c9f091dfa0e210bc838af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-15 12:45:36 +00:00
David Schulz
22c72f9999 Editor: postpone snippet completion item tooltip generation
Change-Id: Ib9762b489af87eab976248803dd0e9f4a3e0efba
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 12:36:55 +00:00
Christian Kandeler
daf6dfab68 Issues Pane: Do not ignore clicks into second column
The right column typically shows the file name, so it's clearly expected
that clicking it takes you to the location.

Fixes: QTCREATORBUG-29273
Change-Id: I14fbb3392ac34e25a614811d8190f559b19b9088
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-15 12:07:11 +00:00
Christian Kandeler
826f015b83 QbsProjectManager: Let users reset the path to qbs
Also, don't store it if it wasn't changed from the default.

Change-Id: Ia0f2e2b7e8f65c1fa32e111be499461fb2dda1d5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 12:06:53 +00:00
Cristian Adam
c5a38b2f95 They were part of the blog announcement
https://www.qt.io/blog/qt-creator-11-cmake-update

but not in the changelog.

Change-Id: I1c47f0eeb986b5abebfdbc35a421b45b996f77c3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-15 12:02:13 +00:00
Leena Miettinen
923e95eba6 Doc: Describe the experimental Axivion plugin
Fixes: QTCREATORBUG-29240
Change-Id: I61e068796ddfd942553c9a0b64a8bede0d1db070
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 11:57:56 +00:00
Mats Honkamaa
6cb6d87746 Doc: Add robotarm workflow tutorial
Add a tutorial on the workflow from QDS to QC based on the robotarm example.

Task-number: QDS-9536
Change-Id: I5f09290c4a836d46056058fe179edc3e012b3d76
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-15 11:53:04 +00:00
David Schulz
61de872f0f Editor: ensure valid blocknumbers for overlay prefiltering
Change-Id: Ifc5f173fe12f3dca77fbcb6c4b8bfe6aa0bad7ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 11:49:09 +00:00
Tim Jenssen
039898058c qds: remove Quick Control 1 feature
Tab and TabView are not existing in QuickControls 2.

Change-Id: I16694d6015927c54087e0b4aeebb8dee245f04f8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-15 11:33:17 +00:00
Leena Miettinen
d3177b84bc Doc: Describe auto-adjustment of CMake config for Qt Quick projects
..when adding files to projects.

Task-number: QTCREATORBUG-28996
Change-Id: If1de542ce3262227c307e3f479f6f10bf493fa83
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-15 11:28:29 +00:00
Robert Löhning
012f67baf1 SquishTests: Update keyboard shortcut GroupBox
Change-Id: I168e6128f61b6363253c5ed999a29b1f64441cff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 11:16:29 +00:00
Robert Löhning
c6e2e93bc0 SquishTests: Remove workaround for fixed issue with open terminals
This reverts commit 4c5163f675.

Task-number: QTCREATORBUG-15749
Change-Id: Icefdfe2f7e4f818f3407854619d4c6a395084af2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-15 11:15:59 +00:00
Marcus Tillmanns
6453cfa412 Terminal: Don't use askpass
Askpass is not needed for terminals.
You can enter the password inside the terminal.

Change-Id: I700efbc16cbf4bd9904c8652867af894e314785b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-15 10:41:50 +00:00
Eike Ziller
3825b9f2cc CMake: Some UI/tr fixes
Avoid the order "Label [ ]" for checkboxes, we changed all cases to the
standard "[ ] Label" because it looks very ugly and confusing the other
way around. Also move the corresponding directory setting to the next
row, which is not ideal but still looks better.

Improve message about reloading presets.

Change-Id: Ibcd26e24a2a4cd3ea5ca819f74e78edb40f46072
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-15 10:02:36 +00:00
Henning Gruendl
21305dfeba QmlDesigner: Fix premature default state reset
Task-number: QDS-9433
Change-Id: I2709a52d0d23cfe1a1ead91a0c19f5a959e62540
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-15 09:15:32 +00:00
Leena Miettinen
46cb0de54a Doc: Fix broken \previouspage link
Change-Id: Ia2e0d01833fd9f28545bfeee47c3386a96aafe0c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-15 08:28:38 +00:00
Leena Miettinen
4f3fea4baa Doc: Update Issues view docs
Task-number: QTCREATORBUG-28996
Change-Id: Icb35a36adf914b2791e405c1bed972fac40e6973
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-15 08:15:35 +00:00
Eike Ziller
6c601b8cd4 Merge remote-tracking branch 'origin/11.0'
Change-Id: I8d1c9720a868da02b3157a48954eb4e262539c84
2023-06-15 09:48:58 +02:00
The Qt Project
580202f54b Merge "Merge remote-tracking branch 'origin/10.0' into tr" into 11.0 2023-06-15 07:47:28 +00:00
Eike Ziller
68915713bf Merge remote-tracking branch 'origin/10.0' into tr
Conflicts:
	src/shared/qbs
	tests/system/suite_general/tst_opencreator_qbs/test.py

Change-Id: I683ebb489e7c2112b343bb3631f6343fdc84cc4a
2023-06-15 09:43:24 +02:00
Jarek Kobus
a0e9ff592f TaskTree: Document the TaskTree API
Change-Id: I9b7616c021100665e0da27af3fef66b0738ae41b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-15 07:24:42 +00:00
David Schulz
95609551a1 Core: add aboutToSave and saved signal to IDocument
We need reliable signals that gets emitted when documents are saved to
inform the language server about the document state change.

Change-Id: I0a1e8a5317ae6984ff17d878952c74f69765e3f9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-15 07:19:39 +00:00
Leena Miettinen
16bfc82ef0 Doc: Add info about files being added to CMakeLists.txt files
...when using project wizards to add them.

Renamed files are also renamed in CMakeLists.txt and removed
files are removed.

Task-number: QTCREATORBUG-28996
Change-Id: Ia2a3676841ec025c5e947b01144d06980b1b4a8f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-15 07:16:39 +00:00